Expanding Conditional Formatting down multiple rows

Walkon

New Member
Joined
Dec 13, 2021
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Good evening,

I sort application data. A "complete" application has three components - one application document, and two references. I aggregate the data from the two sources (applications and references) and sort by the Last Name of the applicant (ALast). I then use a formula to determine a formula to determine if all three of the components for a particular application is present. [ =IF(AND(A2=A3,A3=A4,A1<>A2),"Complete","") ]. I then use Conditional Formatting to colour the rows that are "Complete". See "Completes - MrExcel.jpg image below.

As I need to be able to pull all three rows of each "Complete" Application from the column of data. I was thinking that if all three of the rows of each "Complete" application could have the "Complete" label in the "Complete?" column, (F in the image below) then I could sort the data based on either cell colour or by column F. See "Desired result - MrExcel.jpg image below.

I have been unable to develop a formula that will identify each row in a "complete" grouping.

I would be very grateful for ideas.

Thanks,
 

Attachments

  • Completes - MrExcel.jpg
    Completes - MrExcel.jpg
    73.3 KB · Views: 5
  • Desired result - MrExcel.jpg
    Desired result - MrExcel.jpg
    82 KB · Views: 5

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with. :cool:
You will generally get faster/better responses
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)

Is this what you are after?

25 02 09.xlsm
ABCDEF
1IDAlastComplete?
21AComplete
31A
41A
52B
63C
73C
84D
94D
105EComplete
115E
125E
136FComplete
146F
156F
Complete
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F15Expression=INDEX($F$1:$F2,MATCH($A2&"|"&$B2,$A$1:$A2&"|"&$B$1:$B2,0))="Complete"textNO


Or another option

25 02 09.xlsm
ABCDEF
1IDAlastComplete?
21AComplete
31A
41A
52B
63C
73C
84D
94D
105EComplete
115E
125E
136FComplete
146F
156F
Complete (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F15Expression=TAKE(FILTER($F$2:$F2,($A$2:$A2=$A2)*($B$2:$B2=$B2)),1)="Complete"textNO
 
Upvote 0
Another option:
Book3
ABCDEF
1IDAlastComplete?
21AComplete
31A
41A
52B
63C
73C
84D
94D
105EComplete
115E
125E
136FComplete
146F
156F
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F15Expression=COUNTIFS($B:$B,$B2,$F:$F,"Complete")textNO
 
Upvote 0
Another option:
I think a check of column A would also be needed as I imagine a person could have more than one application & I think column A is the application ID not the person's ID (& the OP's formula check in column F includes a check on column A being the same so I assume it could be different)
Also, the check only need to be upwards so if the data was very large it may be best (it certainly shouldn't hurt) to restrict the check that way.

25 02 09.xlsm
ABCDEF
1IDAlastComplete?
21AComplete
31A 
41A 
52AComplete
62A 
72A 
83A 
94D 
104D 
115EComplete
125E 
135E 
146FComplete
156F 
166F 
Complete (3)
Cell Formulas
RangeFormula
F2:F16F2=IF(AND(A2=A3,A3=A4,A1<>A2),"Complete","")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F16Expression=COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2,$F$2:$F2,"Complete")textNO


.. or maybe all that means the check only needs to be on cols a & F and not B at all?

25 02 09.xlsm
ABCDEF
1IDAlastComplete?
21AComplete
31A 
41A 
52AComplete
62A 
72A 
83A 
94D 
104D 
115EComplete
125E 
135E 
146FComplete
156F 
166F 
Complete (4)
Cell Formulas
RangeFormula
F2:F16F2=IF(AND(A2=A3,A3=A4,A1<>A2),"Complete","")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F16Expression=COUNTIFS($A$2:$A2,$A2,$F$2:$F2,"Complete")textNO
 
Upvote 0
Good morning,
Thanks very much for the solutions and the info regarding XL2BB. My apologies for making things more difficult than needed. I have donwloaded XL2BB and will use it in future asks.

Thnaks again,

BEst,

Rob
 
Upvote 0

Forum statistics

Threads
1,226,498
Messages
6,191,374
Members
453,655
Latest member
lasvegasbuffet

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