conditional formatting

biglb79

Active Member
Joined
Oct 17, 2007
Messages
303
Office Version
  1. 2019
Platform
  1. Windows
is there a rule I can setup so that the account number in column B highlights in red if I have a word in the description column I that would make it jump out as the incorrect account?

like bonus payments go to 6950 and commission payments to 6955. I sometimes accidentally post them to the wrong account, but if I had something that says if 6950 in column B and commissions column I it's wrong
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Do you want to highlight col B if col I has anything, or only if col I has a specific word?
 
Upvote 0
Yes, you would have a rule something like:
Code:
=OR(AND($B1="6950",ISNUMBER(FIND("commission",$I1))),(AND($B1="6900",ISNUMBER(FIND("bonus",$I1)))))
Note that the formula is written as if the value in B1 is a Text entry. If it is numeric, remove the double-quotes from around those numbers.
 
Upvote 0
thanks so much for your help! i have the 6955 working if it says bonus in column I, but I'm struggling having the 6950 one work if it says commission in column I
 
Upvote 0
Note that FIND is case sensitive. So it would find "commission", but not "Commission".
If we use Search, then it does not care about case, i.e.
Code:
=OR(AND($B1="6950",ISNUMBER([COLOR=#0000ff]SEARCH[/COLOR]("commission",$I1))),(AND($B1="6900",ISNUMBER([COLOR=#0000ff]SEARCH[/COLOR]("bonus",$I1)))))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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