I have an excel spreadsheet that looks like the following.
Order No. Order Date Ordered By Ordered By Company Ordered For Ordered For Company Product Code, Revision Version
100739 11/1/2013 Scott, Kimberly Virtus James Delbert Browning, - Edward Jones 8020, 0113 B258
100739 11/1/2013 Scott, Kimberly Virtus James Delbert Browning, - Edward Jones 8417, 0613 B4
100740 11/1/2013 Butler, Jessica Virtus Troy Lawrence Young, - First Citizens Securities Corp 8020, 0113 B258
100740 11/1/2013 Butler, Jessica Virtus Troy Lawrence Young, - First Citizens Securities Corp 8415, 0613 B4
100746 11/1/2013 Salerno, RJ Virtus John O'Neil, - Merrill Lynch VIR003, 1
100746 11/1/2013 Salerno, RJ Virtus John O'Neil, - Merrill Lynch VIR008, 0112
100746 11/1/2013 Salerno, RJ Virtus John O'Neil, - Merrill Lynch VIR021, 1
I am creating a macro that will insert two new columns at the beginning of the spreadsheet named,(Order and Lines).
I need to find a way to automatically fill in a "1" in the first cell of the order? and then "1" on each other line items in the "Lines" field.
Result would be:
Order Lines Order No. Order Date Ordered By Ordered By Company Ordered For Ordered For Company Product Code, Revision Version
1 100739 11/1/2013 Scott, Kimberly Virtus James Delbert Browning, - Edward Jones 8020, 0113 B258
1 100739 11/1/2013 Scott, Kimberly Virtus James Delbert Browning, - Edward Jones 8417, 0613 B4
1 100740 11/1/2013 Butler, Jessica Virtus Troy Lawrence Young, - First Citizens Securities Corp 8020, 0113 B258
1 100740 11/1/2013 Butler, Jessica Virtus Troy Lawrence Young, - First Citizens Securities Corp 8415, 0613 B4
1 100746 11/1/2013 Salerno, RJ Virtus John O'Neil, - Merrill Lynch VIR003, 1
1 100746 11/1/2013 Salerno, RJ Virtus John O'Neil, - Merrill Lynch VIR008, 0112
1 100746 11/1/2013 Salerno, RJ Virtus John O'Neil, - Merrill Lynch VIR021, 1
Basically a client pays a price per order, and a price per additional item in the order, so I will sum these up at the bottom of the spreadsheet.
Any help in the right direction would be appreciated. The new orders always have a blank row above it so the formula can basically say if cell in column "C" is blank do this until "C" is blank again.
Thanks
Ryan.
Bookmarks