Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
al al is offline
external usenet poster
 
Posts: 363
Default Sumproduct gives #value

Hello
I am trying to use a sumproduct formula on a range that may sometime include
text (specifically and exclusively N/A), but the formula is returning
#value!. Once I remove any N/A with a number, the error goes away. The
formula is
=SUMPRODUCT(--($D$14:$D$500="7-F"),--($J$14:$J$500="A"),--($I$14:$I$500<""),(K14:K500<"N/A"),ROUNDUP(1.02*(K$14:K$500),0))

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 265
Default Sumproduct gives #value

In article ,
Al wrote:

Hello
I am trying to use a sumproduct formula on a range that may sometime include
text (specifically and exclusively N/A), but the formula is returning
#value!. Once I remove any N/A with a number, the error goes away. The
formula is
=SUMPRODUCT(--($D$14:$D$500="7-F"),--($J$14:$J$500="A"),--($I$14:$I$500<""),(
K14:K500<"N/A"),ROUNDUP(1.02*(K$14:K$500),0))

Thanks!



Try the following formula, which needs to be confirmed with
CONTROL+SHIFT+ENTER, not just ENTER...

=SUM(IF($D$14:$D$500="7-F",IF($I$14:$I$500<"",IF($J$14:$J$500="A",IF(K 14
:K500<"N/A",ROUNDUP(1.02*(K$14:K$500),0))))))

--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
al al is offline
external usenet poster
 
Posts: 363
Default Sumproduct gives #value

