IF Statement

  • Thread starter s2m via OfficeKB.com
  • Start date
S

s2m via OfficeKB.com

Basically all I want to do is count the number of dates that ="Y" in columns
AH, for the month of August 06. The date field is in column AI.


=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B7),--(Odyssey!$AH$2:$AH$999="Y"),--
(Odyssey!$AI$2:$AI$999>=8/1/6),--(Odyssey!$AI$2:$AI$999<=8/31/6))

Thanks

Sharon
 
D

Don Guillett

try this if your dates ARE dates
=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B7),--(Odyssey!$AH$2:$AH$999="Y"),--
(month(Odyssey!$AI$2:$AI$999)=8))
 
S

s2m via OfficeKB.com

That Works GREAT!

Can I keep building on a SUMPRODUCT? Adding more conditions? Like AZ= N,
AM= Y and so on?

Don said:
try this if your dates ARE dates
=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B7),--(Odyssey!$AH$2:$AH$999="Y"),--
(month(Odyssey!$AI$2:$AI$999)=8))
Basically all I want to do is count the number of dates that ="Y" in
columns
[quoted text clipped - 6 lines]
 
T

Toppers

YES!

s2m via OfficeKB.com said:
That Works GREAT!

Can I keep building on a SUMPRODUCT? Adding more conditions? Like AZ= N,
AM= Y and so on?

Don said:
try this if your dates ARE dates
=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B7),--(Odyssey!$AH$2:$AH$999="Y"),--
(month(Odyssey!$AI$2:$AI$999)=8))
Basically all I want to do is count the number of dates that ="Y" in
columns
[quoted text clipped - 6 lines]
 
D

Don Guillett

sure

--
Don Guillett
SalesAid Software
(e-mail address removed)
s2m via OfficeKB.com said:
That Works GREAT!

Can I keep building on a SUMPRODUCT? Adding more conditions? Like AZ= N,
AM= Y and so on?

Don said:
try this if your dates ARE dates
=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B7),--(Odyssey!$AH$2:$AH$999="Y"),--
(month(Odyssey!$AI$2:$AI$999)=8))
Basically all I want to do is count the number of dates that ="Y" in
columns
[quoted text clipped - 6 lines]
 
S

s2m via OfficeKB.com

=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B22),--(Odyssey!$AH$2:$AH$999="U"),--
(Odyssey!$AH$2:$AH$999="N"))

How do you handle this? In column AH: Y, N and U and blanks. I want to count
all the U's and N's.



Don said:
sure
That Works GREAT!
[quoted text clipped - 10 lines]
 
D

Don Guillett

try

=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B22),--(Odyssey!$AH$2:$AH$999={"U","N"}))

--
Don Guillett
SalesAid Software
(e-mail address removed)
s2m via OfficeKB.com said:
=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B22),--(Odyssey!$AH$2:$AH$999="U"),--
(Odyssey!$AH$2:$AH$999="N"))

How do you handle this? In column AH: Y, N and U and blanks. I want to
count
all the U's and N's.



Don said:
sure
That Works GREAT!
[quoted text clipped - 10 lines]
 
S

s2m via OfficeKB.com

I get a #VALUE! error message

Don said:
try

=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B22),--(Odyssey!$AH$2:$AH$999={"U","N"}))
=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B22),--(Odyssey!$AH$2:$AH$999="U"),--
(Odyssey!$AH$2:$AH$999="N"))
[quoted text clipped - 10 lines]
 
R

RagDyer

What type of data is in B22?

On a lark, try this:

=SUMPRODUCT((Odyssey!$E$2:$E$999=B22)*(Odyssey!$AH$2:$AH$999={"U","N"}))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
s2m via OfficeKB.com said:
I get a #VALUE! error message

Don said:
try

=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B22),--(Odyssey!$AH$2:$AH$999={"U","N"}))
=SUMPRODUCT(--(Odyssey!$E$2:$E$999=B22),--(Odyssey!$AH$2:$AH$999="U"),--
(Odyssey!$AH$2:$AH$999="N"))
[quoted text clipped - 10 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top