Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LPS LPS is offline
external usenet poster
 
Posts: 108
Default Nested IF and Countif ?

Using Excel 2000:
I have one spreadsheet (titled evalsecondlang) that contains training
stats. On another spreadsheet in the same workbook, I need to use the data on
evalsecondlang to calculate the number of courses taught by a particular
instructor, on a particular day, in either the morning or afternoon. In
Evalsecondlang, Column D contains the instructors names. Column E contains
the day of the week. Column F contains either Morning or Afternoon. Column H
contains a list of numbers (e.g.; 1, 2, 3 and so on), e.g.;

D E F G H
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 2
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 1
Catherine Rousseau Monday Afternoon 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Isabelle Poulin Thursday Morning 2
Isabelle Poulin Thursday Afternoon 1
Isabelle Poulin Thursday Afternoon 1

I want to create a nested IF statement which looks at column D and if the
instructors name is there, then it looks at Column E and looks for Monday,
and if that is there then it looks in Column F for Morning and if that is
there, then counts the number of 1s in column H. I tried the following
and it doesnt work; it returns a blank:

=IF(evalsecondlang!D:D<"Catherine
Rousseau","",IF(evalsecondlang!E:E<"Monday","",IF (evalsecondlang!F:F="Morning",COUNTIF(evalsecondla ng!$H:$H,1)," ")))

This would indicate that the values I am looking for are not there, in the
sequence I want. But when I manually check the sheet, all the criteria is
there.

Can anyone please help me figure out what I am doing wrong?

Any and all help is greatly appreciated.

--
LPS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Nested IF and Countif ?

Try it this way:

=SUMPRODUCT((evalsecondlang!D1:D65522="Catherine
Rousseau")*(evalsecondlang!F1:F65522="Morn-ing")*(evalsecondlang!
H1:H65522=1))

You can't use a complete column with SUMPRODUCT, so I've made it cover
rows 1 to 65522 (almost a complete column, and easy to remember).

Hope this helps.

Pete


On Dec 5, 7:19 pm, LPS wrote:
Using Excel 2000:
I have one spreadsheet (titled "evalsecondlang") that contains training
stats. On another spreadsheet in the same workbook, I need to use the data on
evalsecondlang to calculate the number of courses taught by a particular
instructor, on a particular day, in either the morning or afternoon. In
Evalsecondlang, Column D contains the instructors' names. Column E contains
the day of the week. Column F contains either Morning or Afternoon. Column H
contains a list of numbers (e.g.; 1, 2, 3 and so on), e.g.;

D E F G H
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 2
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 1
Catherine Rousseau Monday Afternoon 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Isabelle Poulin Thursday Morning 2
Isabelle Poulin Thursday Afternoon 1
Isabelle Poulin Thursday Afternoon 1

I want to create a nested IF statement which looks at column D and if the
instructor's name is there, then it looks at Column E and looks for "Monday",
and if that is there then it looks in Column F for "Morning" and if that is
there, then counts the number of "1's" in column H. I tried the following
and it doesn't work; it returns a blank:

=IF(evalsecondlang!D:D<"Catherine
Rousseau","",IF(evalsecondlang!E:E<"Monday","",IF (evalsecondlang!F:F="Morn-ing",COUNTIF(evalsecondlang!$H:$H,1)," ")))

This would indicate that the values I am looking for are not there, in the
sequence I want. But when I manually check the sheet, all the criteria is
there.

Can anyone please help me figure out what I am doing wrong?

Any and all help is greatly appreciated.

--
LPS


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LPS LPS is offline
external usenet poster
 
Posts: 108
Default REVISED Nested IF and Countif ?

Please look here for corrected column references:

Using Excel 2000:
I have one spreadsheet (titled evalsecondlang) that contains training
stats. On another spreadsheet in the same workbook, I need to use the data on
evalsecondlang to calculate the number of courses taught by a particular
instructor, on a particular day, in either the morning or afternoon. In
Evalsecondlang, Column D contains the instructors names. Column E contains
the day of the week. Column F contains either Morning or Afternoon. Column H
contains a list of numbers (e.g.; 1, 2, 3 and so on), e.g.;

D E F G H
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 2
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 1
Catherine Rousseau Monday Afternoon 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Isabelle Poulin Thursday Morning 2
Isabelle Poulin Thursday Afternoon 1
Isabelle Poulin Thursday Afternoon 1

I want to create a nested IF statement which looks at column D and if the
instructors name is there, then it looks at Column E and looks for Monday,
and if that is there then it looks in Column F for Morning and if that is
there, then counts the number of 1s in column H. I tried the following
and it doesnt work; it returns a blank:

=IF(evalsecondlang!D:D<"Catherine
Rousseau","",IF(evalsecondlang!E:E<"Monday","",IF (evalsecondlang!F:F="Morning",COUNTIF(evalsecondla ng!$H:$H,1)," ")))

This would indicate that the values I am looking for are not there, in the
sequence I want. But when I manually check the sheet, all the criteria is
there.

Can anyone please help me figure out what I am doing wrong?

Any and all help is greatly appreciated.

--
LPS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Nested IF and Countif ?

Sorry, I missed the day part:

=SUMPRODUCT((evalsecondlang!D1:D65522="Catherine
Rousseau")*(evalsecondlang!E1:E65522="Monday")*(ev alsecondlang!
F1:F65522="Morning")*(evalsecondlang!H1:H65522=1))

Watch out for unwanted line-breaks.

Hope this helps.

Pete

On Dec 5, 7:29 pm, Pete_UK wrote:
Try it this way:

=SUMPRODUCT((evalsecondlang!D1:D65522="Catherine
Rousseau")*(evalsecondlang!F1:F65522="Morn-ing")*(evalsecondlang!
H1:H65522=1))

You can't use a complete column with SUMPRODUCT, so I've made it cover
rows 1 to 65522 (almost a complete column, and easy to remember).

Hope this helps.

Pete

On Dec 5, 7:19 pm, LPS wrote:



Using Excel 2000:
I have one spreadsheet (titled "evalsecondlang") that contains training
stats. On another spreadsheet in the same workbook, I need to use the data on
evalsecondlang to calculate the number of courses taught by a particular
instructor, on a particular day, in either the morning or afternoon. In
Evalsecondlang, Column D contains the instructors' names. Column E contains
the day of the week. Column F contains either Morning or Afternoon. Column H
contains a list of numbers (e.g.; 1, 2, 3 and so on), e.g.;


D E F G H
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 2
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 1
Catherine Rousseau Monday Afternoon 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Isabelle Poulin Thursday Morning 2
Isabelle Poulin Thursday Afternoon 1
Isabelle Poulin Thursday Afternoon 1


I want to create a nested IF statement which looks at column D and if the
instructor's name is there, then it looks at Column E and looks for "Monday",
and if that is there then it looks in Column F for "Morning" and if that is
there, then counts the number of "1's" in column H. I tried the following
and it doesn't work; it returns a blank:


=IF(evalsecondlang!D:D<"Catherine
Rousseau","",IF(evalsecondlang!E:E<"Monday","",IF (evalsecondlang!F:F="Morn--ing",COUNTIF(evalsecondlang!$H:$H,1)," ")))


This would indicate that the values I am looking for are not there, in the
sequence I want. But when I manually check the sheet, all the criteria is
there.


Can anyone please help me figure out what I am doing wrong?


Any and all help is greatly appreciated.


--
LPS- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default REVISED Nested IF and Countif ?

Look where?

Pete

On Dec 5, 7:30 pm, LPS wrote:
Please look here for corrected column references:



Using Excel 2000:
I have one spreadsheet (titled "evalsecondlang") that contains training
stats. On another spreadsheet in the same workbook, I need to use the data on
evalsecondlang to calculate the number of courses taught by a particular
instructor, on a particular day, in either the morning or afternoon. In
Evalsecondlang, Column D contains the instructors' names. Column E contains
the day of the week. Column F contains either Morning or Afternoon. Column H
contains a list of numbers (e.g.; 1, 2, 3 and so on), e.g.;


D E F G H
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 2
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 1
Catherine Rousseau Monday Afternoon 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Isabelle Poulin Thursday Morning 2
Isabelle Poulin Thursday Afternoon 1
Isabelle Poulin Thursday Afternoon 1


I want to create a nested IF statement which looks at column D and if the
instructor's name is there, then it looks at Column E and looks for "Monday",
and if that is there then it looks in Column F for "Morning" and if that is
there, then counts the number of "1's" in column H. I tried the following
and it doesn't work; it returns a blank:


=IF(evalsecondlang!D:D<"Catherine
Rousseau","",IF(evalsecondlang!E:E<"Monday","",IF (evalsecondlang!F:F="Morn-ing",COUNTIF(evalsecondlang!$H:$H,1)," ")))


This would indicate that the values I am looking for are not there, in the
sequence I want. But when I manually check the sheet, all the criteria is
there.


Can anyone please help me figure out what I am doing wrong?


Any and all help is greatly appreciated.


--
LPS- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LPS LPS is offline
external usenet poster
 
Posts: 108
Default Nested IF and Countif ?

Thanks Pete... I'll give it a try.
--
LPS


"Pete_UK" wrote:

Try it this way:

=SUMPRODUCT((evalsecondlang!D1:D65522="Catherine
Rousseau")*(evalsecondlang!F1:F65522="Morn-ing")*(evalsecondlang!
H1:H65522=1))

You can't use a complete column with SUMPRODUCT, so I've made it cover
rows 1 to 65522 (almost a complete column, and easy to remember).

Hope this helps.

Pete


On Dec 5, 7:19 pm, LPS wrote:
Using Excel 2000:
I have one spreadsheet (titled "evalsecondlang") that contains training
stats. On another spreadsheet in the same workbook, I need to use the data on
evalsecondlang to calculate the number of courses taught by a particular
instructor, on a particular day, in either the morning or afternoon. In
Evalsecondlang, Column D contains the instructors' names. Column E contains
the day of the week. Column F contains either Morning or Afternoon. Column H
contains a list of numbers (e.g.; 1, 2, 3 and so on), e.g.;

D E F G H
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 2
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 1
Catherine Rousseau Monday Afternoon 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Isabelle Poulin Thursday Morning 2
Isabelle Poulin Thursday Afternoon 1
Isabelle Poulin Thursday Afternoon 1

I want to create a nested IF statement which looks at column D and if the
instructor's name is there, then it looks at Column E and looks for "Monday",
and if that is there then it looks in Column F for "Morning" and if that is
there, then counts the number of "1's" in column H. I tried the following
and it doesn't work; it returns a blank:

=IF(evalsecondlang!D:D<"Catherine
Rousseau","",IF(evalsecondlang!E:E<"Monday","",IF (evalsecondlang!F:F="Morn-ing",COUNTIF(evalsecondlang!$H:$H,1)," ")))

This would indicate that the values I am looking for are not there, in the
sequence I want. But when I manually check the sheet, all the criteria is
there.

Can anyone please help me figure out what I am doing wrong?

Any and all help is greatly appreciated.

--
LPS



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Nested IF and Countif ?

You're welcome.

It would be better if you were to put the criteria in cells, and to
use the cell references in the formula, so that you can easily change
the criteria without having to change the formula.

Hope this helps.

Pete

On Dec 5, 7:38 pm, LPS wrote:
Thanks Pete... I'll give it a try.
--
LPS



"Pete_UK" wrote:
Try it this way:


=SUMPRODUCT((evalsecondlang!D1:D65522="Catherine
Rousseau")*(evalsecondlang!F1:F65522="Morn-ing")*(evalsecondlang!
H1:H65522=1))


You can't use a complete column with SUMPRODUCT, so I've made it cover
rows 1 to 65522 (almost a complete column, and easy to remember).


Hope this helps.


Pete


On Dec 5, 7:19 pm, LPS wrote:
Using Excel 2000:
I have one spreadsheet (titled "evalsecondlang") that contains training
stats. On another spreadsheet in the same workbook, I need to use the data on
evalsecondlang to calculate the number of courses taught by a particular
instructor, on a particular day, in either the morning or afternoon. In
Evalsecondlang, Column D contains the instructors' names. Column E contains
the day of the week. Column F contains either Morning or Afternoon. Column H
contains a list of numbers (e.g.; 1, 2, 3 and so on), e.g.;


D E F G H
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 2
Catherine Rousseau Monday Afternoon 3
Catherine Rousseau Monday Morning 1
Catherine Rousseau Monday Afternoon 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Georges Farid Thursday Morning 4
Georges Farid Thursday Morning 3
Isabelle Poulin Thursday Morning 2
Isabelle Poulin Thursday Afternoon 1
Isabelle Poulin Thursday Afternoon 1


I want to create a nested IF statement which looks at column D and if the
instructor's name is there, then it looks at Column E and looks for "Monday",
and if that is there then it looks in Column F for "Morning" and if that is
there, then counts the number of "1's" in column H. I tried the following
and it doesn't work; it returns a blank:


=IF(evalsecondlang!D:D<"Catherine
Rousseau","",IF(evalsecondlang!E:E<"Monday","",IF (evalsecondlang!F:F="Morn--ing",COUNTIF(evalsecondlang!$H:$H,1)," ")))


This would indicate that the values I am looking for are not there, in the
sequence I want. But when I manually check the sheet, all the criteria is
there.


Can anyone please help me figure out what I am doing wrong?


Any and all help is greatly appreciated.


--
LPS- Hide quoted text -


- Show quoted text -


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
nested countif FLChick Excel Worksheet Functions 5 September 4th 07 05:18 PM
sumif and countif nested? [email protected] Excel Worksheet Functions 3 January 5th 07 04:19 PM
Using nested IFs with CountIf Excel novice Excel Worksheet Functions 7 May 12th 06 11:32 AM
Nested Countif wayne75 Excel Worksheet Functions 2 June 3rd 05 04:30 PM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM


All times are GMT +1. The time now is 11:37 PM.

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

About Us

"It's about Microsoft Excel"