Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default SUMPRODUCT COUNTIF (Again)

Hi i am having a SUMPRODUCT COUNTIF problem. Previously the formula was
missing a single quotation mark between the double quotation marks. Once
this was implemented i have had no problems However, i have been asked to
make a similar sheet. The sheets have different names so i have modified the
range but i cannot get the formula to work. It is:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&Universities&"'!C 4"),"Pass"))

It keeps coming up with the #REF! error.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default SUMPRODUCT COUNTIF (Again)

What are the names of the sheets (or some of them)?
What is in C4?
What is the intent of the formula?--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"adrian007uk" wrote in message
...
Hi i am having a SUMPRODUCT COUNTIF problem. Previously the formula was
missing a single quotation mark between the double quotation marks. Once
this was implemented i have had no problems However, i have been asked to
make a similar sheet. The sheets have different names so i have modified
the
range but i cannot get the formula to work. It is:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&Universities&"'!C 4"),"Pass"))

It keeps coming up with the #REF! error.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default SUMPRODUCT COUNTIF (Again)

The names of the sheets include Durham, Newcastle, Northumbria etc.

I have a master sheet that is identical to the University sheets. Therefore
C4 is the same question/statement in all sheets. The same goes for C5, C6
etc.

The basis of the formula is to count three options that could appear in a
cell (in this case pass, fail, not determined). As you can see i am
concentrating on the "Pass" cells at the moment.

The whole spreadsheet is based on a spreadsheet i made previously. A friend
asked if he could use it for this university spreadsheet but he could not get
it to work. I said i would have a look at it for him. I thought it would be
an easy job of just changing the range and the sheet names. This was causing
the error.

However, i have changed the range and named the sheets to match. I called
the range 'Schools' this time and used different cells to house the range. I
also found that there was an additional space between two words in a sheet
name (e.g., Durham University as opposed to Durham Universirty). This has
now seemed to have fixed the formula! But i do not know why? For example,
once a range has been named and used in a spreadsheet calculation (as this
sheet is an eaxct copy to mine only with different names), altering this
range is impossible, therefore you have to create a new one? Or something
else?

Adrian

"Bernard Liengme" wrote:

What are the names of the sheets (or some of them)?
What is in C4?
What is the intent of the formula?--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"adrian007uk" wrote in message
...
Hi i am having a SUMPRODUCT COUNTIF problem. Previously the formula was
missing a single quotation mark between the double quotation marks. Once
this was implemented i have had no problems However, i have been asked to
make a similar sheet. The sheets have different names so i have modified
the
range but i cannot get the formula to work. It is:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&Universities&"'!C 4"),"Pass"))

It keeps coming up with the #REF! error.


.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default SUMPRODUCT COUNTIF (Again)

My workbooks has these sheets: Sheet1, Durham, Newcastle, York, and
Northumbria
I have opened the Name manager and added
Name: Universities
Refers to: ={"Durham","Newcastle","York","Northumbria"}
Note that I type the braces around the list of names

Now this formula
=SUMPRODUCT(COUNTIF(INDIRECT(Universities & "!C4"),"Pass"))
looks at at cells C4 in all the sheets listed above and counts how many have
the text "Pass"


best wishes

--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"adrian007uk" wrote in message
...
The names of the sheets include Durham, Newcastle, Northumbria etc.

I have a master sheet that is identical to the University sheets.
Therefore
C4 is the same question/statement in all sheets. The same goes for C5, C6
etc.

The basis of the formula is to count three options that could appear in a
cell (in this case pass, fail, not determined). As you can see i am
concentrating on the "Pass" cells at the moment.

The whole spreadsheet is based on a spreadsheet i made previously. A
friend
asked if he could use it for this university spreadsheet but he could not
get
it to work. I said i would have a look at it for him. I thought it would
be
an easy job of just changing the range and the sheet names. This was
causing
the error.

However, i have changed the range and named the sheets to match. I called
the range 'Schools' this time and used different cells to house the range.
I
also found that there was an additional space between two words in a sheet
name (e.g., Durham University as opposed to Durham Universirty). This
has
now seemed to have fixed the formula! But i do not know why? For
example,
once a range has been named and used in a spreadsheet calculation (as this
sheet is an eaxct copy to mine only with different names), altering this
range is impossible, therefore you have to create a new one? Or something
else?

Adrian

"Bernard Liengme" wrote:

What are the names of the sheets (or some of them)?
What is in C4?
What is the intent of the formula?--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"adrian007uk" wrote in message
...
Hi i am having a SUMPRODUCT COUNTIF problem. Previously the formula
was
missing a single quotation mark between the double quotation marks.
Once
this was implemented i have had no problems However, i have been asked
to
make a similar sheet. The sheets have different names so i have
modified
the
range but i cannot get the formula to work. It is:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&Universities&"'!C 4"),"Pass"))

It keeps coming up with the #REF! error.


.

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
SumProduct and Countif Nycole Excel Worksheet Functions 5 February 19th 08 07:52 PM
Sumproduct and Countif [email protected] Excel Discussion (Misc queries) 0 April 2nd 07 02:51 PM
Sumproduct and Countif [email protected] Excel Discussion (Misc queries) 0 April 2nd 07 02:51 PM
SUMPRODUCT/COUNTIF luvthavodka Excel Discussion (Misc queries) 12 June 17th 06 02:58 AM
SumProduct or CountIf Kim Excel Worksheet Functions 7 July 9th 05 12:04 AM


All times are GMT +1. The time now is 02:38 AM.

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"