An issue with HSTACK and UNIQUE

Cubist

Well-known Member
Joined
Oct 5, 2023
Messages
1,076
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,216,144
Messages
6,129,120
Members
449,488
Latest member
qh017

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