Stacked multiple columns into one column ignoring blank and 0

ceecee88

Board Regular
Joined
Jun 30, 2022
Messages
59
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi, this what I have got so far, I get it to stacked but it won't ignore blank (it is showing 0), I need it for older version, any suggestion please?

Thank you!

1656929172789.png
 
Very nice!

But I can't resist the slightly more horrible version that stacks by column ...

ABCDE
1
2AAFF
3BBGG
4DD
5CCEE
6
7
8AAAA
9FFBB
10BBCC
11GGDD
12DDEE
13CCFF
14EEGG
15  
16
Sheet1
Cell Formulas
RangeFormula
B8:B15B8=IFERROR(INDIRECT(TEXT(AGGREGATE(15,6,(ROW(B$2:E$5)*10^6+COLUMN(B$2:E$5))/(B$2:E$5<>""),ROWS(B$8:B8)),"R000000C000000"),0),"")
C8:C15C8=IFERROR(INDIRECT(TEXT(SUMPRODUCT(MID(TEXT(AGGREGATE(15,6,(COLUMN(B$2:E$5)*1000+ROW(B$2:E$5))/(B$2:E$5<>""),ROWS(C$8:C8)),"000000"),{4,1},3)*{1000,1}),"R000C000"),),"")
You are both are Superman! Thank you! Can I click resolved for both solution or I can only click one?
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Can I click resolved for both solution or I can only click one?
You can only click one. If you are going with an INDIRECT solution and want the results by column then Stephen has got it in post #20. (y)
 
Upvote 0
You can only click one. If you are going with an INDIRECT solution and want the results by column then Stephen has got it in post #20. (y)
Thank you again, I'm going with the indirect solution :)
 
Upvote 0

Forum statistics

Threads
1,223,738
Messages
6,174,209
Members
452,551
Latest member
croud

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