Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default I want to count relying upon conditions in other cells

I have 3 columns. X has the month in it, Y has type in it, and Z has a
numeric value.

I need to be able to show the count for the number of times a type occurs in
a given month if it has a numeric value other than 0. I have tried using
COUNTIF but it only returns 1 as the answer (which I know is wrong) Please
save my PC from certain destruction!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default I want to count relying upon conditions in other cells

Try the following array formula:

=SUM(IF((X2:X1000="Oct")*(Y2:Y1000="Type A")*(Z2:Z1000<0),1,0))

(you need to enter it as an array formula, that is, pressing
Ctrl+Shift+Enter instead of just Enter)

"Looker1" wrote:

I have 3 columns. X has the month in it, Y has type in it, and Z has a
numeric value.

I need to be able to show the count for the number of times a type occurs in
a given month if it has a numeric value other than 0. I have tried using
COUNTIF but it only returns 1 as the answer (which I know is wrong) Please
save my PC from certain destruction!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default I want to count relying upon conditions in other cells

Many thanks Idoia!

"Idoia" wrote:

Try the following array formula:

=SUM(IF((X2:X1000="Oct")*(Y2:Y1000="Type A")*(Z2:Z1000<0),1,0))

(you need to enter it as an array formula, that is, pressing
Ctrl+Shift+Enter instead of just Enter)

"Looker1" wrote:

I have 3 columns. X has the month in it, Y has type in it, and Z has a
numeric value.

I need to be able to show the count for the number of times a type occurs in
a given month if it has a numeric value other than 0. I have tried using
COUNTIF but it only returns 1 as the answer (which I know is wrong) Please
save my PC from certain destruction!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default I want to count relying upon conditions in other cells

If you do not want to use the array formula:

=SUMPRODUCT((--(X1:X1000="JUN"))*(--(Y1:Y1000="A"))*(--(Z1:Z1000<0)))

edvwvw


Idoia wrote:
Try the following array formula:

=SUM(IF((X2:X1000="Oct")*(Y2:Y1000="Type A")*(Z2:Z1000<0),1,0))

(you need to enter it as an array formula, that is, pressing
Ctrl+Shift+Enter instead of just Enter)

I have 3 columns. X has the month in it, Y has type in it, and Z has a
numeric value.

[quoted text clipped - 3 lines]
COUNTIF but it only returns 1 as the answer (which I know is wrong) Please
save my PC from certain destruction!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200806/1

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default I want to count relying upon conditions in other cells

no need to use * and --, that is built-in redundancy.

--
__________________________________
HTH

Bob

"edvwvw via OfficeKB.com" <u42512@uwe wrote in message
news:85e793d4257d2@uwe...
If you do not want to use the array formula:

=SUMPRODUCT((--(X1:X1000="JUN"))*(--(Y1:Y1000="A"))*(--(Z1:Z1000<0)))

edvwvw


Idoia wrote:
Try the following array formula:

=SUM(IF((X2:X1000="Oct")*(Y2:Y1000="Type A")*(Z2:Z1000<0),1,0))

(you need to enter it as an array formula, that is, pressing
Ctrl+Shift+Enter instead of just Enter)

I have 3 columns. X has the month in it, Y has type in it, and Z has a
numeric value.

[quoted text clipped - 3 lines]
COUNTIF but it only returns 1 as the answer (which I know is wrong)
Please
save my PC from certain destruction!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200806/1





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default I want to count relying upon conditions in other cells

=SUMPRODUCT(--(X2:X20="Oct"),--(Y2:Y20="type"),--(Z2:Z20<0))


--
__________________________________
HTH

Bob

"Looker1" wrote in message
...
I have 3 columns. X has the month in it, Y has type in it, and Z has a
numeric value.

I need to be able to show the count for the number of times a type occurs
in
a given month if it has a numeric value other than 0. I have tried using
COUNTIF but it only returns 1 as the answer (which I know is wrong) Please
save my PC from certain destruction!



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
shade cells based on conditions - i have more than 3 conditions Mo2 Excel Worksheet Functions 3 March 30th 07 07:19 AM
Count Cells if diff cell meets conditions DJS Excel Worksheet Functions 5 January 12th 06 03:47 PM
How Do I have excel count 2 cells with conditions (Excel 2003) Dave New Users to Excel 4 December 19th 05 06:37 PM
Count the number of Cells in one ROW with conditions Amanda Excel Worksheet Functions 2 September 9th 05 04:03 PM
count number of cells based on TWO conditions (2 different columns Troi-Xanh Excel Worksheet Functions 2 February 12th 05 12:46 AM


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