Spill formula with COUNTIF

MiniFav

Board Regular
Joined
Mar 10, 2020
Messages
83
Office Version
  1. 365
Platform
  1. Windows
Hey All,

I have the following example.

First Column contains positions which can often be duplicated.

In the second column I have a formula which finds the duplicates, ignores the first instance and then puts "IGNORE" next to the subsequent instances.
I then use this with conditional formatting to grey them out.

In the thrid column, I wish to have column two but in a SPILL formula so I can just hide Row 3 and not worry about anyone deleting the formula and corrupting the data.
This is where I am having issues and I cannot figure out how to ignore the first instance of the duplicate.

Can anyone help?

Hard_time_template_V4_-_Clean.xlsx
BAIAJ
2POSITIONMAC IGNORE ROWSMAC IGNORE SPILL
3  
4Filter Element - 5250HG 
5Filter Element - 5251HG 
6Filter Element - 5252HG 
7Filter Element - 5253HG 
8Filter Element - 5254HG 
9Filter Element - 5255HG 
10Filter Element - 5256HG 
11Filter Element - 5257HG 
12SAFETY VALVE - 316HL 
13SAFETY VALVE - 317HL 
14SAFETY VALVE - 318HL 
15ULB BATTERY - RK-BAT 
16BATTERY - 2PB1 IGNORE
17BATTERY - 2PB1IGNOREIGNORE
18BATTERY - 2PB2 IGNORE
19BATTERY - 2PB2IGNOREIGNORE
20BATTERY APU - 2PB3 IGNORE
21BATTERY APU - 2PB3IGNOREIGNORE
Sheet2
Cell Formulas
RangeFormula
AJ3:AJ1000AJ3=IF(NOT(ISBLANK($B$3:$B$1000)),IF(COUNTIF($B$3:$B1000,$B3:$B1000)=1,"","IGNORE"),"")
AI3:AI21AI3=IF(OR(ISNUMBER(B3),B3>""),IF(COUNTIF($B$3:$B3,$B3)=1,"","IGNORE"),"")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:N1000Expression=IF($AI3="IGNORE",TRUE,FALSE)textNO
B3:B1000Expression=IF(AND(NOT(ISBLANK($C3)),NOT(ISBLANK($D3)),NOT(ISBLANK($E3)),NOT(ISBLANK($F3)),NOT(ISBLANK($G3)),NOT(ISBLANK($H3)),NOT(ISBLANK($I3)),NOT(ISBLANK($J3)),NOT(ISBLANK($K3)),NOT(ISBLANK($L3)),NOT(ISBLANK($M3)),NOT(ISBLANK($N3))),TRUE,FALSE)textNO
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
Excel Formula:
=LET(a,B3:B1000,IF(MMULT((SEQUENCE(ROWS(a))>=SEQUENCE(,ROWS(a)))*(a=TRANSPOSE(a))*(a<>""),SEQUENCE(ROWS(a),,,0))>1,"Ignore",""))
 
Upvote 1
Solution
You can also get rid of the helper column & just use conditional formatting
Fluff.xlsm
B
1
2POSITION
3
4Filter Element - 5250HG
5Filter Element - 5251HG
6Filter Element - 5252HG
7Filter Element - 5253HG
8Filter Element - 5254HG
9Filter Element - 5255HG
10Filter Element - 5256HG
11Filter Element - 5257HG
12SAFETY VALVE - 316HL
13SAFETY VALVE - 317HL
14SAFETY VALVE - 318HL
15ULB BATTERY - RK-BAT
16BATTERY - 2PB1
17BATTERY - 2PB1
18BATTERY - 2PB2
19BATTERY - 2PB2
20BATTERY APU - 2PB3
21BATTERY APU - 2PB3
22
23
24
25
26
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B1000Expression=COUNTIFS(B$3:B3,B3)>1textNO
 
Upvote 0
How about
Excel Formula:
=LET(a,B3:B1000,IF(MMULT((SEQUENCE(ROWS(a))>=SEQUENCE(,ROWS(a)))*(a=TRANSPOSE(a))*(a<>""),SEQUENCE(ROWS(a),,,0))>1,"Ignore",""))
This is fantastic! Thank you (now time for me to break this down and learn it).
 
Upvote 0
You're welcome & thanks for the feedback.
Personally I would ditch the helper & just go with the simpler CF formula.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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