Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi, I wonder if anyone can help with this problem.
I am trying to write a sumif function so that the sum_range argument is a named range which is referenced using the 'Indirect' function. However doing this gives the wrong answer. Let's say that the range of cells that I want to refer to in the 'sum_range' argument is Sheet2!B3:B10 and I have named this range "SumCells" In Sheet 1 I write the formula =Sumif('Sheet2!A3:A10,"examplecriterion",SumCells) This formula works perfectly well and returns the correct result. However, if I then enter the text 'SumCells' in sheet 1 (let's say I put it in cell D7), I ought to be able to use the following formula to achieve the same result =Sumif('Sheet2!A3:A10,"examplecriterion",Indirect( $D$7)) However the formula now returns the wrong result. Grateful to anyone who can shed light on why this might be. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cosine Function Returns Wrong Answer! | Excel Discussion (Misc queries) | |||
Row() function returns wrong row and more.. | Excel Worksheet Functions | |||
My Datedif function only returns 0's in the cell what's wrong? | Excel Worksheet Functions | |||
INDIRECT Function - what am I doing wrong? | Excel Discussion (Misc queries) | |||
Logic statement returns wrong answer. | Excel Worksheet Functions |