Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dan
 
Posts: n/a
Default SUM array formula question

How can I rewrite the following (this does currently work):

=42-(1*SUM((Servers!B2:B2000="DL360")*(Servers!C2:C200 0="LCCCR30")))

so that the value DL360 will also be representative of the fact that
Servers!B2:B2000 also contains similar values DL360G1, DL360G2, and DL360G3,
without creating a monstrous formula that would end up looking like this:

=42-SUM(1*SUM((Servers!B2:B2000="DL360")*(Servers!C2:C 2000="LCCCR30")),2*SUM
((Servers!B2:B2000="DL380")*(Servers!C2:C2000="LCC CR30")),4*SUM((Servers!B2:
B2000="DL580")*(Servers!C2:C2000="LCCCR30")),2*SUM ((Servers!B2:B2000="ML370"
)*(Servers!C2:C2000="LCCCR30")))

This would not be so bad, except for the fact that I also have several other
models that are in the Servers!B2:B2000 column, and therefore this would get
so big that it would be too big for Excel to execute.

Please help, thanks!!


  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default


=42-SUMPRODUCT((LEFT(Servers!B2:B2000,5)="DL360")+2*(S ervers!B2:B2000="DL380")+4*(Servers!B2:B2000="DL58 0")+2*(Servers!B2:B2000="ML370"),--(Servers!C2:C2000="LCCCR30"))

Dan Wrote:
How can I rewrite the following (this does currently work):

=42-(1*SUM((Servers!B2:B2000="DL360")*(Servers!C2:C200 0="LCCCR30")))

so that the value DL360 will also be representative of the fact that
Servers!B2:B2000 also contains similar values DL360G1, DL360G2, and
DL360G3,
without creating a monstrous formula that would end up looking like
this:

=42-SUM(1*SUM((Servers!B2:B2000="DL360")*(Servers!C2:C 2000="LCCCR30")),2*SUM
((Servers!B2:B2000="DL380")*(Servers!C2:C2000="LCC CR30")),4*SUM((Servers!B2:
B2000="DL580")*(Servers!C2:C2000="LCCCR30")),2*SUM ((Servers!B2:B2000="ML370"
)*(Servers!C2:C2000="LCCCR30")))

This would not be so bad, except for the fact that I also have several
other
models that are in the Servers!B2:B2000 column, and therefore this
would get
so big that it would be too big for Excel to execute.

Please help, thanks!!



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=275986

  #3   Report Post  
Dan
 
Posts: n/a
Default

Thanks for your help. This is showing me some great information. However,
the solution you provided did not quite produce an accurate result. Your
solution seemed to resolve for the DL360 models, using the LEFT and 5
arguments, but not for the other models. I do see,though, that I copied and
pasted the wrong formula information in my original posting, so you may have
slightly misinterpreted my goal. Nevertheless, using the information you
sent, I was able to produce 4 separate formulas that I have confirmed work.
They are as follows:

=42-SUMPRODUCT(1*(LEFT(Servers!B2:B2000,5)="DL360"),--(Servers!C2:C2000="LCC
CR30"))
=42-SUMPRODUCT(2*(LEFT(Servers!B2:B2000,5)="DL380"),--(Servers!C2:C2000="LCC
CR30"))
=42-SUMPRODUCT(4*(LEFT(Servers!B2:B2000,5)="DL580"),--(Servers!C2:C2000="LCC
CR30"))
=42-SUMPRODUCT(2*(LEFT(Servers!B2:B2000,5)="ML370"),--(Servers!C2:C2000="LCC
CR30"))

Now, how would this be structured as one concise formula? I think I realize
that in the first item above, the (1* piece does not need to be there for
functionality, it is just there for clarity sake so I don't confuse myself
when looking at this and trying to understand it.

Thanks again!


"Aladin Akyurek" wrote in
message ...


=42-SUMPRODUCT((LEFT(Servers!B2:B2000,5)="DL360")+2*(S ervers!B2:B2000="DL380
")+4*(Servers!B2:B2000="DL580")+2*(Servers!B2:B200 0="ML370"),--(Servers!C2:C
2000="LCCCR30"))

Dan Wrote:
How can I rewrite the following (this does currently work):

=42-(1*SUM((Servers!B2:B2000="DL360")*(Servers!C2:C200 0="LCCCR30")))

so that the value DL360 will also be representative of the fact that
Servers!B2:B2000 also contains similar values DL360G1, DL360G2, and
DL360G3,
without creating a monstrous formula that would end up looking like
this:


=42-SUM(1*SUM((Servers!B2:B2000="DL360")*(Servers!C2:C 2000="LCCCR30")),2*SUM

((Servers!B2:B2000="DL380")*(Servers!C2:C2000="LCC CR30")),4*SUM((Servers!B2:

B2000="DL580")*(Servers!C2:C2000="LCCCR30")),2*SUM ((Servers!B2:B2000="ML370"
)*(Servers!C2:C2000="LCCCR30")))

This would not be so bad, except for the fact that I also have several
other
models that are in the Servers!B2:B2000 column, and therefore this
would get
so big that it would be too big for Excel to execute.

Please help, thanks!!



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile:

http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=275986



  #4   Report Post  
Daniel.M
 
Posts: n/a
Default

Hi,

Now, how would this be structured as one concise formula? I think I realize


=42-SUMPRODUCT({1,2,4,2}*(LEFT(Servers!B2:B2000,5)={"D L360","DL380","DL580","ML3
70"})
*(Servers!C2:C2000="LCCCR30"))

Regards,


  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default


Dan Wrote:
... However,
the solution you provided did not quite produce an accurate result.
Your
solution seemed to resolve for the DL360 models, using the LEFT and 5
arguments, but not for the other models. ...


Really? The only thing you did different is applying LEFT() to all
models and taking out plusses.

Now, how would this be structured as one concise formula?


Just return to what I suggested with LEFT() added everywhere or take a
look at the suggestion Daniel M. makes.


--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=275986



  #6   Report Post  
Dan
 
Posts: n/a
Default

Thanks! That helps me out tremendously.

"Daniel.M" wrote in message
...
Hi,

Now, how would this be structured as one concise formula? I think I

realize


=42-SUMPRODUCT({1,2,4,2}*(LEFT(Servers!B2:B2000,5)={"D L360","DL380","DL580",
"ML3
70"})
*(Servers!C2:C2000="LCCCR30"))

Regards,




  #7   Report Post  
Dan
 
Posts: n/a
Default

Thanks again! This helps me out quite a bit.

"Aladin Akyurek" wrote in
message ...

Dan Wrote:
... However,
the solution you provided did not quite produce an accurate result.
Your
solution seemed to resolve for the DL360 models, using the LEFT and 5
arguments, but not for the other models. ...


Really? The only thing you did different is applying LEFT() to all
models and taking out plusses.

Now, how would this be structured as one concise formula?


Just return to what I suggested with LEFT() added everywhere or take a
look at the suggestion Daniel M. makes.


--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile:

http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=275986



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
Formula Question Qaspec Excel Discussion (Misc queries) 2 January 10th 05 03:59 AM
Formula Question.....PLEASE PLEASE help! Anant Excel Discussion (Misc queries) 4 January 7th 05 09:30 AM
Array formula weird result Solerman Kaplon via OfficeKB.com Excel Discussion (Misc queries) 2 December 21st 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
What instead of an array formula? Reg Besseling Excel Discussion (Misc queries) 3 December 6th 04 01:55 PM


All times are GMT +1. The time now is 04:36 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"