Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default sumproduct formula help

Trying to match 3 fields in one dataset and return a text value in a 4th field.

=SUMPRODUCT(--('[Copy of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$A2:$A35000=--LEFT(E4,5)),--('[Copy
of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$E2:$E35000=--MID(E4,6,10)),--('[Copy
of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$F2:$F35000=--RIGHT(E4,10)),('[Copy
of Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$AD2:$AD35000))


The value I am trying to return in column AD is text. Should I alter the
formula because the return is a 0?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sumproduct formula help

SUMPRODUCT won't return TEXT values.

I would use cells to hold:

A1: =--LEFT(E4,5)
B1: =--MID(E4,6,10)
C1: =--RIGHT(E4,10)

Then this array formula** (I'm leaving out the path/sheet names so add it to
your formula):

=INDEX(AD2:AD35000,MATCH(1,(A2:A35000=A1)*(E2:E350 00B1)*(F2:F35000=C1),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.


--
Biff
Microsoft Excel MVP


"ronda120" wrote in message
...
Trying to match 3 fields in one dataset and return a text value in a 4th
field.

=SUMPRODUCT(--('[Copy of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$A2:$A35000=--LEFT(E4,5)),--('[Copy
of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$E2:$E35000=--MID(E4,6,10)),--('[Copy
of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$F2:$F35000=--RIGHT(E4,10)),('[Copy
of Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$AD2:$AD35000))


The value I am trying to return in column AD is text. Should I alter the
formula because the return is a 0?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 793
Default sumproduct formula help

SUMPRODUCT is for finding the SUM of PRODUCT of two or more arrays...

Use Vlookup or Index/Match to lookup the value.

See http://www.contextures.com/xlFunctions03.html for ideas.

"ronda120" wrote:

Trying to match 3 fields in one dataset and return a text value in a 4th field.

=SUMPRODUCT(--('[Copy of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$A2:$A35000=--LEFT(E4,5)),--('[Copy
of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$E2:$E35000=--MID(E4,6,10)),--('[Copy
of
Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$F2:$F35000=--RIGHT(E4,10)),('[Copy
of Private_Active_AFS_Portfolio_200903.xls]Guarantor'!$AD2:$AD35000))


The value I am trying to return in column AD is text. Should I alter the
formula because the return is a 0?

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 formula help?? GoBucks[_2_] Excel Worksheet Functions 1 April 28th 09 11:11 AM
Nesting a sumproduct formula within a sumif formula. jerrymcm Excel Discussion (Misc queries) 2 October 3rd 07 03:35 PM
SUMPRODUCT formula - help! Kierano Excel Worksheet Functions 5 October 25th 06 05:47 PM
SUMPRODUCT formula help Serge Excel Discussion (Misc queries) 7 April 10th 06 11:37 PM
sumproduct formula Todd Excel Worksheet Functions 2 March 10th 06 01:39 AM


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