Error while getting Unique Values using let & Stack

ravi2628

Board Regular
Joined
Dec 20, 2017
Messages
221
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Dear Friends,

good morning, afternoon, night

i was using a formula to get the unique array Values from multiple columns using Let & stack.

so please me out how to resolve the error.

=LET(v,VSTACK(a!F3:G27,b!F3:G26,'c'!F3:G27,d!F3:G26),UNIQUE(FILTER(v,v<>"")))

Error: #value!

Regards,
Ravi
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I think the issue may be the condition on your filter.
Your data is returning two column (F and G), so in your filter, I believe you need to designate which of those two column you want to check for your condition of not being empty.

Out of curiosity, what happens when you try it without the filter, i.e.
Excel Formula:
=LET(v,VSTACK(a!F3:G27,b!F3:G26,'c'!F3:G27,d!F3:G26),UNIQUE(v))
 
Upvote 0
If you can just use column F to filter out the blanks, then you could use this formula to get what you want:
Excel Formula:
=UNIQUE(VSTACK(FILTER(a!F3:G27,a!F3:F27<>""),FILTER(b!F3:G26,b!F3:F26<>""),FILTER('c'!F3:G27,'c'!F3:F27<>""),FILTER(d!F3:G26,d!F3:F26<>"")))
 
Upvote 0
Solution
If you can just use column F to filter out the blanks, then you could use this formula to get what you want:
Excel Formula:
=UNIQUE(VSTACK(FILTER(a!F3:G27,a!F3:F27<>""),FILTER(b!F3:G26,b!F3:F26<>""),FILTER('c'!F3:G27,'c'!F3:F27<>""),FILTER(d!F3:G26,d!F3:F26<>"")))
thank you joe your logic works fine
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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