ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count (https://www.excelbanter.com/excel-discussion-misc-queries/95492-count.html)

Clueless

Count
 
Not too good with formulas & need help. Column "D" has either an A or B in
it. Column "I" has a date. What I need the formula to do is if there is a
date in column "I" then give me the total # of A's and total # of B's from
column "D".

I've tried this but it doesn't work: =count(d17:d338,"a")if(i17:i338)

Bob Phillips

Count
 
=SUMPRODUCT(--(I2:I200<""),--(D2:D200="A"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Clueless" wrote in message
...
Not too good with formulas & need help. Column "D" has either an A or B

in
it. Column "I" has a date. What I need the formula to do is if there is

a
date in column "I" then give me the total # of A's and total # of B's from
column "D".

I've tried this but it doesn't work: =count(d17:d338,"a")if(i17:i338)




Clueless

Count
 
Thank you! That worked perfectly.

"Bob Phillips" wrote:

=SUMPRODUCT(--(I2:I200<""),--(D2:D200="A"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Clueless" wrote in message
...
Not too good with formulas & need help. Column "D" has either an A or B

in
it. Column "I" has a date. What I need the formula to do is if there is

a
date in column "I" then give me the total # of A's and total # of B's from
column "D".

I've tried this but it doesn't work: =count(d17:d338,"a")if(i17:i338)






All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com