Hello all, hoping someone can help me out. I have a report that I download with client account numbers as an identifier and several fields that are associated with that ID. I would like to build a macro that will cut/copy and paste all the rows that have the same account number into a new tab.
Columns: fixed number of columns, with consistent header
Rows: the number of rows associated with each unique account #/ID constantly changes.
Unique IDs: variable or fixed @ 10 if needed*
*The tabs can be pre-created blank or with the header and named e.g. Acct 1, Acct 2... Acct 10.
Let me know if any more specifics would be of assistances.
Thanks for looking!
Columns: fixed number of columns, with consistent header
Rows: the number of rows associated with each unique account #/ID constantly changes.
Unique IDs: variable or fixed @ 10 if needed*
*The tabs can be pre-created blank or with the header and named e.g. Acct 1, Acct 2... Acct 10.
Let me know if any more specifics would be of assistances.
Thanks for looking!
Sample Output.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Account Number | Product | Quantity | ||
2 | Acct #1 | Oranges | 2 | ||
3 | Acct #1 | Cherries | 5 | ||
4 | Acct #1 | Limes | 4 | ||
5 | Acct #2 | Cherries | 12 | ||
6 | Acct #2 | Broccoli | 1.50% | ||
7 | Acct #3 | Salad | 1000 | ||
8 | Acct #3 | Cherries | 50 | ||
9 | Acct #3 | Oranges | 25 | ||
10 | Acct #3 | Melons | 66 | ||
11 | Acct #3 | Figs | 7 | ||
12 | Acct #4 | Limes | -2 | ||
13 | Acct #4 | Salad | 5.50% | ||
Sample Output |
Sample Output.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Account Number | Product | Quantity | ||
2 | Acct #1 | Oranges | 2 | ||
3 | Acct #1 | Cherries | 5 | ||
4 | Acct #1 | Limes | 4 | ||
5 | |||||
6 | |||||
Acct 1 |
Sample Output.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Account Number | Product | Quantity | ||
2 | Acct #2 | Cherries | 12 | ||
3 | Acct #2 | Broccoli | 1.50% | ||
4 | |||||
5 | |||||
Acct 2 |