Conditional Formatting Question

Thresh1642

New Member
Joined
Mar 14, 2017
Messages
11
I have a fairly basic Spreadsheet.
What I am trying to do is apply a conditional format to it where the formatting might change based on an input.

So in this case the range would be C5 to E7, but the value in C3 will determine the formatting in C column, the value in D3 will determine the value in the d column and so on.

I know I can go thru and set up a rule for each column, is there a formula I can apply to the range instead?

Appreciate the help!
 

Attachments

  • Capture.PNG
    Capture.PNG
    6.2 KB · Views: 3

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
How does the value in C3 determine the formatting in C column? What value causes what formatting? Same question for all the columns you want to format.

Let's say that for all those columns, you want to fill cells with green if the value in row 3 of that column is >5.

Rule using a formula:
Excel Formula:
=C$3>5
Applies To range:
Excel Formula:
$C:$E
 
Upvote 0
Hi Jeff,

Thanks for the reply.

What I am looking for similar to the answer you provided, however the formatting would apply to just that column and not the range, so C3 will affect C5:C99, D3 will affect D5:D99 ands so on, and anything > than the number in cell three would be one color/format, and < would be another color/format. Essentially the number in cell 3 will determine the formatting of the rest of the column.

I am looking at dataset that has well over 30 columns, and I am wondering if there is a way to set up a formula in the conditional formatting to apply to the tab as a whole, instead of setting up 60+ conditional formulas?
 
Upvote 0
Yes, you can apply the rule I gave to all columns, because the column is a relative reference (the row is an absolute reference because of the $).

You just need two rules.

Applies To $C:$AZ (where AZ is whatever your last column is. I have used the entire columns instead of worrying about what is the last row. That gives you more flexibility.)
Excel Formula:
=AND(ROW(C1)>=5,C1>C$3)

Applies To $C:$AZ
Excel Formula:
=AND(ROW(C1)>=5,C1<=C$3)

You said > and < but did not mention =.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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