#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 109
Default Formula question

State Insp Date
FL 1/01/09
SC 1/10/09
NC 1/5/09
FL 2/14/09
VA
FL
GA 1/12/09

Hi, I need help on a formula that will count number of non-blank cells in a
Insp Date column if the State = FL. The result here should be 2.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula question

Try this:

=SUMPRODUCT(--(A2:A8="FL"),--(B2:B8<""))

--
Biff
Microsoft Excel MVP


"Brent" wrote in message
...
State Insp Date
FL 1/01/09
SC 1/10/09
NC 1/5/09
FL 2/14/09
VA
FL
GA 1/12/09

Hi, I need help on a formula that will count number of non-blank cells in
a
Insp Date column if the State = FL. The result here should be 2.

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 109
Default Formula question

The formula returns the following error #NUM! Any suggestions?

=SUMPRODUCT(--('2009 Inspections'!B:B="FL"),--('2009 Inspections'!E:E<""))


"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A2:A8="FL"),--(B2:B8<""))

--
Biff
Microsoft Excel MVP


"Brent" wrote in message
...
State Insp Date
FL 1/01/09
SC 1/10/09
NC 1/5/09
FL 2/14/09
VA
FL
GA 1/12/09

Hi, I need help on a formula that will count number of non-blank cells in
a
Insp Date column if the State = FL. The result here should be 2.

Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula question

You can't use full-column references with SUMPRODUCT if you are using
Excel 2003 or earlier. Change it to something like:

=SUMPRODUCT(--('2009 Inspections'!B2:B5000="FL"),--('2009 Inspections'!
E2:E5000<""))

or however many rows of data that you have.

Hope this helps.

Pete

On Feb 19, 1:07*pm, Brent wrote:
The formula returns the following error #NUM! Any suggestions?

=SUMPRODUCT(--('2009 Inspections'!B:B="FL"),--('2009 Inspections'!E:E<""))



"T. Valko" wrote:
Try this:


=SUMPRODUCT(--(A2:A8="FL"),--(B2:B8<""))


--
Biff
Microsoft Excel MVP


"Brent" wrote in message
...
State * *Insp Date
FL * * * * *1/01/09
SC * * * * *1/10/09
NC * * * * *1/5/09
FL * * * * *2/14/09
VA
FL
GA * * * * 1/12/09


Hi, I need help on a formula that will count number of non-blank cells in
a
Insp Date column if the State = FL. The result here should be 2.


Thanks!- Hide quoted text -


- Show quoted text -


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
Formula question iarnold Excel Worksheet Functions 6 October 3rd 08 10:46 PM
Formula Question Phxlatinoboi® Excel Discussion (Misc queries) 3 June 1st 07 01:14 AM
Formula question Lars Excel Discussion (Misc queries) 1 March 21st 07 06:51 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
formula question B.B Excel Discussion (Misc queries) 2 August 29th 05 02:51 AM


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