Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andre Croteau
 
Posts: n/a
Default Shorten sumproduct formula

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)*(H14G15)*(LEN(G14)0))+SUMP RODUCT((G16<G15)*(H16G15)
*(LEN(G16)0))

I tried the following with no success:

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

Any suggestions?

Thanks

André


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

André,

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

=((G14<G15)*(H14G15)*(LEN(G14)0))+((G16<G15)*(H1 6G15)*(LEN(G16)0))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Andre Croteau" wrote in message
...
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)*(H14G15)*(LEN(G14)0))+SUMP RODUCT((G16<G15)*(H16G15)
*(LEN(G16)0))

I tried the following with no success:

SUMPRODUCT(((G14,G16)<G15)*((H14,H16)G15)*(LEN((G 14,G16))0), but gives

me
a #VALUE

Any suggestions?

Thanks

André




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want the results of a formula to show in cell, NOT THE FORMULA! ocbecky Excel Discussion (Misc queries) 4 December 10th 04 08:39 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
Paste is is copying in formula, but display is wrong. Matt Excel Discussion (Misc queries) 2 December 7th 04 08:37 PM
What instead of an array formula? Reg Besseling Excel Discussion (Misc queries) 3 December 6th 04 01:55 PM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


All times are GMT +1. The time now is 07:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"