#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 251
Default Another one!

Here's another one I've been mucking around with and can't get. In cell C7 I
want a formula that will look at the date in A7 and then go to A30:A1000 find
those dates and then how many of them have the answer "Yes" in D30:D1000.
This one is a little more complicated. Thank you so much. Connie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Another one!

One way:

=SUMPRODUCT(--(A30:A1000=A7),--(D30:D1000="Yes"))

HTH,
Paul

--

"Connie Martin" wrote in message
...
Here's another one I've been mucking around with and can't get. In cell
C7 I
want a formula that will look at the date in A7 and then go to A30:A1000
find
those dates and then how many of them have the answer "Yes" in D30:D1000.
This one is a little more complicated. Thank you so much. Connie



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 251
Default Another one!

I don't understand parts of that formula but it works, and right now when I'm
pressed for time, that's all that matters, and I thank you very, very much!!

Connie

"PCLIVE" wrote:

One way:

=SUMPRODUCT(--(A30:A1000=A7),--(D30:D1000="Yes"))

HTH,
Paul

--

"Connie Martin" wrote in message
...
Here's another one I've been mucking around with and can't get. In cell
C7 I
want a formula that will look at the date in A7 and then go to A30:A1000
find
those dates and then how many of them have the answer "Yes" in D30:D1000.
This one is a little more complicated. Thank you so much. Connie




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Another one!

There is another way to write the formula:
=SUMPRODUCT((A30:A1000=A7)*(D30:D1000="Yes"))

However, I prefer the first suggested way.

The double minus (--) converts each item matching the criteria to one (1)
and non-matches to zero (0). The SUMPRODUCT function multiplies each of the
corresponding rows together which will result to either a 1 (if both are a
match) or a zero if they don't both match. So you say, what if one matches
and the other doesn't. Well the match equals a 1 and the non-match equals a
0. 1 times 0 = 0. In the end, you get a count of all the rows that match
the criteria that you specified.

Glad it's working.

The SUMPRODUCT function is commonly used when you want to get a count of how
many rows match more than one criteria. However, if you wanted to get the
SUM of all the rows where some certain columns match your specified
criteria, then you could add this to the formula.

=SUMPRODUCT(--(A30:A1000=A7),--(D30:D1000="Yes"),E30:E1000)

Column E being the column that you want to SUM.

Regards,
Paul




--

"Connie Martin" wrote in message
...
I don't understand parts of that formula but it works, and right now when
I'm
pressed for time, that's all that matters, and I thank you very, very
much!!

Connie

"PCLIVE" wrote:

One way:

=SUMPRODUCT(--(A30:A1000=A7),--(D30:D1000="Yes"))

HTH,
Paul

--

"Connie Martin" wrote in message
...
Here's another one I've been mucking around with and can't get. In
cell
C7 I
want a formula that will look at the date in A7 and then go to
A30:A1000
find
those dates and then how many of them have the answer "Yes" in
D30:D1000.
This one is a little more complicated. Thank you so much. Connie






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



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