# Excel 2003 conditional count within a range

I need to count the instances when a number appears in one column when a certain text string appears in a different column, in the same row.

When the range B2:B1063 contains "Crossed Above", I need to count the times the number 3000 appears in D2:D1063.

Tried a multitude of variations, using countif, sum, if, exact, etc, etc. all with no success. My current formula is:
{=IF(B2:B1063="Crossed Above",COUNTIF(D2:D1063,3000),"")}

But it is not limiting the count to the rows where "Crossed Above" is appearing in the B column.

Can someone assist me with this?
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
just found that this is a very similar question to this recent asked question:
http://www.experts-exchange.com/questions/28698017/Excel-2003-conditional-count-within-range.html

>>When the range B2:B1063 contains "Crossed Above", I need to count the times the number 3000 appears in D2:D1063.

And I would suggest to use this formula:

=COUNTIFS(D2:D1063,"=3000",B2:B1063,"=Crossed Above")
0
Excel & VBA ExpertCommented:
And again my answer would be

=SUMPRODUCT((B2:B1063="Crossed Above")*(D2:D1063=3000))
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
Thank you, Ryan. That other question might be from our tech support.

The formula you suggested results in a #NAME error in my Excel 2003 worksheet.

: (
0
Excel & VBA ExpertCommented:
This is because COUNTIFS is not available in Excel 2003. Use SUMPRODUCT.
0
Author Commented:
Thank you, sktneer.

Your formula appears to be working perfectly.

MUCH appreciated!
0
Excel & VBA ExpertCommented:
You're welcome. :)
0
Finance AnalystCommented:
In Excel 2003, use the Conditional Sum Wizard to generate an array formula for the SUM and then just amend the "=SUM(IF(..." part to "=COUNT(IF(..." and re-confirm with Ctrl + Shift + Enter.

Thanks
Rob H
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.