Conditional formatting a cell that contains both numbers and letters

pbailey

New Member
Joined
Oct 2, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have a formula that calculates the number of days between column K and column M. Then it places the word " days" at the end so it shows as 30 days, 25 days, 56 days, etc. Now I need to highlight any cell that has a calculation greater than 30 days. How do I do that with conditional formatting. When I do highlight cells that are GREATER THAN: 30 it highlights all of them. I also tried highlight cells that are GREATER THAN: 30 days and it highlights those greater than 30 days, but also highlighted some with less than 30 days. Please help me with this issue. Thank you!
1696272210376.png
1696272180559.png
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I have a formula that calculates the number of days between column K and column M. Then it places the word " days" at the end so it shows as 30 days, 25 days, 56 days, etc. Now I need to highlight any cell that has a calculation greater than 30 days. How do I do that with conditional formatting. When I do highlight cells that are GREATER THAN: 30 it highlights all of them. I also tried highlight cells that are GREATER THAN: 30 days and it highlights those greater than 30 days, but also highlighted some with less than 30 days. Please help me with this issue. Thank you!
View attachment 99608View attachment 99607
I forgot to add, here is the formula I am using: =IF(OR(M15="",K15=""),"", M15-K15 & " days")
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
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