Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subtotal VB script

Status
Not open for further replies.

ratman

Technical User
Jun 26, 2000
143
US
Excel's generic Subtotals option offers the &quot;count&quot; function which includes zero's in it's results and not the &quot;countif&quot; function I need.<br>I need a VB script that will sort by column &quot;D&quot; then subtotal on each change in column &quot;D&quot; using the &quot;countif&quot; function placing subtotal results in column &quot;G&quot;. The countif condition is not equal to zero.....as in any negative or positive numerical value.<br>That is my basic requirement but it would also be nice if the subtotal result could then be multipied by 40.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top