Program List If Function

MrDB4Excel

Active Member
Joined
Jan 29, 2004
Messages
348
Office Version
  1. 2013
Platform
  1. Windows
I have a worksheet containing cells G3:G100 that needs text and fill formatting via a “Conditional Formatting” rule that looks at the corresponding cell in the “H” column to see if the text contains any one of the letters B, D, F, H, J, L, N, P, or R. The actual contents in H3:H100 are any one of the following B2, D2, F2, H2, J2, L2, N2, P2, or R2. I have tried various if functions and nothing seems to work. It appears I will need to have 9 separate rules, each rule having a specific format for text and fill – or – maybe not; maybe one formula that looks at all 9 possibilities. But this seems not doable as each of the 9 letter indications needs separate formatting.
Thanks for any help.
 

Attachments

  • ProgramListIfFunction.jpg
    ProgramListIfFunction.jpg
    23 KB · Views: 13

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Yes, separate formatting requires a rule for each format.
However you should be able to get away with a simple formula for each format, perhaps

ISNUMBER(SEARCH("B",H6))

and format as required.
Just change the letter to search for and the formatting for each rule.

Usual method is to select the entire range in column H you want highlighted, e.g. H6:H1000, then enter the formula above.
The formula will adjust for rows 7:1000
 
Upvote 0
Thanks Special-K99, It works after I changed the formula to this: =ISNUMBER(SEARCH("B2", H3:H100)) cell H3 being the first with data in it.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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