Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default IF statement with nested SUMPRODUCT?

Any insight offered will be very appreicated.

I'm trying to use the following formula:

=IF(AND(D8:D229="Labor
CAP",C8:C229="Complete"),G8:G229,SUMPRODUCT(--(D8:D229="Labor
CAP"),--(C8:C229<"Not Ordered"),E8:E229))

The goal is this: If any cells in range D8:D229 = Labor CAP and any cells
in range C8:C229 = Complete, sum corresponding cells in range G8:G229, if
not, find cells in range D8:D29 = Labor CAP and cells in range C8:C229 that
are not equal to Not Ordered, and sum corresponding cells in range E8:E229.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default IF statement with nested SUMPRODUCT?



=if(sumproduct(--(D8:D229="Labor
CAP")*(C8:c229="Complete"),(G8:G229))=0,sumproduct (--(c8:c229<"Not
Ordered"),(E8:E229)),sumproduct(--(D8:D229="Labor
CAP")*(C8:c229="Complete"),(G8:G229)))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Bazael" escreveu:

Any insight offered will be very appreicated.

I'm trying to use the following formula:

=IF(AND(D8:D229="Labor
CAP",C8:C229="Complete"),G8:G229,SUMPRODUCT(--(D8:D229="Labor
CAP"),--(C8:C229<"Not Ordered"),E8:E229))

The goal is this: If any cells in range D8:D229 = Labor CAP and any cells
in range C8:C229 = Complete, sum corresponding cells in range G8:G229, if
not, find cells in range D8:D29 = Labor CAP and cells in range C8:C229 that
are not equal to Not Ordered, and sum corresponding cells in range E8:E229.

Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default IF statement with nested SUMPRODUCT?

Thanks for the suggestion! The formula you proposed actually triggered me to
think of this:

=SUMPRODUCT(--(D8:D229="Labor CAP"),--(C8:C229<"Not
Ordered"),--(C8:C229<"Complete"),E8:E229)+(SUMPRODUCT(--(D8:D229="Labor
CAP"),--(C8:C229<"Not Ordered"),--(C8:C229="Complete"),G8:G229))

And I was able to get the exact calculation I was looking for. Thanks again!

"Marcelo" wrote:



=if(sumproduct(--(D8:D229="Labor
CAP")*(C8:c229="Complete"),(G8:G229))=0,sumproduct (--(c8:c229<"Not
Ordered"),(E8:E229)),sumproduct(--(D8:D229="Labor
CAP")*(C8:c229="Complete"),(G8:G229)))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Bazael" escreveu:

Any insight offered will be very appreicated.

I'm trying to use the following formula:

=IF(AND(D8:D229="Labor
CAP",C8:C229="Complete"),G8:G229,SUMPRODUCT(--(D8:D229="Labor
CAP"),--(C8:C229<"Not Ordered"),E8:E229))

The goal is this: If any cells in range D8:D229 = Labor CAP and any cells
in range C8:C229 = Complete, sum corresponding cells in range G8:G229, if
not, find cells in range D8:D29 = Labor CAP and cells in range C8:C229 that
are not equal to Not Ordered, and sum corresponding cells in range E8:E229.

Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default IF statement with nested SUMPRODUCT?

yaw

glad to help
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Bazael" escreveu:

Thanks for the suggestion! The formula you proposed actually triggered me to
think of this:

=SUMPRODUCT(--(D8:D229="Labor CAP"),--(C8:C229<"Not
Ordered"),--(C8:C229<"Complete"),E8:E229)+(SUMPRODUCT(--(D8:D229="Labor
CAP"),--(C8:C229<"Not Ordered"),--(C8:C229="Complete"),G8:G229))

And I was able to get the exact calculation I was looking for. Thanks again!

"Marcelo" wrote:



=if(sumproduct(--(D8:D229="Labor
CAP")*(C8:c229="Complete"),(G8:G229))=0,sumproduct (--(c8:c229<"Not
Ordered"),(E8:E229)),sumproduct(--(D8:D229="Labor
CAP")*(C8:c229="Complete"),(G8:G229)))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Bazael" escreveu:

Any insight offered will be very appreicated.

I'm trying to use the following formula:

=IF(AND(D8:D229="Labor
CAP",C8:C229="Complete"),G8:G229,SUMPRODUCT(--(D8:D229="Labor
CAP"),--(C8:C229<"Not Ordered"),E8:E229))

The goal is this: If any cells in range D8:D229 = Labor CAP and any cells
in range C8:C229 = Complete, sum corresponding cells in range G8:G229, if
not, find cells in range D8:D29 = Labor CAP and cells in range C8:C229 that
are not equal to Not Ordered, and sum corresponding cells in range E8:E229.

Thank you.

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
Nested if statement ? Angelaf Excel Worksheet Functions 3 April 14th 08 02:28 PM
IF OR NESTED STATEMENT SuperBee Excel Discussion (Misc queries) 10 March 1st 08 05:31 AM
IF STATEMENT - NESTED tojo107 Excel Worksheet Functions 4 April 19th 07 08:14 PM
Nested if statement burl_h Excel Worksheet Functions 3 December 16th 06 06:35 PM
Help with a nested IF statement. BM Excel Discussion (Misc queries) 4 August 18th 06 04:36 AM


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