Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default SUMPRODUCT with If condition


=SUMPRODUCT(--(Other!$G$2:$G$10000=C$4),--(Other!$O$2:$O$10000 =
""),Other!$H$2:$H$10000)


The formula above works fine. However, I need to modify it to do the
following:

If Column J on the "Other" worksheet has a value, I need my match to refer
to column J. However, if column J is blank, I need the match to refer to
column G as it is doing above.







  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default SUMPRODUCT with If condition

Maybe this:

=SUMPRODUCT(--(Other!$J$2:$J$10000<""),Other!$J$2:$J$10000=C$4 ),--(Other!$O$2:$O$10000
=
""),Other!$H$2:$H$10000) +
SUMPRODUCT(--(Other!$J$2:$J$10000=""),Other!$G$2:$G$10000=C$4) ,--(Other!$O$2:$O$10000
=
""),Other!$H$2:$H$10000)

HTH,
Paul

--

"JPS" wrote in message
...

=SUMPRODUCT(--(Other!$G$2:$G$10000=C$4),--(Other!$O$2:$O$10000 =
""),Other!$H$2:$H$10000)


The formula above works fine. However, I need to modify it to do the
following:

If Column J on the "Other" worksheet has a value, I need my match to refer
to column J. However, if column J is blank, I need the match to refer to
column G as it is doing above.









  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default SUMPRODUCT with If condition

Hi,

What column J? There is no column J in your formula. There is not MATCH in
your formula, could you be a little bit more specific.

Cheers,
Shane Devenshire

"JPS" wrote in message
...

=SUMPRODUCT(--(Other!$G$2:$G$10000=C$4),--(Other!$O$2:$O$10000 =
""),Other!$H$2:$H$10000)


The formula above works fine. However, I need to modify it to do the
following:

If Column J on the "Other" worksheet has a value, I need my match to refer
to column J. However, if column J is blank, I need the match to refer to
column G as it is doing above.







  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default SUMPRODUCT with If condition

Hello JPS,

Perhaps try changing to an "array formula" like this

=SUM(IF(IF(Other!$J$2:$J$10000<"",Other!$J$2:$J$1 0000,Other!$G$2:$G
$10000)=C$4,IF(Other!$O$2:$O$10000="",Other!$H$2: $H$10000)))

Needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces
appear around the formula in the formula bar
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
Sumproduct 'Or' Condition pdberger Excel Worksheet Functions 2 December 28th 07 10:56 PM
sumproduct-condition as a range amh Excel Discussion (Misc queries) 3 July 26th 07 05:36 PM
SUMPRODUCT with an IF condition? FARAZ QURESHI Excel Discussion (Misc queries) 4 May 5th 07 05:31 AM
Sumproduct: condition with ? Sarah Excel Discussion (Misc queries) 3 November 1st 06 06:33 PM
Sumproduct with condition??? neda5 Excel Discussion (Misc queries) 5 December 14th 05 02:09 AM


All times are GMT +1. The time now is 04:07 PM.

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

About Us

"It's about Microsoft Excel"