Conditional formatting

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,603
Office Version
  1. 2021
Platform
  1. Windows
I have various text in Col A and values in Col B:N


where text "Benchmark" appears in Col A for Example "Benchmark GP per Unit" , "Total GP per Benchmark" etc, I want the Columns from A:N highlighted in Blue in the same row where the text benchmark appears


I have tried to set this up but cannot get it to work



It would be appreciated if someone could assist me
 
Last edited:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi,

This can be cone using Conditional formatting. With formula :

=ISNUMBER(SEARCH("Benchmark", $A1)) applied to "=$A:$F"
 
Last edited:
Upvote 0
Hi,

Will this do the trick ?

Sub Macro1()

lr = Range("A" & Rows.Count).End(xlUp).Row

For Each c In Range("A1:A" & lr)

If c.Value Like "*Benchmark*" Then

Range("A" & c.Row & ":F" & c.Row).Interior.ColorIndex = 8

End If

Next c

End Sub

That isnt conditional formatting. If you was to use a macro you need to remove all formatting first or you will potentially leave a incorrect result.
 
Upvote 0
Thanks for the help. I used =ISNUMBER(SEARCH("Benchmark",$A1)) applied to $A:$G and it only highlights blanks cells


Please advise as to why the actual rows containing :"benchmark" is not highlighted in the colour selected
 
Upvote 0
That just doesnt do that. Go back and check the formula and that there isnt overriding CF on those cells.
 
Upvote 0
I cleared the CF and then set up the new CF formula and it worked. I would like to know if there a way to set up the CF that it only highlights up the last cells in the row containing data

The CF must only highlight up to Col G8. once H8 contains Data, then H8 must also be highlighted in blue etc


See sample data below



Book1
ABCDEFGHIJKLMN
8Total GP Benchmark(2,155)(2,155)(2,155)(2,155)(2,155)(2,155)
Sheet1
 
Last edited:
Upvote 0
How to insert the half filled circle in cell. Previously I was inserted but I am not remembering how I had???
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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