How to get excel to ignore "<" when conditionally formatting?

hannahexcel

New Member
Joined
Oct 6, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to conditionally format rows C and D so that excel highlights a value when $D94>$C94 (for rows C94:D118). So that when successful, excel would highlight cells D112 and D116.

However, it seems that the "<" in front of many of the values in column D is throwing off the conditional formatting rule. I would like for Excel to read "<0.095" as "0.095," for "<10" as "10," etc. Does anyone know how I should either format the numbers or define the formula when creating a Conditional Formatting rule?

Thank you! Please let me know if I can clarify anything.
 

Attachments

  • ExcelQ1.PNG
    ExcelQ1.PNG
    29.9 KB · Views: 44

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Select C94:D94, then use this formula in Conditional Formatting:
Excel Formula:
=(SUBSTITUTE($D94,"<","")+0)>$C94
 
Upvote 0
Solution
Hey,
If I understood you correctly,
will always be the sign less than ?
If so, add another rule:
=$C94<VALUE(RIGHT(D94,LEN(D94)-1))
Don't forget to mark the range of all cells
 
Upvote 0
Hey,
If I understood you correctly,
will always be the sign less than ?
If so, add another rule:
=$C94<VALUE(RIGHT(D94,LEN(D94)-1))
Don't forget to mark the range of all cells

Hi there, thanks for your response. Yes, you understood correctly that the sign, if there is one, will always be "less than (<)".
I tried adding your suggested rule, but it doesn't seem to be giving me the desired results--I'm assuming I'm inputting it incorrectly(?)
In theory, how would adding your suggested rule to the one above (=(SUBSTITUTE($D94,"<","")+0)>$C94) change the outcome?
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,178
Members
452,615
Latest member
bogeys2birdies

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