#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 298
Default SUMPRODUCT

Hi,

I have a formula which works fine:

=SUMPRODUCT(
--(Projects_State=F15),
--(Projects_Dev_Type=F17),
--(Projects_Carrying_Value=F19),
--(Projects_Carrying_Value<=F21))
)

"Projects_State", "Projects_Dev_Type" and "Projects_Carrying_Value" are all
named ranges. They work fine.
F15 = a state in Australia
F17 = a text input from a drop down menu
F19/F21 = a numerical value.

The formula works fine. However, I want cells F15 and F17 to be "optional"
whereby if a user *does not* enter a value, it is treated as if all values
are required.

I have tried, and tried but cannot get anything to work...help please...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default SUMPRODUCT

Replace F15 and F17 with
IF(F15="",Projects_State,F15)
IF(F17="",Projects_Dev_Type,F17)
respectively; something like the below....

Please try and feedback


=SUMPRODUCT(
--(Projects_State=IF(F15="",Projects_State,F15)),
--(Projects_Dev_Type=IF(F17="",Projects_Dev_Type,F17 )),
--(Projects_Carrying_Value=F19),
--(Projects_Carrying_Value<=F21))
)


--
If this post helps click Yes
---------------
Jacob Skaria


"Rich" wrote:

Hi,

I have a formula which works fine:

=SUMPRODUCT(
--(Projects_State=F15),
--(Projects_Dev_Type=F17),
--(Projects_Carrying_Value=F19),
--(Projects_Carrying_Value<=F21))
)

"Projects_State", "Projects_Dev_Type" and "Projects_Carrying_Value" are all
named ranges. They work fine.
F15 = a state in Australia
F17 = a text input from a drop down menu
F19/F21 = a numerical value.

The formula works fine. However, I want cells F15 and F17 to be "optional"
whereby if a user *does not* enter a value, it is treated as if all values
are required.

I have tried, and tried but cannot get anything to work...help please...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default SUMPRODUCT

Rich wrote...
....
=SUMPRODUCT(
--(Projects_State=F15),
--(Projects_Dev_Type=F17),
--(Projects_Carrying_Value=F19),
--(Projects_Carrying_Value<=F21))
)

....
The formula works fine. *However, I want cells F15 and F17 to be "optional"
whereby if a user *does not* enter a value, it is treated as if all values
are required.


One way

=SUMPRODUCT(
--((Projects_State=F15)+ISBLANK(F15)0),
--((Projects_Dev_Type=F17)+ISBLANK(F17)0),
--(Projects_Carrying_Value=F19),
--(Projects_Carrying_Value<=F21))
)
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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
SUMPRODUCT help Ellie Excel Worksheet Functions 8 February 7th 08 02:27 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
hlp with sumproduct! via135 Excel Worksheet Functions 7 February 23rd 06 05:24 AM
sumproduct help JR Excel Worksheet Functions 2 February 21st 06 08:39 PM


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