An issue with HSTACK and UNIQUE

Cubist

Well-known Member
Joined
Oct 5, 2023
Messages
852
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I'm expecting the 7 to get removed in row 4. What's the issue?

Book1.xlsx
CDEFGH
217327
3
417327
Sheet1
Cell Formulas
RangeFormula
C4:G4C4=UNIQUE(HSTACK(C2:F2,H2))
Dynamic array formulas.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Since you are looking across a row, you'll need to take UNIQUE by column with the 2nd argument:
Excel Formula:
=UNIQUE(HSTACK(C2:F2,H2),1)
 
Upvote 0
Solution
Oops, didn't know UNIQUE had other arguments.
 
Upvote 0

Forum statistics

Threads
1,215,418
Messages
6,124,793
Members
449,189
Latest member
kristinh

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