consolidate columns into one column

i have data across multiple rows and columns

i want to put it all into one column A

is there vba that can do this
finnstoneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

als315Commented:
Can you upload sample and show expected result?
0
finnstoneAuthor Commented:
its just data in multiple columns that needs to  be put in col A. each column is of differrent length and has blank values in random places
0
Roy CoxGroup Finance ManagerCommented:
The blanks in random places will make this more difficult.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Pawan KumarDatabase ExpertCommented:
Sql can do that. If u can give me an example.
0
Martin LissOlder than dirtCommented:
Run the ColA macro in this workbook.
29065331.xlsm
0
Roy CoxGroup Finance ManagerCommented:
I thought the author wanted to combine the columns into one, i.e. add each column consecutively to below each other. If Martin's interpretation is correct then you don't need VBA, use CONCAT or TEXTJOIN functions.
0
Pawan KumarDatabase ExpertCommented:
@Author - You can easily do this in sql like below-

SELECT col1 + ' ' + col2 ....
From yourtable

or

SELECT CONCAT ( col1 , ' '  , col2 ) ...
0
Martin LissOlder than dirtCommented:
SELECT CONCAT ( col1 , ' '  , col2 ) ...
Except that if a column is Empty then the result will have an unneeded space.
0
finnstoneAuthor Commented:
i am working in microsft excel
0
Martin LissOlder than dirtCommented:
Did you try the workbook I posted in post ID: 42347683?
0
finnstoneAuthor Commented:
thx Martin missed it
0
finnstoneAuthor Commented:
its not working, maybe i didnt describ enough. i need it to make each value its own cell. instead it still groups them. i attached it with my data
29065331.xlsm
0
Martin LissOlder than dirtCommented:
I see your desired output and I think I understand what you mean when you say "i need it to make each value its own cell",  but if each cell in range B2:AJ619 is to be listed in column "A", shouldn't there be over 20,000 entries in that column?
0
Martin LissOlder than dirtCommented:
Try the attached which filters out the blank cells.
29065331a.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Roy CoxGroup Finance ManagerCommented:
TEXTJOIN eliminates spaces
0
finnstoneAuthor Commented:
THANKS
0
Martin LissOlder than dirtCommented:
You're welcome and I'm glad I was able to help.

If you expand the “Full Biography” section of my profile you'll find links to some articles I've written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange MVE 2015
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2017
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VBA

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.