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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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