Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default SumProduct CountIF issue

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default SumProduct CountIF issue

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default SumProduct CountIF issue

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SumProduct CountIF issue

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default SumProduct CountIF issue

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SumProduct CountIF issue

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup and sumproduct combine issue [email protected] Excel Worksheet Functions 0 October 24th 07 07:26 PM
Issue with SUMPRODUCT leaving a 0 value in cell Brian Excel Worksheet Functions 5 December 16th 06 09:21 AM
Sumproduct #N/A! error issue A. Gallardo Excel Worksheet Functions 2 October 26th 05 04:00 PM
Issue with sumproduct Steved Excel Worksheet Functions 8 July 18th 05 11:19 PM
SUMPRODUCT issue TonyL Excel Worksheet Functions 2 May 27th 05 12:46 AM


All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"