Nested functions

  • Thread starter Thread starter Derek Gray
  • Start date Start date
D

Derek Gray

This is doing my head in and I know the answer must be obvious. I need
a formula for counting data where certain criteria are met in two
columns. I guess it will be a nested function but every combination
I've tried (e.g.IF, COUNTA, COUNTIF, etc) doesn't give me the result I
expect.
 
Derek,

I think you want something like

=SUMPRODUCT((A1:A100="test1")*(B1:B100="test2"))

assuming the values are strings, just forget the quotes if numeric. The two
ranges must encompass the same rows.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Bob Phillips said:
Derek,

I think you want something like

=SUMPRODUCT((A1:A100="test1")*(B1:B100="test2"))

assuming the values are strings, just forget the quotes if numeric. The two
ranges must encompass the same rows.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)


Bob, you're a marvel. That's done it. I never for a moment considered
the SUMPRODUCT function. Off now to study how it works.

Many thanks

Derek
 
Derek,

Could I suggest that you look at this previous NG posting where Ken Wright
gives a pretty thorough explanation

http://tinyurl.com/v85r

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top