populate repeating new numbers only?

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi!

how can i populate repeated unique numbers to the next cell?
like in row c3:h3 there's 2 repeating numbers,
and in c4:h4 there's also 2 but one of them already appeared in c3:h3 so i need a way to populate only the new one's,
way maybe to use the formula in j col but with subtract/minus the previous result?
and also, formula the only count the new one's?

test.xlsm
CDEFGHIJKLMNOP
1123456wanted resultfor $C$2:$H$2,C3:H3for $C$2:$H$2,C4:H4$C$2:$H$2,C5:H5$C$2:$H$2,C6:H6
2123456
3567891025623-
425111213142
5315161718191
67891011120
test
Cell Formulas
RangeFormula
J3:J6J3=SUM(--(COUNTIF($C$2:$H$2,C3:H3)>0))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J2040:J1048576,J3:J2038Cell Value=3textNO
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Is this something that you can work with?

Note that TEXTSPLIT is quite new so you may not have it yet.

Book1
CDEFGHIJKLM
1123456
2123456
3567891056
4251112131425
5315161718193
6789101112 
7
85623
Sheet1
Cell Formulas
RangeFormula
J5:J6,J3:K4J3=IFERROR(TRANSPOSE(MODE.MULT($C$2:$H$2,C3:H3)),"")
J8:M8J8=TRANSPOSE(UNIQUE(TEXTSPLIT(TEXTJOIN(",",1,J3:K6),,",")))
Dynamic array formulas.
 
Upvote 0
thanks jason,
though i need without the k4, because it's already in j3,
i need to know per row how many new one's there is

any way to "subtract" j3 from j4?
 
Upvote 0
I was actually using J3:K6 as a helper for the unique list in J8:M8 rather than it being the final result but I can see why you would want it removed from K4 as well.

This one appears to work correctly but I have only done one very quick test on it.

Note that J2:O2 must be empty. If your actual data contains more than 6 columns then you will need the equivalent number of empty columns for the formula to work with.
Likewise J3:O6 can not contain anything other that the dynamic array formula populated from column J, as with the point made above, the number of columns reserved for this needs to be equal to the number of columns in the data table.
tourless.xlsx
CDEFGHIJKLMNO
1123456
2123456
3567891056
425111213142
5315161718193
6789101112 
7
85623
Sheet1
Cell Formulas
RangeFormula
J3:K3,J4:J6J3=IFERROR(TRANSPOSE(MODE.MULT($C$2:$H$2,IF(COUNTIF(J$2:O2,C3:H3)=0,C3:H3))),"")
J8:M8J8=TRANSPOSE(UNIQUE(TEXTSPLIT(TEXTJOIN(",",1,J3:K6),,",")))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,196
Latest member
Maxkapoor

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