Conditional formatting based on last numbers in another cell.

rusty21

New Member
Joined
Dec 31, 2012
Messages
37
Good Afternoon All,

I am trying to format a celll to turn green based on the last numbers in another cell.

So G5 says Machined components = 150 and I want G18 to turn green if the total matches the number after the = in G5. I also want G18 to be orange if the 150 is not met.

Can this be done?

I have tried using right function, but cannot seem to get it to work. I have also tried =VALUE(RIGHT($G$5, 3)), but thgis turns it permanately green.

Thanks in advance
Rusty
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try these formulas in CF:
To see if equal to 150: =VALUE(MID(G5,FIND("=",G5)+1,100)) = 150
To see if not equal to 150: =VALUE(MID(G5,FIND("=",G5)+1,100)) <> 150
 
Upvote 0
Thanks for the quick reply Joe4.

Unfortunately this turns the cell green no matter what the number is.

Regards
rusty
 
Upvote 0
Please provide a data example that you have that turns green that shouldn't.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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