Joel Horowitz
New Member
- Joined
- Aug 23, 2002
- Messages
- 34
Hye,
I sometimes have raw data in a format that does not make it easy to feed into a pivottable. For instance, I have a table like this
Date Prod1 Prod2 Prod3 Prod4
1/1 343 545 242 543
2/1 432 542 143 656
... ... ...
What I would like is a format like
Date Productname Sales
1/1 Prod1 343
1/1 Prod2 545
1/1 Prod3 242
1/1 Prod4 543
2/1 Prod1 432
... ... ...
In that particular instance, I can do it, via the mod() function and vlookup. However, sometimes the layout of the table is a little different, and I need to rethink how to program it. Is there a macro that can do it in a flexible way?
Thanks
I sometimes have raw data in a format that does not make it easy to feed into a pivottable. For instance, I have a table like this
Date Prod1 Prod2 Prod3 Prod4
1/1 343 545 242 543
2/1 432 542 143 656
... ... ...
What I would like is a format like
Date Productname Sales
1/1 Prod1 343
1/1 Prod2 545
1/1 Prod3 242
1/1 Prod4 543
2/1 Prod1 432
... ... ...
In that particular instance, I can do it, via the mod() function and vlookup. However, sometimes the layout of the table is a little different, and I need to rethink how to program it. Is there a macro that can do it in a flexible way?
Thanks