Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Valerie
 
Posts: n/a
Default SUMPRODUCT formula returning #VALUE! error

Hello, All!

I'm having trouble getting this formula to work:

{SUMPRODUCT(--(WBS!$A$2:$A$423=$A46)*(--(WBS!$B$2:$B$423=$F46)*WBS!$E$2:$E$423))}

1st section is comparing a text field
2nd section is comparing a number field
3rd section is asking for a result of a text field

I tried separating the sections to determine which is producing the error
and I don't receive an error message, although the numbers they produced
didn't appear to be the correct location of the WBS sheet. I need it to
compare two columns to determine the correct cell to pull since there are
duplicates in both columns but with the criteria from both columns, the line
is unique.
I did import these from an SAP download, but have replaced formatting with
correct formatting by pulling value of the text into a new column with
VALUE() formula then pasting value.
What am I missing?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default SUMPRODUCT formula returning #VALUE! error

=SUMPRODUCT(--(WBS!$A$2:$A$423=$A46),--(WBS!$B$2:$B$423=$F46),WBS!$E$2:$E$423)


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Valerie" wrote in message
...
Hello, All!

I'm having trouble getting this formula to work:

{SUMPRODUCT(--(WBS!$A$2:$A$423=$A46)*(--(WBS!$B$2:$B$423=$F46)*WBS!$E$2:$E$423))}

1st section is comparing a text field
2nd section is comparing a number field
3rd section is asking for a result of a text field

I tried separating the sections to determine which is producing the error
and I don't receive an error message, although the numbers they produced
didn't appear to be the correct location of the WBS sheet. I need it to
compare two columns to determine the correct cell to pull since there are
duplicates in both columns but with the criteria from both columns, the
line
is unique.
I did import these from an SAP download, but have replaced formatting with
correct formatting by pulling value of the text into a new column with
VALUE() formula then pasting value.
What am I missing?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default SUMPRODUCT formula returning #VALUE! error


hi!

=SUMPRODUCT(--(WBS!$A$2:$A$423=C1),--(WBS!$B$2:$B$423=$F46),--(WBS!$E$2:$E$423))

assuming that the text you comparing is in C1

-via135




Valerie Wrote:
Hello, All!

I'm having trouble getting this formula to work:

{SUMPRODUCT(--(WBS!$A$2:$A$423=$A46)*(--(WBS!$B$2:$B$423=$F46)*WBS!$E$2:$E$423))}

1st section is comparing a text field
2nd section is comparing a number field
3rd section is asking for a result of a text field

I tried separating the sections to determine which is producing the
error
and I don't receive an error message, although the numbers they
produced
didn't appear to be the correct location of the WBS sheet. I need it
to
compare two columns to determine the correct cell to pull since there
are
duplicates in both columns but with the criteria from both columns, the
line
is unique.
I did import these from an SAP download, but have replaced formatting
with
correct formatting by pulling value of the text into a new column with
VALUE() formula then pasting value.
What am I missing?



--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=537000

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Valerie
 
Posts: n/a
Default SUMPRODUCT formula returning #VALUE! error

Thanks, Peo. I'm now getting 0 instead of the error code, and that's still
not correct. I also tried the other suggestion from via135, but still
received the error code. Any other ideas?

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(WBS!$A$2:$A$423=$A46),--(WBS!$B$2:$B$423=$F46),WBS!$E$2:$E$423)


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Valerie" wrote in message
...
Hello, All!

I'm having trouble getting this formula to work:

{SUMPRODUCT(--(WBS!$A$2:$A$423=$A46)*(--(WBS!$B$2:$B$423=$F46)*WBS!$E$2:$E$423))}

1st section is comparing a text field
2nd section is comparing a number field
3rd section is asking for a result of a text field

I tried separating the sections to determine which is producing the error
and I don't receive an error message, although the numbers they produced
didn't appear to be the correct location of the WBS sheet. I need it to
compare two columns to determine the correct cell to pull since there are
duplicates in both columns but with the criteria from both columns, the
line
is unique.
I did import these from an SAP download, but have replaced formatting with
correct formatting by pulling value of the text into a new column with
VALUE() formula then pasting value.
What am I missing?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default SUMPRODUCT formula returning #VALUE! error

