Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default countif vs. if????

Hi,

I am trying to figure out a formula that will calculate the number of cells
that have a number greater than 0 in one cell and then a few columns over has
the word "Low" in it.

Right now, I have COUNTIF(L6:L327,"Low",IF(G6:G327,"0")) and of course I
did something wrong to it because there's an error message.

I'm not sure if explained this welll enough. Please help.....
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default countif vs. if????

Try this,

=SUMPRODUCT((L6:L327="Low")*(G6:G3270))

Mike

"Tflight" wrote:

Hi,

I am trying to figure out a formula that will calculate the number of cells
that have a number greater than 0 in one cell and then a few columns over has
the word "Low" in it.

Right now, I have COUNTIF(L6:L327,"Low",IF(G6:G327,"0")) and of course I
did something wrong to it because there's an error message.

I'm not sure if explained this welll enough. Please help.....

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default countif vs. if????

Any time you need to deal with more than one criteria, always consider
SUMPRODUCT(). In this case:

=SUMPRODUCT((L6:L327="Low")*(G6:G3270))


--
Gary''s Student - gsnu200829


"Tflight" wrote:

Hi,

I am trying to figure out a formula that will calculate the number of cells
that have a number greater than 0 in one cell and then a few columns over has
the word "Low" in it.

Right now, I have COUNTIF(L6:L327,"Low",IF(G6:G327,"0")) and of course I
did something wrong to it because there's an error message.

I'm not sure if explained this welll enough. Please help.....

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default countif vs. if????

That worked perfectly. Thanks. I looked up the sumproduct description, but it
really didn't make any sense. Could you explained why that worked?

"Gary''s Student" wrote:

Any time you need to deal with more than one criteria, always consider
SUMPRODUCT(). In this case:

=SUMPRODUCT((L6:L327="Low")*(G6:G3270))


--
Gary''s Student - gsnu200829


"Tflight" wrote:

Hi,

I am trying to figure out a formula that will calculate the number of cells
that have a number greater than 0 in one cell and then a few columns over has
the word "Low" in it.

Right now, I have COUNTIF(L6:L327,"Low",IF(G6:G327,"0")) and of course I
did something wrong to it because there's an error message.

I'm not sure if explained this welll enough. Please help.....

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default countif vs. if????

http://www.exceluser.com/explore/sumproduct_11.htm
--
Gary''s Student - gsnu200829


"Tflight" wrote:

That worked perfectly. Thanks. I looked up the sumproduct description, but it
really didn't make any sense. Could you explained why that worked?

"Gary''s Student" wrote:

Any time you need to deal with more than one criteria, always consider
SUMPRODUCT(). In this case:

=SUMPRODUCT((L6:L327="Low")*(G6:G3270))


--
Gary''s Student - gsnu200829


"Tflight" wrote:

Hi,

I am trying to figure out a formula that will calculate the number of cells
that have a number greater than 0 in one cell and then a few columns over has
the word "Low" in it.

Right now, I have COUNTIF(L6:L327,"Low",IF(G6:G327,"0")) and of course I
did something wrong to it because there's an error message.

I'm not sure if explained this welll enough. Please help.....



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default countif vs. if????

Thank you!

"Gary''s Student" wrote:

http://www.exceluser.com/explore/sumproduct_11.htm
--
Gary''s Student - gsnu200829


"Tflight" wrote:

That worked perfectly. Thanks. I looked up the sumproduct description, but it
really didn't make any sense. Could you explained why that worked?

"Gary''s Student" wrote:

Any time you need to deal with more than one criteria, always consider
SUMPRODUCT(). In this case:

=SUMPRODUCT((L6:L327="Low")*(G6:G3270))


--
Gary''s Student - gsnu200829


"Tflight" wrote:

Hi,

I am trying to figure out a formula that will calculate the number of cells
that have a number greater than 0 in one cell and then a few columns over has
the word "Low" in it.

Right now, I have COUNTIF(L6:L327,"Low",IF(G6:G327,"0")) and of course I
did something wrong to it because there's an error message.

I'm not sure if explained this welll enough. Please help.....

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default countif vs. if????

Hi,

If you are using Excel 2007 you can also consider

COUNTIFS(L6:L327,"Low",G6:G327,"0")

Excel 2007 also supports SUMIFS, and AVERAGEIFS

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Tflight" wrote:

Thank you!

"Gary''s Student" wrote:

http://www.exceluser.com/explore/sumproduct_11.htm
--
Gary''s Student - gsnu200829


"Tflight" wrote:

That worked perfectly. Thanks. I looked up the sumproduct description, but it
really didn't make any sense. Could you explained why that worked?

"Gary''s Student" wrote:

Any time you need to deal with more than one criteria, always consider
SUMPRODUCT(). In this case:

=SUMPRODUCT((L6:L327="Low")*(G6:G3270))


--
Gary''s Student - gsnu200829


"Tflight" wrote:

Hi,

I am trying to figure out a formula that will calculate the number of cells
that have a number greater than 0 in one cell and then a few columns over has
the word "Low" in it.

Right now, I have COUNTIF(L6:L327,"Low",IF(G6:G327,"0")) and of course I
did something wrong to it because there's an error message.

I'm not sure if explained this welll enough. Please help.....

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
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF Natalie Excel Worksheet Functions 1 May 23rd 05 12:16 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 01:07 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"