OK thanks that works for manually entering the formula.
How do I modify code
range("K13").formula= "= Old Formula" (my old sumproduct formula that worked
when there wasn't an N/A)
I tried range("K13").FormulaArray= "= NewFormula" but I get

"Unable to set FormulaArray Property of the range class"



"Domenic" wrote:

In article ,
Al wrote:

Hello
I am trying to use a sumproduct formula on a range that may sometime include
text (specifically and exclusively N/A), but the formula is returning
#value!. Once I remove any N/A with a number, the error goes away. The
formula is
=SUMPRODUCT(--($D$14:$D$500="7-F"),--($J$14:$J$500="A"),--($I$14:$I$500<""),(
K14:K500<"N/A"),ROUNDUP(1.02*(K$14:K$500),0))

Thanks!



Try the following formula, which needs to be confirmed with
CONTROL+SHIFT+ENTER, not just ENTER...

=SUM(IF($D$14:$D$500="7-F",IF($I$14:$I$500<"",IF($J$14:$J$500="A",IF(K 14
:K500<"N/A",ROUNDUP(1.02*(K$14:K$500),0))))))

--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sumproduct gives #value

Try the below.....and feedback

Range("K13").FormulaArray = "=ROUNDUP(1.02*SUM(IF" & _
"(ISNUMBER(K14:K500)*($D$14:$D$500=""7-F"")*" & _
"($J$14:$J$500=""A"")*($I$14:$I$500<""""),K$14:K$ 500)),0)"

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


"Al" wrote:

OK thanks that works for manually entering the formula.
How do I modify code
range("K13").formula= "= Old Formula" (my old sumproduct formula that worked
when there wasn't an N/A)
I tried range("K13").FormulaArray= "= NewFormula" but I get

"Unable to set FormulaArray Property of the range class"



"Domenic" wrote:

In article ,
Al wrote:

Hello
I am trying to use a sumproduct formula on a range that may sometime include
text (specifically and exclusively N/A), but the formula is returning
#value!. Once I remove any N/A with a number, the error goes away. The
formula is
=SUMPRODUCT(--($D$14:$D$500="7-F"),--($J$14:$J$500="A"),--($I$14:$I$500<""),(
K14:K500<"N/A"),ROUNDUP(1.02*(K$14:K$500),0))

Thanks!



Try the following formula, which needs to be confirmed with
CONTROL+SHIFT+ENTER, not just ENTER...

=SUM(IF($D$14:$D$500="7-F",IF($I$14:$I$500<"",IF($J$14:$J$500="A",IF(K 14
:K500<"N/A",ROUNDUP(1.02*(K$14:K$500),0))))))

--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
al al is offline
external usenet poster
 
Posts: 363
Default Sumproduct gives #value

Ok we are getting closer. I want do the multiplication and rounding of the
individual values in K14:K500 before summing, and this seems to be summing
the values and then multiplying/rounding the sum.


"Jacob Skaria" wrote:

Try the below.....and feedback

Range("K13").FormulaArray = "=ROUNDUP(1.02*SUM(IF" & _
"(ISNUMBER(K14:K500)*($D$14:$D$500=""7-F"")*" & _
"($J$14:$J$500=""A"")*($I$14:$I$500<""""),K$14:K$ 500)),0)"

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


"Al" wrote:

OK thanks that works for manually entering the formula.
How do I modify code
range("K13").formula= "= Old Formula" (my old sumproduct formula that worked
when there wasn't an N/A)
I tried range("K13").FormulaArray= "= NewFormula" but I get

"Unable to set FormulaArray Property of the range class"



"Domenic" wrote:

In article ,
Al wrote:

Hello
I am trying to use a sumproduct formula on a range that may sometime include
text (specifically and exclusively N/A), but the formula is returning
#value!. Once I remove any N/A with a number, the error goes away. The
formula is
=SUMPRODUCT(--($D$14:$D$500="7-F"),--($J$14:$J$500="A"),--($I$14:$I$500<""),(
K14:K500<"N/A"),ROUNDUP(1.02*(K$14:K$500),0))

Thanks!


Try the following formula, which needs to be confirmed with
CONTROL+SHIFT+ENTER, not just ENTER...

=SUM(IF($D$14:$D$500="7-F",IF($I$14:$I$500<"",IF($J$14:$J$500="A",IF(K 14
:K500<"N/A",ROUNDUP(1.02*(K$14:K$500),0))))))

--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sumproduct gives #value

OK. Try the below and feedback..(multiply by 1.02; then roundup and then
sum..based on the other criterias..)

Range("K13").FormulaArray = "=SUM(IF(ISNUMBER(K$14:K$500)*" & _
"($D$14:$D$500=""7-F"")*($J$14:$J$500=""A"")*($I$14:$I$500" & _
"<""""),ROUNDUP(1.02*(K$14:K$500),0)))"

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


"Al" wrote:

Ok we are getting closer. I want do the multiplication and rounding of the
individual values in K14:K500 before summing, and this seems to be summing
the values and then multiplying/rounding the sum.


"Jacob Skaria" wrote:

Try the below.....and feedback

Range("K13").FormulaArray = "=ROUNDUP(1.02*SUM(IF" & _
"(ISNUMBER(K14:K500)*($D$14:$D$500=""7-F"")*" & _
"($J$14:$J$500=""A"")*($I$14:$I$500<""""),K$14:K$ 500)),0)"

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


"Al" wrote:

OK thanks that works for manually entering the formula.
How do I modify code
range("K13").formula= "= Old Formula" (my old sumproduct formula that worked
when there wasn't an N/A)
I tried range("K13").FormulaArray= "= NewFormula" but I get

"Unable to set FormulaArray Property of the range class"



"Domenic" wrote:

In article ,
Al wrote:

Hello
I am trying to use a sumproduct formula on a range that may sometime include
text (specifically and exclusively N/A), but the formula is returning
#value!. Once I remove any N/A with a number, the error goes away. The
formula is
=SUMPRODUCT(--($D$14:$D$500="7-F"),--($J$14:$J$500="A"),--($I$14:$I$500<""),(
K14:K500<"N/A"),ROUNDUP(1.02*(K$14:K$500),0))

Thanks!


Try the following formula, which needs to be confirmed with
CONTROL+SHIFT+ENTER, not just ENTER...

=SUM(IF($D$14:$D$500="7-F",IF($I$14:$I$500<"",IF($J$14:$J$500="A",IF(K 14
:K500<"N/A",ROUNDUP(1.02*(K$14:K$500),0))))))

--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
al al is offline
external usenet poster
 
Posts: 363
Default Sumproduct gives #value

Ok That one works but I have a further variant of the formula that I cannont
get to work. If I enter manually after removing the double quotes and
replacing with single quotes and then ctrl+shift+enter, the formula works.
however when I run the code I get "Unable to set FormulaArray Property of the
range class".

Range("K13").FormulaArray =
"=SUM(IF(ISERROR(MATCH($C$14:$C$500,'G:\MyPath \[MyFile.xls]Sheet4'!$A$1:$A$500,0)),IF($F$14:$F$500=""7-F"",IF($I$14:$I$500=""Roger"",IF($E$14:$e$500=""Wi dget"",IF($J$14:$J$500=""s"",IF(K14:K500<""N/A"",ROUNDUP(1.02*(K$14:K$500),0))))))))"

"Jacob Skaria" wrote:

OK. Try the below and feedback..(multiply by 1.02; then roundup and then
sum..based on the other criterias..)

Range("K13").FormulaArray = "=SUM(IF(ISNUMBER(K$14:K$500)*" & _
"($D$14:$D$500=""7-F"")*($J$14:$J$500=""A"")*($I$14:$I$500" & _
"<""""),ROUNDUP(1.02*(K$14:K$500),0)))"

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


"Al" wrote:

Ok we are getting closer. I want do the multiplication and rounding of the
individual values in K14:K500 before summing, and this seems to be summing
the values and then multiplying/rounding the sum.


"Jacob Skaria" wrote:

Try the below.....and feedback

Range("K13").FormulaArray = "=ROUNDUP(1.02*SUM(IF" & _
"(ISNUMBER(K14:K500)*($D$14:$D$500=""7-F"")*" & _
"($J$14:$J$500=""A"")*($I$14:$I$500<""""),K$14:K$ 500)),0)"

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


"Al" wrote:

OK thanks that works for manually entering the formula.
How do I modify code
range("K13").formula= "= Old Formula" (my old sumproduct formula that worked
when there wasn't an N/A)
I tried range("K13").FormulaArray= "= NewFormula" but I get

"Unable to set FormulaArray Property of the range class"



"Domenic" wrote:

In article ,
Al wrote:

Hello
I am trying to use a sumproduct formula on a range that may sometime include
text (specifically and exclusively N/A), but the formula is returning
#value!. Once I remove any N/A with a number, the error goes away. The
formula is
=SUMPRODUCT(--($D$14:$D$500="7-F"),--($J$14:$J$500="A"),--($I$14:$I$500<""),(
K14:K500<"N/A"),ROUNDUP(1.02*(K$14:K$500),0))

Thanks!


Try the following formula, which needs to be confirmed with
CONTROL+SHIFT+ENTER, not just ENTER...

=SUM(IF($D$14:$D$500="7-F",IF($I$14:$I$500<"",IF($J$14:$J$500="A",IF(K 14
:K500<"N/A",ROUNDUP(1.02*(K$14:K$500),0))))))

--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions

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 with Condition OR Sumproduct with ADDRESS function - HE gholly Excel Discussion (Misc queries) 2 September 28th 09 05:07 PM
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
SUMPRODUCT Help! Shaun Excel Worksheet Functions 3 May 14th 08 03:16 AM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct masterkeys Excel Worksheet Functions 2 November 22nd 05 09:16 AM


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