Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I've used the following formula
=IF($E$4=1;C11;IF($E$4=2;SUM(C11:C12);IF($E$4=3;SU M(C11:C13);IF($E$4=4;SUM(C11:C14);"na")))) to sum values in either one, two, three or four rows of data, depending on the value in cell E4. If I want to go beyond the value 4 I need to add another nested If statement. Can I generate a formula that expands the sum range, depending on the value of cell E4? -- Martin Kleiner |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete rows that don't meet specific criterion | New Users to Excel | |||
Sum Count of Numeric Criterion for LAST 5 Rows | Excel Worksheet Functions | |||
counting rows depending on 2 selective values | Excel Discussion (Misc queries) | |||
summing up contents on ceratin cells depending on selection criter | Excel Worksheet Functions | |||
How do I get the number of rows that meet an autofilter criterion. | Excel Worksheet Functions |