Multiple values in a single cell

gilteetoo

New Member
Joined
Mar 20, 2019
Messages
5
Hi Everyone,

Newbie here

I regularly receive a spreadsheet which include merchandise orders in a column. However, if two or more items are ordered by a customer, the data is all added into a single cell in the row corresponding to their name. I then need to extract the data for individual items, which may include not only a number but also size (e.g. socks 2, shorts 1 L, singlet 1 M) to enable an order to be sent to the manufacturer.

Can anyone help with a solution for extraction the data into individual orders that can then be used to create an order.

Thanks
 
G'day Gil,

I have done some playing around with Text to Columns, and it doesn't like the internal carriage return - I am using Excel 2010 - and it doesn't seem to allow it to be used as a delimiter.

To my inexperienced eye, this really needs a VBA solution, and I suspect that with the variable number of lines in the cell, the code is going to be quite complex, particularly as each order line can vary depending on whether a size is included or not.

Is there any chance of getting the source modified - it may ultimately be easier?

shane
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
G'day again,

Based on a response in another thread to an inquiry similar to yours, I downloaded the Power Query Add-in for Excel and was able to split the three lines you gave into rows and then split the rows into the 4 blocks of information and pass it back into the worksheet. It seems that you can run that as a routine like a macro, so it may be one way to semi automate the process.

Power Query is an official Microsoft product, so should be consistent with IT security requirements.

I hope that is of use to you.

Good luck

shane
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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