Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The formula
=IF(SUMPRODUCT(--($C$4:C4=C4))1,"",SUMPRODUCT(--(C4:$C$501=C4),H4:$H$501)) is too expensive. Invoke instead: =SUMIF(C4:$C$501,C4,H4:$H$501) If necessary: =IF(COUNTIF($C$4:C4,C4)1,"",SUMIF(C4:$C$501,C4,H4 :$H$501)) The average formula can be modified to excluse 0's... =AVERAGE(IF(Range0,Range) confirmed with control+shift+enter. Brian wrote: Howdy All, I have a spreadsheet that contains a couple instances of a formula similar to this one: =IF(SUMPRODUCT(--($C$4:C4=C4))1,"",SUMPRODUCT(--(C4:$C$501=C4),H4:$H$501)) The formula works great, with one exception. It leaves a 0 value in the cell below the last instance. This interferes with an AVERAGE formula that I am running on a column. Any ideas on how to either eliminate the 0 value, or modify my AVERAGE formula to not count the 0 value? Thanks, Brian |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell References | Excel Discussion (Misc queries) | |||
Using an offset formula for the reference in a relative reference | Excel Worksheet Functions | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
Help with this conditional IF statement | Excel Discussion (Misc queries) | |||
Possible Lookup Table | Excel Worksheet Functions |