use sumif with criteria including sheet name
I am also trying to accomplish a similar task. I got the formula to give a
value by using
SUMIF(Beginsheet!A1:Beginsheet!A5,"Criteria",Endsh eet!A10:Endsheet!A15)
But there is a hitch. The SUMIF equation only works if the amount of rows
in (range, criteria [sum_range]) are equal. So while I was able to get it to
spit out a number, it would not calculate all 5 rows since my criteria is
only a single value (probably seen as one row). So in other words, the
equation outputted only the value in the first row of [sum_range].
-Jay
"SleepyCat" wrote:
First a big THANK YOU to Thomas[PBD] for your answering my question.
It is within only one workbook, not multiple files. I am aware that with
SUMIF we got to have <range, <Criteria,<Sum_Range. I believe the key
question here can be simply represented by:
SUMIF(BeginSheet:EndSheet!A1, "Sept", BeginSheet:EndSheet!B1)
error: #VALUE!
Can anybody explain why we got this error?
Thanks in advance for helping!
"Thomas [PBD]" wrote:
SleepyCat,
Are you attempting to Sum the "Sept" sheets in the same workbook, or across
multiple workbooks?
I noticed two things first off, SUMIF requires <range,
<Criteria,<Sum_Range. You are placing the Criteria in the Range section.
Therefore this is going to error out.
--
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''''Yes'''' below.
"SleepyCat" wrote:
I have a workbook which will be added new worksheets to by others. The
worksheet names are all month names.
I want to do a sumif according to the name of the worksheets, i.e. according
to the month specified by the worksheet name.
I am using the following formula, and it doesn't work:
=SUMIF(MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255),
"=*Sept*", STATISTICS:BLANK!C1)
with an intention to sum up the C1's in all sheets with the sheet's name
including the string "Sept".
Could anybody please help me out with this, thanks a bunch in advance!
Theresa
|