# How to organize data in excel ?

Attached excel file has about 1000 16-bit values.  How can I organize them in a table with one column and change them to decimal. as follows:

0
0
..
..
50
50
50
..
..
19050
19050
..
...
voltage-array.xls
LVL 1
###### 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.

Commented:
go to Data then TEXT TO COLUMN then select delimited then next then unmark all and select only space and then next and finish
0
EngineerCommented:
This macro will put all those numbers down a single list converting every 4 digits using excel's hex2dec function

Sub transhex2dec()
For Each cel In Range("A1:A" & Range("A1").End(xlDown).Row)
arr = Split(cel, " ")
For Each itm In arr
Range("B" & Rows.Count).End(xlUp).Offset(1).Value = Left(itm, 4)
Range("B" & Rows.Count).End(xlUp).Offset(1, 1).Value = WorksheetFunction.Hex2Dec(Left(itm, 4))
Range("B" & Rows.Count).End(xlUp).Offset(1).Value = Right(itm, 4)
Range("B" & Rows.Count).End(xlUp).Offset(1, 1).Value = WorksheetFunction.Hex2Dec(Right(itm, 4))
Range("B" & Rows.Count).End(xlUp).Offset(1).Select
Next itm
Next cel
End Sub
0

Experts Exchange Solution brought to you by

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

###### 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
Microsoft Excel

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.