If you want to return a text value you cannot use sumproduct, I erroneously
assumed that E2:E423 was numbers. sumproduct can only return a numeric
result so it can count a text column or a number column or it can sum a
number column. If you want to return one text value from E2:E423 where
A2:A423 is A46 and B2:B423 is F46 then you can use

=INDEX(WBS!$E$2:$E$423,MATCH(1,(WBS!$A$2:$A$423=$A 46)*(WBS!$B$2:$B$423=$F46),0))

entered with ctrl + shift & enter


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com





"Valerie" wrote in message
...
Thanks, Peo. I'm now getting 0 instead of the error code, and that's
still
not correct. I also tried the other suggestion from via135, but still
received the error code. Any other ideas?

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(WBS!$A$2:$A$423=$A46),--(WBS!$B$2:$B$423=$F46),WBS!$E$2:$E$423)


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Valerie" wrote in message
...
Hello, All!

I'm having trouble getting this formula to work:

{SUMPRODUCT(--(WBS!$A$2:$A$423=$A46)*(--(WBS!$B$2:$B$423=$F46)*WBS!$E$2:$E$423))}

1st section is comparing a text field
2nd section is comparing a number field
3rd section is asking for a result of a text field

I tried separating the sections to determine which is producing the
error
and I don't receive an error message, although the numbers they
produced
didn't appear to be the correct location of the WBS sheet. I need it
to
compare two columns to determine the correct cell to pull since there
are
duplicates in both columns but with the criteria from both columns, the
line
is unique.
I did import these from an SAP download, but have replaced formatting
with
correct formatting by pulling value of the text into a new column with
VALUE() formula then pasting value.
What am I missing?








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Valerie
 
Posts: n/a
Default SUMPRODUCT formula returning #VALUE! error

Thanks, Peo!! It worked! I had tried using Index/Match before but with the
AND function and got nowhere. I will be utilizing this way much more now
since I work a lot with text! Thanks so much!

Valerie

"Peo Sjoblom" wrote:

If you want to return a text value you cannot use sumproduct, I erroneously
assumed that E2:E423 was numbers. sumproduct can only return a numeric
result so it can count a text column or a number column or it can sum a
number column. If you want to return one text value from E2:E423 where
A2:A423 is A46 and B2:B423 is F46 then you can use

=INDEX(WBS!$E$2:$E$423,MATCH(1,(WBS!$A$2:$A$423=$A 46)*(WBS!$B$2:$B$423=$F46),0))

entered with ctrl + shift & enter


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com





"Valerie" wrote in message
...
Thanks, Peo. I'm now getting 0 instead of the error code, and that's
still
not correct. I also tried the other suggestion from via135, but still
received the error code. Any other ideas?

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(WBS!$A$2:$A$423=$A46),--(WBS!$B$2:$B$423=$F46),WBS!$E$2:$E$423)


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Valerie" wrote in message
...
Hello, All!

I'm having trouble getting this formula to work:

{SUMPRODUCT(--(WBS!$A$2:$A$423=$A46)*(--(WBS!$B$2:$B$423=$F46)*WBS!$E$2:$E$423))}

1st section is comparing a text field
2nd section is comparing a number field
3rd section is asking for a result of a text field

I tried separating the sections to determine which is producing the
error
and I don't receive an error message, although the numbers they
produced
didn't appear to be the correct location of the WBS sheet. I need it
to
compare two columns to determine the correct cell to pull since there
are
duplicates in both columns but with the criteria from both columns, the
line
is unique.
I did import these from an SAP download, but have replaced formatting
with
correct formatting by pulling value of the text into a new column with
VALUE() formula then pasting value.
What am I missing?






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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Simplifying array formula which evaluates as error. Richard Buttrey Excel Worksheet Functions 5 September 30th 05 02:35 AM
Formula returning #N/A Error---why??? Excel User Excel Worksheet Functions 4 September 26th 05 02:25 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM


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