Macro to Auto Sum & Auto Print Unique Values

mst3kr

New Member
Joined
Apr 15, 2013
Messages
46
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Hello! I need a macro that will look through the Bidder # column, pull out each unique value, sum up the values in the $ Bid column, Auto Print the Bidder information (both the totals and the unique items they've won) using an Invoice-esque page (that I have yet to create), and then repeat the above steps based on the next unique Bidder #. The macro would need to continue through the Bidder # list until it had printed all of the unique Bidder # values.

I've tried to piece-meal several macros I've found online but haven't found a combination that works. So, I'm turning to the experts!


Item #</SPAN>
Item</SPAN>
Bidder #</SPAN>
$ Bid</SPAN>
1</SPAN>
Hat</SPAN>
456</SPAN>
$450.00</SPAN>
2</SPAN>
Shorts</SPAN>
345</SPAN>
$200.00</SPAN>
3</SPAN>
Bike</SPAN>
333</SPAN>
$4.00</SPAN>
4</SPAN>
Cap</SPAN>
222</SPAN>
$66.00</SPAN>
5</SPAN>
TV</SPAN>
456</SPAN>
$323.00</SPAN>
6</SPAN>
Radio</SPAN>
333</SPAN>
$55.00</SPAN>
7</SPAN>
Couch</SPAN>
555</SPAN>
$150.00</SPAN>
8</SPAN>
Toaster</SPAN>
333</SPAN>
$75.00</SPAN>
</SPAN>
</SPAN>

<TBODY>
</TBODY>

Many thanks in advance for any help!
-Greg
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Not sure I can provide the full answer to this but having seen this in operation are you looking for unique values or highest or lowest unique values?
 
Upvote 0
Dryver - Unique. Essentially, I need the macro to recognize each unique Bidder #, sum up the values in the $ Bid column for each unique Bidder #, then do the Auto-Print. Afterwards, repeat the process with the next unique Bidder # until it has exhausted all of the unique Bidder #'s.
 
Upvote 0

Forum statistics

Threads
1,215,576
Messages
6,125,633
Members
449,242
Latest member
Mari_mariou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top