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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,136
Messages
6,129,084
Members
449,485
Latest member
greggy

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