Share via

Conditional Format with conditions

Anonymous
2024-11-27T16:25:40+00:00

Good Morning,

I would like to do a conditional format based on the entered value D26:N32) and parameters set by the type of unit used to collect the data.

A value gets entered into the table D26:N32.

If the value is over the threshold indicated in rows 23 &,24, I want it to turn red

I tried the following formula for D26-D32 with success =D26>IFS($C26=C$23,D$23,$C26=C$24,D$24)

But when I try to apply the format to the other columns, It doesn't work

The threshold is pulled from 2 different tabs in the workbook

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2024-11-28T07:48:06+00:00

    For your new screenshot:

    =SUM(--(D8:R14>IFS($C8:$C14=$C$4,D$4:R$4,$C8:$C14=$C$5,D$5:R$5,TRUE,1000000)))

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. HansV 462.6K Reputation points
    2024-11-27T16:34:44+00:00

    Use

    =D26>IFS($C26=**$C$23,D$23,$C26=$**C$24,D$24)

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-11-28T00:20:52+00:00

    Hi Ashish,

    The logic on the colored cells was my 1st question that Hans gave me a formula for. =D26>IFS($C26=**$C$23,D$23,$C26=$**C$24,D$24)

    Was this answer helpful?

    0 comments No comments
  4. Ashish Mathur 102K Reputation points Volunteer Moderator
    2024-11-27T23:14:23+00:00

    Hi,

    There is no built-in function to count coloured cells. Not unless you can share the logic based on which those cells were coloured.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-11-27T22:41:35+00:00

    That worked great! Thank you!

    Would you also be able to provide me with a formula to calculate the number of fails per date. So counting all the red cells. It should return the value in column U.

    In addition for column T, I want to know how many passed during the initial test. I.e. Row 8 failed 1 time, so out of the 5 sites in row 6, 4 sites passed on the 1st go. row 10, even though there are 2 failures, out of the 5 sites, 4 passed on the 1st go.

    In row 11, out of the 5 sites in row 6, only 3 passed on the 1st go.

    Was this answer helpful?

    0 comments No comments