tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,194
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi everyone,
but of a problem,
I've asked my supplier for product codes and they sent me a list in excel
its in sheet"data1"
Row 1 is headers
the data is in columns A:BZ
now the problem i have is some products are sold in Quantiys and some are not,
Column G has the quanity in it. for singlr items this is blank so the row is fine
But for multipacks i get this in column G "1,2,3,4,5,6" or "12,24,35" it can be any number seperated by a comma everytime.
I need amacro to copy the data from sheet Data1 to sheet Data2
if the row has nothing in column G then just copy it once, if it has data then i need it split up into multiple rows so each row only has 1 of the numbers.
Please help if you can
Thanks
Tony
but of a problem,
I've asked my supplier for product codes and they sent me a list in excel
its in sheet"data1"
Row 1 is headers
the data is in columns A:BZ
now the problem i have is some products are sold in Quantiys and some are not,
Column G has the quanity in it. for singlr items this is blank so the row is fine
But for multipacks i get this in column G "1,2,3,4,5,6" or "12,24,35" it can be any number seperated by a comma everytime.
I need amacro to copy the data from sheet Data1 to sheet Data2
if the row has nothing in column G then just copy it once, if it has data then i need it split up into multiple rows so each row only has 1 of the numbers.
Please help if you can
Thanks
Tony