Hi, I want to compare 2 value from 2 differe...

Hi,

I want to compare 2 value from 2 different table. If the value is greater, then i want to format the row to be red color. How do i do that?

Example:

Letโ€™s say Table A is a record of ordering product, Table B is a record of receiving product.

Table B needs to make sure the product has the same details as Table A. So, i will need to compare the product width.

Table A has a column name โ€œWidthโ€ Table B has a column name โ€œWidthโ€

If the Width from Table B is larger than the width from Table A , then that particular row will be formatted into red colour.

0 2 529
2 REPLIES 2

Do you have a relationship between these tables?

The LOOKUP() function will allow you to get a particular column value from a particular row.

For example, from a format rule for Table A, use the formula:

=[Width] < LOOKUP([_THISROW].[Product ID], โ€œTable Bโ€, โ€œProduct IDโ€, โ€œWidthโ€)

This assumes both tables have a Product ID column and that each product ID value occurs only once in each.

Top Labels in this Space