subtotal

  • Thread starter Thread starter Ira
  • Start date Start date
I

Ira

I ran subtotals. Now I have to write a code that if total for the group is
more than 1000, then every line item in the group must be devided by 2. Is
there a way to do it in excel?
 
I'd create an extra column and put a calculation similar to this in it:

=if(sumif(BreakColumn,Brakeitem=ThisColBrakeItem,OrigCol)>1000,OrigCol/2,OrigCol). Then do you subtotals on this new column. HTH.
 
Thank you, Mike.

Mike H. said:
I'd create an extra column and put a calculation similar to this in it:

=if(sumif(BreakColumn,Brakeitem=ThisColBrakeItem,OrigCol)>1000,OrigCol/2,OrigCol). Then do you subtotals on this new column. HTH.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top