Excel Data Layout help


I have attached an example of what I am after.

I have two columns of numbers, column A is order numbers and column B is the retail code.

I would like to have a list of Order numbers, that only has the order number listed once and then going across the page I would have the retails codes that pertain to the order number.

Would I be best using a formula or could I some how use a pivot table for this?

Any help will be greatly appreciated!

Thank you
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.


On the attached workbook, on sheet 2.
Have a look at the 2 pivot tables they give you the data similar to how you want it as well as the number of retail codes per order.

How it was done:
Format the 2 data columns as a table (Home Tab > Styles)
Insert a Pivot table (Insert Tab > Tables)

Select the pivot table and drag the columns in the right hand pane as you want them.

Hope this helps
user2073Author Commented:
Hi Maheshvaran_Padiachi,

Unfortunately I need the data laid out exactly like my example needed. Thanks for the suggestion though.
Rob HensonFinance AnalystCommented:
See attached.

Rob H
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

Rob HensonFinance AnalystCommented:
Now with all 131 orders listed rather than just 3.


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
user2073Author Commented:
Thank you Rob! it works perfectly, I appreciate your help!!
Rob HensonFinance AnalystCommented:
Glad to be of help.
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.