Formula help

AussieVic

Active Member
Joined
Jan 9, 2009
Messages
364
Hi i am after a formula that will look up J:K in A:B and return result in L

Excel Workbook
ABCDEFGHIJKL
2SecurityPortfolioAmountSecurityPortfolioAmount
3PCABD1SMPDAF123.6PCABD1SMPDAF
4TYHUTJ2SMLKH1236.6
5
6
7
Sheet3
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try this array formula entered with CTRL + SHIFT + ENTER

=INDEX($C$1:$C$6,MATCH(1,($A$1:$A$6=J2)*($B$1:$B$6=K2),0))
 
Upvote 0
Hi i am after a formula that will look up J:K in A:B and return result in L

Excel Workbook
ABCDEFGHIJKL
2SecurityPortfolioAmountSecurityPortfolioAmount
3PCABD1SMPDAF123.6PCABD1SMPDAF
4TYHUTJ2SMLKH1236.6
5
6
7
Sheet3

L3, control+shift+enter, not just enter:

=INDEX(?C?3:?C?4,MATCH(1,IF(?A?3:?A?4=J3,IF(?B?3:?B?4=K3,1)),0))


__________________
Post #4 from ?stanbul
 
Upvote 0
Assuming that a given security could be assigned to more than one portfolio, and could have a different value in each portfolio, the easiest way to do this is to insert a helper column at C (your values will move over to column D), with a formula that concatenates column A and B.

Put a Vlookup in Column L (what is now Col L - will be Col M after the insertion mentioned above) that looks up the concatenated values in the helper column and the values column - see below. Note - the helper column doesn't have to be visible

Book1
ABCDEFGHIJKLM
1SecurityPortfoliohelperValueSecurityPortfolioValue
2AAA111AAA11134.48AAA22281.49
3AAA222AAA22281.49BBB11174.61
4BBB111BBB11174.61BBB33342.72
5BBB222BBB2226.48
6BBB333BBB33342.72
7CCC222CCC22281.61
8DDD111DDD11124.51
9EEE333EEE33323.15
Sheet1
 
Upvote 0
in L3:
=SUMPRODUCT(($A$3:$A$20=$J$3)*($B$3:$B$20=$K$3),$C$3:$C$20)
though this will sum all the rows with the same Security/Portfolio combination, which is maybe what you want, otherwise, be sure that only one row has that combination in coliumns A:B.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,676
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top