dynamic ranges with sumproduct

D

Dreamstar_1961

trying to use sumproduct fuction with dynamic ranges,
Example "column a" has problem as heading and "column j" has status as the
heading,
I put in a formula of somthing like
=sumproduct((problem="test")*(status="ok")) which should be the same as
putting in
=sumproduct((a1:a200="test")*(j1:j200="ok")) but all I'm getting is a #NUM!
error, is it possiable to use the dynamic range name with sumproduct.
 
R

Roger Govier

Hi

Have you defined the dynamic ranges?
Just typing the column heading does not act as a dynamic range.

Try
Insert>Name>Define>Name> problem >Refers to
=OFFSET($A$2,0,0,COUNTA($A:$A)-1)
Repeat using status as Name and column J instead on column A
 
D

Dreamstar_1961

Well that worked thanks

Roger Govier said:
Hi

Have you defined the dynamic ranges?
Just typing the column heading does not act as a dynamic range.

Try
Insert>Name>Define>Name> problem >Refers to
=OFFSET($A$2,0,0,COUNTA($A:$A)-1)
Repeat using status as Name and column J instead on column A
 

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

Top