Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to count the number of times the value "F" appears in column G,
if the value "HCSO" appears on the same row in column J. And I need it to calculate across 31 worksheets. I tried this but it returns the total number of times "F" appears. Any Ideas? =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO"))--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This *May* be missing a comma. Untested.
=SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO")),--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) -- HTH, Barb Reinhardt "JimG" wrote: I am trying to count the number of times the value "F" appears in column G, if the value "HCSO" appears on the same row in column J. And I need it to calculate across 31 worksheets. I tried this but it returns the total number of times "F" appears. Any Ideas? =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO"))--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks for the assist, but the formula is still calculating all of the values
of "F" instead of of only when the value of "HCSO" is in the corresponding row. I just cannot figure out why. "Barb Reinhardt" wrote: This *May* be missing a comma. Untested. =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO")),--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) -- HTH, Barb Reinhardt "JimG" wrote: I am trying to count the number of times the value "F" appears in column G, if the value "HCSO" appears on the same row in column J. And I need it to calculate across 31 worksheets. I tried this but it returns the total number of times "F" appears. Any Ideas? =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO"))--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
There is no **easy** way to do this with a *single* formula using the
built-in functions. Your *best* option is to put a formula on each sheet in the same cell then sum that cell on your summary sheet. There is a free add-in that has a function that can do this easily *but* this add-in won't work with the format of your sheet names. A work-around to this is to create a sheet "sandwich" where you put empty sheets on both sides of the sheets you want to include in the calculation. Sort of like this: | start | 7-1 | 7-2 | 7-3 | end | Then you use a formula that calculates every sheet between start:end (inclusive). Here's a link to the add-in: http://xcell05.free.fr/morefunc/english/index.htm And this would be the formula: =SUMPRODUCT(--(THREED(start:end!G1:G10)="F"),--(THREED(start:end!J1:J10)="HCSO")) Note that the total size of the reference (all cells in all sheets) can't be more than 65536 items. So, this means that you can't use entire columns as range references. -- Biff Microsoft Excel MVP "JimG" wrote in message ... Thanks for the assist, but the formula is still calculating all of the values of "F" instead of of only when the value of "HCSO" is in the corresponding row. I just cannot figure out why. "Barb Reinhardt" wrote: This *May* be missing a comma. Untested. =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO")),--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) -- HTH, Barb Reinhardt "JimG" wrote: I am trying to count the number of times the value "F" appears in column G, if the value "HCSO" appears on the same row in column J. And I need it to calculate across 31 worksheets. I tried this but it returns the total number of times "F" appears. Any Ideas? =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO"))--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This is the second time in just one week you have helped me out. Thanks!!
"T. Valko" wrote: There is no **easy** way to do this with a *single* formula using the built-in functions. Your *best* option is to put a formula on each sheet in the same cell then sum that cell on your summary sheet. There is a free add-in that has a function that can do this easily *but* this add-in won't work with the format of your sheet names. A work-around to this is to create a sheet "sandwich" where you put empty sheets on both sides of the sheets you want to include in the calculation. Sort of like this: | start | 7-1 | 7-2 | 7-3 | end | Then you use a formula that calculates every sheet between start:end (inclusive). Here's a link to the add-in: http://xcell05.free.fr/morefunc/english/index.htm And this would be the formula: =SUMPRODUCT(--(THREED(start:end!G1:G10)="F"),--(THREED(start:end!J1:J10)="HCSO")) Note that the total size of the reference (all cells in all sheets) can't be more than 65536 items. So, this means that you can't use entire columns as range references. -- Biff Microsoft Excel MVP "JimG" wrote in message ... Thanks for the assist, but the formula is still calculating all of the values of "F" instead of of only when the value of "HCSO" is in the corresponding row. I just cannot figure out why. "Barb Reinhardt" wrote: This *May* be missing a comma. Untested. =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO")),--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) -- HTH, Barb Reinhardt "JimG" wrote: I am trying to count the number of times the value "F" appears in column G, if the value "HCSO" appears on the same row in column J. And I need it to calculate across 31 worksheets. I tried this but it returns the total number of times "F" appears. Any Ideas? =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO"))--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "JimG" wrote in message ... This is the second time in just one week you have helped me out. Thanks!! "T. Valko" wrote: There is no **easy** way to do this with a *single* formula using the built-in functions. Your *best* option is to put a formula on each sheet in the same cell then sum that cell on your summary sheet. There is a free add-in that has a function that can do this easily *but* this add-in won't work with the format of your sheet names. A work-around to this is to create a sheet "sandwich" where you put empty sheets on both sides of the sheets you want to include in the calculation. Sort of like this: | start | 7-1 | 7-2 | 7-3 | end | Then you use a formula that calculates every sheet between start:end (inclusive). Here's a link to the add-in: http://xcell05.free.fr/morefunc/english/index.htm And this would be the formula: =SUMPRODUCT(--(THREED(start:end!G1:G10)="F"),--(THREED(start:end!J1:J10)="HCSO")) Note that the total size of the reference (all cells in all sheets) can't be more than 65536 items. So, this means that you can't use entire columns as range references. -- Biff Microsoft Excel MVP "JimG" wrote in message ... Thanks for the assist, but the formula is still calculating all of the values of "F" instead of of only when the value of "HCSO" is in the corresponding row. I just cannot figure out why. "Barb Reinhardt" wrote: This *May* be missing a comma. Untested. =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO")),--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) -- HTH, Barb Reinhardt "JimG" wrote: I am trying to count the number of times the value "F" appears in column G, if the value "HCSO" appears on the same row in column J. And I need it to calculate across 31 worksheets. I tried this but it returns the total number of times "F" appears. Any Ideas? =SUMPRODUCT(SUMIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!J:J"),"=HCSO"))--SUMPRODUCT(COUNTIF(INDIRECT("'7-"&ROW(INDIRECT("1:31"))&"'!G:G"),"=F")) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vlookup and sumproduct combine issue | Excel Worksheet Functions | |||
Issue with SUMPRODUCT leaving a 0 value in cell | Excel Worksheet Functions | |||
Sumproduct #N/A! error issue | Excel Worksheet Functions | |||
Issue with sumproduct | Excel Worksheet Functions | |||
SUMPRODUCT issue | Excel Worksheet Functions |