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?
David TaffetAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
just found that this is a very similar question to this recent asked question:

>>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")
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
And again my answer would be

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

Experts Exchange Solution brought to you by

Your issues matter to us.

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

Start your 7-day free trial
David TaffetAuthor 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.

: (
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
This is because COUNTIFS is not available in Excel 2003. Use SUMPRODUCT.
David TaffetAuthor Commented:
Thank you, sktneer.

Your formula appears to be working perfectly.

MUCH appreciated!
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. :)
Rob HensonFinance 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.

Rob H
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.