Conditional Formatting - 2 Questions

James8761

Board Regular
Joined
Apr 24, 2012
Messages
154
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I would like to add condtional formattin by way of Color Scaels to cells B1:G10 of the image/spreadsheet below. Is there a way conditional formatting can be used on the last two numbers of a cell as in B1:G10?

Or, I have put the RIGHT fomrula in Cells I1:N10, to look at the last twp characters of Cells B1:G10. This is how I would like Cells B1:G10 conditionally formatted. Can I use the values in Cells I1:N10 to condtionally format Cells B1:G10?

Thanks for any help.
James
 

Attachments

  • cf2.PNG
    cf2.PNG
    25.9 KB · Views: 9

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
when you say "is there a way conditional formatting can be used on the last two numbers".....

If you mean can you just conditionally format the last two numbers the answer is no. you can only conditionally format the whole cell.

If you mean format the cell based on the last two numbers then yes but you will need to create a conditional format for each number.

using the range in your example the code would be

Excel Formula:
=COUNTIF(B1,"*enteryournumbervalue") applies to $B$1:$G$10 <-make sure to leave the * before your number value.
 
Upvote 0
Select B1:G10
CF --> New rule -->
For value 30 to 39 (last 2 digits)
Enter Formula

=INT(1*TRIM(RIGHT(SUBSTITUTE(B1," ",REPT(" ",100)),100))/10)=3

Format for required color.

For value 40 to 49 (last 2 digits)
For another color
Formula

=INT(1*TRIM(RIGHT(SUBSTITUTE(B1," ",REPT(" ",100)),100))/10)=4

Similarly do it for all colors.
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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