Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
subtotal
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
subtotal
I'd create an extra column and put a calculation similar to this in it:
=if(sumif(BreakColumn,Brakeitem=ThisColBrakeItem,O rigCol)1000,OrigCol/2,OrigCol). Then do you subtotals on this new column. HTH. "Ira" wrote: 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? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
subtotal
Thank you, Mike.
"Mike H." wrote: I'd create an extra column and put a calculation similar to this in it: =if(sumif(BreakColumn,Brakeitem=ThisColBrakeItem,O rigCol)1000,OrigCol/2,OrigCol). Then do you subtotals on this new column. HTH. "Ira" wrote: 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Subtotal To Include Item Description On Subtotal Line | Excel Discussion (Misc queries) | |||
sort macro, subtotal and add lines after subtotal | Excel Discussion (Misc queries) | |||
pasting to subtotal lines without replacing hidden -non-subtotal l | Excel Discussion (Misc queries) | |||
Subtotal of Subtotal displays Grand Total in wrong row | Excel Worksheet Functions | |||
Sort, Subtotal, Label Subtotal, Insert row | Excel Programming |