Shorten sumproduct formula

  • Thread starter Thread starter Andre Croteau
  • Start date Start date
A

Andre Croteau

Hello,

Is there a way to use a sumproduct formula looking at non-contiguous cells?

In cell a1, I have this formula:

=SUMPRODUCT((G14<G15)*(H14>G15)*(LEN(G14)>0))+SUMPRODUCT((G16<G15)*(H16>G15)
*(LEN(G16)>0))

I tried the following with no success:

SUMPRODUCT(((G14,G16)<G15)*((H14,H16)>G15)*(LEN((G14,G16))>0), but gives me
a #VALUE

Any suggestions?

Thanks

André
 
André,

Not sure why you need to shorten it, but is this any good (not the way you
were thinking)

=((G14<G15)*(H14>G15)*(LEN(G14)>0))+((G16<G15)*(H16>G15)*(LEN(G16)>0))

--

HTH

RP
(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