Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I don't know if this should be done in VBA or a nested IF formula.
I need to produce Monthly and Quarterly totals based on records in a master SS with named columns/fields. I have a second SS also with named columns/fields where all calculations are performed and it is that SS that I use to obtain the results for my report SS. I found that SUMIF wanted an array range which DID NOT not allow full column selection. The number of records varies so a fixed range is not very useful. I have the following formula that works (well kind of) but instead of producing a total for the SELECTED records it results in a total of ALL records. Would like some feed back as to whether this seemingly simple task can be done with a formula or whether I should work on it with code? =SUM(IF((MonthClose=RptMonth)*(Status="A")*(RptYea r="2007"),WeightedNet)) Should SUM just those records selected for a given month number in the named field "RptMonth" (5) matches the value in "MonthClose" AND ALSO has the "Status" field value of "A" that have a "RptYear" value of "2007" and then sums the values in the "WeightedNet" field for just those records. Instead this sums ALL records INSTEAD of just the selectedrecords. Thanks in advance for your suggestions, Dennis |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print report based on criteria | Excel Discussion (Misc queries) | |||
Lookup Value (and Total) Based on Two Criteria | Excel Worksheet Functions | |||
Monthly Report | Excel Discussion (Misc queries) | |||
get a total based on criteria in two columns | Excel Worksheet Functions | |||
Formula help in a monthly sales report. | Excel Worksheet Functions |