Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default SUMPRODUCT--what else??

I'm auditing a spreadsheet with the following formula:

=SUMPRODUCT((E81:P81)*(E59:P59="BAU"))+SUMPRODUCT( (E81:P81)*(E59:P59="BAU
Starts"))

I'm looking for confirmation that the following is the correct
interpretation of what this formula is doing:

1) Sum those cells in the range E81:P81 for which the corresponding cell in
range E59:P59 contains "BAU"

2) Sum those cells in the range E81:P81 for which the corresponding cell in
range E59:P59 contains "BAU Starts"

3) Add the results of 1) and 2) together.

Is this correct?

Thx,

Dave
--
Brevity is the soul of wit.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default SUMPRODUCT--what else??

Hey, Dave-
I mocked up a sprdsht and found that yes, the formula is doing what you
interpret it to be doing- with the exception that the corresponding
range e59:p59 ~equals~, not contains, BAU or BAU Starts. (Not to be a
nitpicker, just a detail).

Dave O

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default SUMPRODUCT--what else??

Is this correct?

Yes.

An alternative:

=SUM(SUMIF(E59:P59,{"BAU","BAU STARTS"},E81:P81))

Biff

"Dave F" wrote in message
...
I'm auditing a spreadsheet with the following formula:

=SUMPRODUCT((E81:P81)*(E59:P59="BAU"))+SUMPRODUCT( (E81:P81)*(E59:P59="BAU
Starts"))

I'm looking for confirmation that the following is the correct
interpretation of what this formula is doing:

1) Sum those cells in the range E81:P81 for which the corresponding cell
in
range E59:P59 contains "BAU"

2) Sum those cells in the range E81:P81 for which the corresponding cell
in
range E59:P59 contains "BAU Starts"

3) Add the results of 1) and 2) together.

Is this correct?

Thx,

Dave
--
Brevity is the soul of wit.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT--what else??

Why be slow and obtuse

=SUMIF(E59:P59,"BAU",E81:P81)+SUMIF(E59:P59,"BAU STARTS",E81:P81)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Biff" wrote in message
...
Is this correct?


Yes.

An alternative:

=SUM(SUMIF(E59:P59,{"BAU","BAU STARTS"},E81:P81))

Biff

"Dave F" wrote in message
...
I'm auditing a spreadsheet with the following formula:


=SUMPRODUCT((E81:P81)*(E59:P59="BAU"))+SUMPRODUCT( (E81:P81)*(E59:P59="BAU
Starts"))

I'm looking for confirmation that the following is the correct
interpretation of what this formula is doing:

1) Sum those cells in the range E81:P81 for which the corresponding cell
in
range E59:P59 contains "BAU"

2) Sum those cells in the range E81:P81 for which the corresponding cell
in
range E59:P59 contains "BAU Starts"

3) Add the results of 1) and 2) together.

Is this correct?

Thx,

Dave
--
Brevity is the soul of wit.





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default SUMPRODUCT--what else??

Thanks to all.

Interesting alternatives.

Dave
--
Brevity is the soul of wit.


"Bob Phillips" wrote:

Why be slow and obtuse

=SUMIF(E59:P59,"BAU",E81:P81)+SUMIF(E59:P59,"BAU STARTS",E81:P81)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Biff" wrote in message
...
Is this correct?


Yes.

An alternative:

=SUM(SUMIF(E59:P59,{"BAU","BAU STARTS"},E81:P81))

Biff

"Dave F" wrote in message
...
I'm auditing a spreadsheet with the following formula:


=SUMPRODUCT((E81:P81)*(E59:P59="BAU"))+SUMPRODUCT( (E81:P81)*(E59:P59="BAU
Starts"))

I'm looking for confirmation that the following is the correct
interpretation of what this formula is doing:

1) Sum those cells in the range E81:P81 for which the corresponding cell
in
range E59:P59 contains "BAU"

2) Sum those cells in the range E81:P81 for which the corresponding cell
in
range E59:P59 contains "BAU Starts"

3) Add the results of 1) and 2) together.

Is this correct?

Thx,

Dave
--
Brevity is the soul of wit.






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
Adding "OR" to a Sumproduct Formula Duke Carey Excel Worksheet Functions 0 March 21st 06 06:41 PM
Need help with sumproduct and dynamic ranges Bill_S Excel Worksheet Functions 2 March 19th 06 01:19 AM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 03:22 PM.

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"