If this Cell Range contains True in each field, Highlight this different range in the same colour, No

billsfree

New Member
Joined
Mar 3, 2016
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi.

New to Excel and was wondering if someone might be kind enough to lend me a hand🙂

I have an Excel Worksheet with 8 columns:
The first range is D1:D4 (All Text Values)

The range adjacent is D5:D8 (All Boolean values)

Conditional Formatting formula: If(D5 AND D6 AND D7 AND D8) = True, Highlight the 8 fields in light green, otherwise do not do anything...

If((E2:H2) = "True", FORMAT(A2:D2) light green,""))

Sorry.. this is probably a stupid question but I have been working on this and trying to figure it out but just cannot get the range A2:D2 to also be light green if the range D1:D4 all equal true.
Another idea I had is maybe it is easier to refenece the row ? For example, if the 4 columns are true then highlight the row to light green, otherwise leave the row as it is...

Thanks for taking the time to read my Post and I hope you have an awesome Thursday !!!

Oblio
 

Attachments

  • Help Please.png
    Help Please.png
    226.8 KB · Views: 14

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
not sure i follow

is this what you are after

If((E2:H2) = "True", FORMAT(A2:D2) light green,""))

=AND($E2=TRUE,$F2=TRUE,$G2=TRUE,$H2=TRUE)

Book3
ABCDEFGH
1
2TRUETRUETRUETRUE
3TRUE
4
5TRUE
6TRUETRUETRUETRUE
7TRUETRUETRUETRUE
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:D7Expression=AND($E2=TRUE,$F2=TRUE,$G2=TRUE,$H2=TRUE)textYES


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A2:D100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=AND($E2=TRUE,$F2=TRUE,$G2=TRUE,$H2=TRUE)

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Solution
not sure i follow

is this what you are after



=AND($E2=TRUE,$F2=TRUE,$G2=TRUE,$H2=TRUE)

Book3
ABCDEFGH
1
2TRUETRUETRUETRUE
3TRUE
4
5TRUE
6TRUETRUETRUETRUE
7TRUETRUETRUETRUE
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:D7Expression=AND($E2=TRUE,$F2=TRUE,$G2=TRUE,$H2=TRUE)textYES


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A2:D100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=AND($E2=TRUE,$F2=TRUE,$G2=TRUE,$H2=TRUE)

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
MARRY MEEEEEEEEEEEE !!! OMG I honestly thought there is NO WAY to do this !!! I CANNOT BELIEVE your answer... so perfectly illustrated and detailed. Can I but you something... it really would be my pleasure to do so...

And Thanks SOO Very MUCH for taking the time to answer my question and SO Quickly
 
Upvote 0
you are welcome

you could also use
=COUNTIF($E2:$H2,TRUE)=4

i suspect a few other formulas too
 
Upvote 1
MARRY MEEEEEEEEEEEE !!! OMG I honestly thought there is NO WAY to do this !!! I CANNOT BELIEVE your answer... so perfectly illustrated and detailed. Can I but you something... it really would be my pleasure to do so...

And Thanks SOO Very MUCH for taking the time to answer my question and SO Quickly
YES ! It works perfectly !!! :love::love::love:(y)(y)(y)🧠🧠🧠✌️🤟🤘🙏🙏🙏😁
 
Upvote 0
you are welcome

you could also use
=COUNTIF($E2:$H2,TRUE)=4

i suspect a few other formulas too
I assume =4 is based on the value of True ? I kept trying to figure out how to bring the colour in as well... honestly, thanks and can I buy you a gift card or e-transfer ?
 
Upvote 0
the number of TRUE in the count if
so as
$E2=TRUE,
AND $F2=TRUE,
AND $G2=TRUE,
AND $H2=TRUE)

so all 4 therefore hence the count of how many TRUE's there in in the range E:H , must be 4 for the condition to be TRUE and colour
I kept trying to figure out how to bring the colour in as well.
Not sure what you mean
conditional formatting the cell - when the formula is TRUE - so
countif()=4 will only be TRUE when the range has 4 true's and then colour

honestly, thanks and can I buy you a gift card or e-transfer ?
Thats very kind of you , but this forum is available for free help , and people volunteer to give there time , as i do , for no reward , other than helping people with solutions
also in my retirement keeps the brain cells active :) :) (y) :cool: :cool: :cool:
 
Upvote 0
the number of TRUE in the count if
so as
$E2=TRUE,
AND $F2=TRUE,
AND $G2=TRUE,
AND $H2=TRUE)

so all 4 therefore hence the count of how many TRUE's there in in the range E:H , must be 4 for the condition to be TRUE and colour

Not sure what you mean
conditional formatting the cell - when the formula is TRUE - so
countif()=4 will only be TRUE when the range has 4 true's and then colour


Thats very kind of you , but this forum is available for free help , and people volunteer to give there time , as i do , for no reward , other than helping people with solutions
also in my retirement keeps the brain cells active :) :) (y) :cool: :cool: :cool:
I really cannot thank you enough !!! Just trying to modify it to Yes or No so I will need to go over it again to make sure I understand it... Again SO many thanks !!!
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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