Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm trying to highlight the duplicate row for the following table. The purpose is to highlight the student that is absent in more than 2 days using Google Spreadsheet only. The data already modified and only captures a few of them.

        |------------|-------------|-------------|-------------|------------|
        |    Day 1   |   Day 2     |    Day 3    |    Day 4    |   Day 5    |
        |------------|-------------|-------------|-------------|------------|
        |John        |John         |Dandy        |Yuri G       |John        |
        |Apppleton   |Appleton     |Appleton     |Anton Doyle  |Appleton    |
        |Yuri G      |Chris        |John         |Appleton     |Yuri G      |
        |Anton Doyle |Anton Doyle  |Anton Doyle  |Asanka       |Anton Doyle |
        |Boyle       |Boyle        |Yuri G       |Reeta        |Asanka      |

This is the expected output

Pict1

The criteria is, if the student absent for 2 days, the highlight will turn green. If 3 days, it will highlight yellow. If 4 days or more will highlight red. is this possible using conditional formatting in google spreadsheet? I have tried =countif(A:C,"John")>2 for more than 3 days. However the formula highlights all of the column in A:C . Kindly expect any recommendation for this. thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
192 views
Welcome To Ask or Share your Answers For Others

1 Answer

I believe, the Google Spreadsheet by default stops if any one criteria meets.

You can Click Here to check the formula.

Click on the cell A2 and enter the below formulas in the given order and select corresponding color. Use 'Add Rule' to add each of these rules.

=COUNTIF($A$2:$E$100,A2)>3
=COUNTIF($A$2:$E$100,A2)>2
=COUNTIF($A$2:$E$100,A2)>1

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...