Comparison of Cells

Mightywarrior

New Member
Joined
Jun 28, 2017
Messages
3
Hi All,

Request your help in understanding in the below requirement and please let me know if there's a suitable formula for it to be executed:-
Would like to compare two columns and if the value in first column gets exceeded or equal to when compared with the second then it needs to be highlighted with a suitable colour in the corresponding third column.

For Example
Column 1 - Current Fiscal Value like 100000, 900, 40000
Column 2 - Sales Value like High, Medium, Low
Column 3 - Cities like New York, Bombay, Paris
Benchmark for "Sales Value" would be like the below and it would be constant
High 100000
Medium 10000
Low 1000

Thanks
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Assume columns are A B and C.

Select C1

Conditional Formatting
New Rule
Use a formula to determine...

=(A1>=LOOKUP(B1,{"High","Low","Medium"},{100000,1000,10000})
NOTE: The LOOKUP values need to be in alphabetical order so the numeric values have been reordered to reflect this.
Enter the formula EXACTLY as it appears above, do NOT change the order of the LOOKUP values

Format as required
Use Format painter (paintbrush icon) to copy to other cells
 
Last edited:
Upvote 0
@Special-k99 - First of all thanks for your speedy assistance on this. But when I apply the provided formula in conditional formatting, I am getting the below as an error
"You may not use reference operators ( such as unions, intersections and ranges) or array constants for conditional formatting criteria."
 
Upvote 0
Sorry I should have tested this first.

Use this instead.

=(A1>=IF(B1="High",100000,IF(B1="Low",1000,IF(B1="Medium",10000))))
 
Upvote 0

Forum statistics

Threads
1,223,947
Messages
6,175,559
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top