Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

=COUNTA() with multiple look-up

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert - 05 Apr 2007 13:58 GMT
Hi All,

I would like to count the number of items that have a value "AAA" in
column A and an amount >0 in column B.

As I am not quite sure how to incorporate two look-ups in a counta
formula I was wondering if anyone can give me the formula?

Many thanks!

Rgds,
Robert
Ron Coderre - 05 Apr 2007 14:08 GMT
Try something like this:

=SUMPRODUCT((A1:A100="AAA")*(B1:B100>0))

or....if there may be some text cells in B1:B100 interspersed with the numbers
=SUMPRODUCT((A1:A100="AAA")*ISNUMBER(B1:B100)*(B1:B100>0))

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP

> Hi All,
>
[quoted text clipped - 8 lines]
> Rgds,
> Robert
Robert - 05 Apr 2007 14:27 GMT
Hi Ron,

Thanks for the suggestion!

When I fill out the formula I get #NUM! as a result.

I adjusted the formula as follows: =SUMPRODUCT((Flash_data!
A:A="PHILIPS FFC")*(Flash_data!D:D>0))

Am I forgetting something?

Thanks again

Rgds,
Robert
Bernard Liengme - 05 Apr 2007 14:39 GMT
SUMPRODUCT does not work with entire column (D:D)
Try something like D1:D6500
best wishes
Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

> Hi Ron,
>
[quoted text clipped - 11 lines]
> Rgds,
> Robert
Ron Coderre - 05 Apr 2007 14:46 GMT
SUMPRODUCT cannot reference entire columns; it must refer to ranges.

Try this:
=SUMPRODUCT((Flash_data!A1:A65535="PHILIPS FFC")*(Flash_data!D1:D65535>0))

NOTE: the formula refers to the next-to-the-last row....NOT the last row
(65536)

Alternatively, you could skip the first row, instead:
=SUMPRODUCT((Flash_data!A2:A65536="PHILIPS FFC")*(Flash_data!D2:D65536>0))

Does that help?
***********
Regards,
Ron

XL2002, WinXP

> Hi Ron,
>
[quoted text clipped - 11 lines]
> Rgds,
> Robert
Robert - 10 Apr 2007 08:12 GMT
Hi Ron and Bernard,

Thanks, that does the trick!

Rgds,
Robert
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.