table of columns into a single column ignoring blanks

planetsair

New Member
Joined
Jan 19, 2012
Messages
42
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
hello :)

I have data in columns (B, C & D) and I would like to combine it all into one column (F) but ignoring the blank cells (my actual table has 50 columns of 10 rows)

I have got this far (see pic below) with this formula
=OFFSET($B$3, MOD(ROW()-ROW($F$1),ROWS($B$3:$B$12)), TRUNC((ROW()-ROW($F$1))/ROWS($B$3:$B$12)),1,1)

but I dont know how to make it ignore the blank cells - can anyone help me please ?
cheers :)


combine table into one column.JPG
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Is your data just numbers, or do you have long text strings?
Also what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hi Fluff
thanks for the advice - i have updated as suggested (windows and excel 365 for this formula).

the data is mainly 4 characters plus 4 numbers (e.g. ABCD1234) but could be all numbers (it is not likely to be all characters).

thanks for your help
 
Upvote 0
Ok, thanks for that.
How about
+Fluff 1.xlsm
ABCDEFGHI
1
2List1List2List3List4List5List6Combined
31058374638993338321447491058
43130418231022908342910783746
53557116518562819343845003899
63386460828702677343046713338
71038374913033470416321783214
8473338833070381636204749
9118035782005147432153130
1041742488355514124182
11118145213102
1243362908
133429
141078
153557
161165
171856
182819
193438
204500
213386
224608
232870
242677
253430
264671
271038
283749
291303
303470
314163
322178
334733
343883
353070
363816
373620
381180
393578
402005
411474
423215
434174
442488
453555
461412
471181
484521
494336
Result
Cell Formulas
RangeFormula
I3:I49I3=FILTERXML("<k><m>"&TEXTJOIN("</m><m>",,B3:G13)&"</m></k>","//m")
Dynamic array formulas.
 
Upvote 0
thanks fluff,
your suggestions are much appreciated :) but its not quite there yet - the formula you have suggested has given me the list1 in hte correct order but has not joined List2/3/etc onto/below list1. Can you help a bit more please ?

I have updated my document - hopefully its a little clearer now (see pic)


combine table into one column - pic2.JPG
 
Upvote 0
Can you post your sample data including formulae rather than just an image.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
sorry - I dont have permission to download the addon to my work PC (I am waiting on IT to get back to me)

=OFFSET($B$3, MOD(ROW()-ROW($G$3),ROWS($B$3:$B$12)), TRUNC((ROW()-ROW($G$3))/ROWS($B$3:$B$12)),1,1)
this formula is in G3 to G32
 
Upvote 0
this formula ....
=FILTERXML("<k><m>"&TEXTJOIN("</m><m>",,$B$3:$D$12)&"</m></k>","//m")
 
Upvote 0
Do you have the Sort or Unique functions?
 
Upvote 0

Forum statistics

Threads
1,215,501
Messages
6,125,169
Members
449,212
Latest member
kenmaldonado

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