Need some help in creating a formula to combine cells

RyeGuy

New Member
Joined
Aug 8, 2012
Messages
8
Basically I have a data set that runs across 40+ columns. Its tough for me to explain what it is I am trying to do so the example below hopeful gives some pictoral to it.


As new data gets added I need to pull them int a separate sheet to list specific columns.

1 ABCDEFGHIJKLMNOPQESTUVWXYZ
2 ABCDEFGHIJKLMNOPQESTUVWXYZ
3 ABCDEFGHIJKLMNOPQESTUVWXYZ
4 ABCDEFGHIJKLMNOPQESTUVWXYZ

1 ABCD
2 LMNO
3 WXYZ
4 ABCD


Any help here would be greatly appreciated. Happy Holidays!
 
Hey all,
I need to marge multiple cells in one cell separated with a comma.
I did this:
=C3&","&D3&","&E3&","&F3&","&G3&","&H3&","&I3&","&J3&","&H3&","&K3&","&L3&","&M3&","&N3&","&O3&","&P3&","&Q3
this is the result
Astab-/Astausbruch,,Astungswunden/-fäule,,,,Höhlungen,,,,,,,Totholz,, (there are blank cells so got those ",,,,,")

<tbody>
</tbody>

how can i skip the blank cells?
to get something like this:
Astab-/Astausbruch,Astungswunden/-fäule,Höhlungen,Totholz,

Thanks :)

<tbody>
</tbody>
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hey all,
I need to marge multiple cells in one cell separated with a comma.
I did this:
=C3&","&D3&","&E3&","&F3&","&G3&","&H3&","&I3&","&J3&","&H3&","&K3&","&L3&","&M3&","&N3&","&O3&","&P3&","&Q3
this is the result
Astab-/Astausbruch,,Astungswunden/-fäule,,,,Höhlungen,,,,,,,Totholz,, (there are blank cells so got those ",,,,,")

<tbody>
</tbody>

how can i skip the blank cells?
to get something like this:
Astab-/Astausbruch,Astungswunden/-fäule,Höhlungen,Totholz,

Thanks :)

<tbody>
</tbody>
I also try this:

Code:
[/COLOR]Function Concatenatecells(ConcatArea As Range) As String
'updateby Extendoffice 20151103
  For Each n In ConcatArea: nn = IIf(n = "", nn & "", nn & n & ","): Next
  Concatenatecells = Left(nn, Len(nn) - 1)
End Function
[COLOR=#574123]

but if there in none data in the cells from C3 to Q3 i get as result:
#VALUE!
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

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