tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I really need some help here please,
I have a sheet that contains sales in columns A to H
Column A is the list of Buyers names
now in Column J I have made a list of my Buyers from "A" using the "Unique" formula (i.e. "=unique(A2:A5000")")
this is great but I need each line's ref number. that's in column H
so I need a macro that when I run it takes each name in Column J2:J the last row, and bring all the data that's in column H for this name
so if the Buyer was Tony,
then column A will have at least one tony, so find each tony in range A2:A5000 and whatever in column H put into I using a comma to separate each bit of data. like below!
please help if you can i'm really stuck and need this for the morning
I really need some help here please,
I have a sheet that contains sales in columns A to H
Column A is the list of Buyers names
now in Column J I have made a list of my Buyers from "A" using the "Unique" formula (i.e. "=unique(A2:A5000")")
this is great but I need each line's ref number. that's in column H
so I need a macro that when I run it takes each name in Column J2:J the last row, and bring all the data that's in column H for this name
so if the Buyer was Tony,
then column A will have at least one tony, so find each tony in range A2:A5000 and whatever in column H put into I using a comma to separate each bit of data. like below!
please help if you can i'm really stuck and need this for the morning
Column A | Column H | Column I | Column K | |||||||||
Buyers | Ref Numbers | Unique Buyers | Combined Ref Numbers | |||||||||
Tony | REf1234 | Tony | REf1234,Hoes 69,Tut Tut | |||||||||
Bill | Ide 456 | Bill | Ide 456
| |||||||||
Sue | Can Be Anything | Sue | Can Be Anything,Ref 221 | I want a macro to create K from A and H | ||||||||
Sue | Ref 221 | |||||||||||
Bill | Vt67 | |||||||||||
Bill | Hotel 9 | |||||||||||
Tony | Hoes 69 | |||||||||||
Tony | Tut Tut |