How do you display values from an array without blanks, zeros, repeating a number?

arthurz11

Board Regular
Joined
Nov 9, 2007
Messages
158
Office Version
  1. 2021
Platform
  1. Windows
Picture1.png
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try this. VSTACK unfortunately not available in your version.

Excel Formula:
=LET(z,FILTERXML("<x><y>"&SUBSTITUTE(TEXTJOIN(",",,TRANSPOSE(A1:B5)),",","</y><y>")&"</y></x>","//y"),UNIQUE(FILTER(z,z<>0)))

As an aside, you need to think twice about the spelling in your signature. :)
 
Upvote 0
Solution
Another option:

Excel Formula:
=LET(
a,A1:A5,
b,B1:B5,
ra,ROWS(a),
rb,ROWS(b),
rsq,SEQUENCE(ra+rb),
csq,SEQUENCE(,COLUMNS(a)),
array,IFS(rsq<=ra,INDEX(a,rsq,csq),rsq<=ra+rb,INDEX(b,rsq-ra,csq)),
UNIQUE(FILTER(array,array<>0)))
 
Upvote 0
Whoa! It worked super great! That was perfect and it even worked with text which I didn't expect. Awesome work!!!!! Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,221,519
Messages
6,160,294
Members
451,636
Latest member
ddweller151

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