# Conditional Format Formula to cover a range of 18 columns to highlight cells

1. ## Conditional Format Formula to cover a range of 18 columns to highlight cells

I have a range of 18 columns that I went to format to highlight cells that are greater than the row of numbers that are at the header of each columns. I can do each column separately, but it requires 18 separate entries. ie all cells in column D reference the number in D4, all cells in column E reference the number in E4 and so on for 18 columns.

2. ## Re: Conditional Format Formula to cover a range of 18 columns to highlight cells

in d5 formula is =COUNTIF(D5,D\$4) copy format across and down

3. ## Re: Conditional Format Formula to cover a range of 18 columns to highlight cells

Thanks martin, but I have formulas in the range to compute the values of the cells in question. I'm looking for a formula to put in the Conditional Formatting Area to look at the values in each column, compare them to the value in the header row and then highlight the cells that are greater than the values of the header. Ca this be done?

4. ## Re: Conditional Format Formula to cover a range of 18 columns to highlight cells

thats a cf formula copy the format

5. ## Re: Conditional Format Formula to cover a range of 18 columns to highlight cells

Thanks Again Martin, but I'm looking for values that are greater than The Header Row. I think I have it now by just using D5>D\$4. Thanks for the help!

6. ## Re: Conditional Format Formula to cover a range of 18 columns to highlight cells

=COUNTIF(D5,D\$4) was a wrong for your example sorry and it could have just been D5=D\$4 as you pointed out with your correct example. overkill i must think simpler sometimes!

7. ## Re: Conditional Format Formula to cover a range of 18 columns to highlight cells

No Problem Martin. I am very new to Excel...about 5 weeks. Writing a skins sheet for golf. This forum has helped immensely. I try to figure stuff out on my own, but after beating my head against the keyboard for a few hours, I ask for help. Your tip put me on the right track. I, too was making it way too complicated.

T

There are currently 1 users browsing this thread. (0 members and 1 guests)