INDEX & MATCH using 3 conditions with 'in between'

devo1234

New Member
Joined
Jun 18, 2018
Messages
9
5TOZpLs
CUyDEm0

Hi,

{=INDEX(K243:K274,MATCH(O245&P245,G243:G274&H243:H274))}

Tried to insert an image but it's not working.. please see below for screenshots..
https://imgur.com/a/CUyDEm0
https://imgur.com/5TOZpLs

The table on the left.. has 4 components, portfolio, risk, term (from and to) and value. The table on the right is my attempt to capture the right value. Column value on the right is what table on the left has and my index formula is not picking up the right value since column term on the right is an integer whereas table left has term from & to.

How do I insert a condition that would allow my formula to search for a value in between such as 2,3 or 7? If from and to are the same i.e. 1 then I can work around this manually for now

Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Does this work?


Excel 2010
ABCDEFGHIJK
1PortfolioRiskTermFromTermToValuePortfolioRiskTermValue
2HGBA0011HGBB112
3HGBA1012HGBA323
4HGBA2012
5HGBA3012
6HGBB1012
7HGBB2012
8HGBB3012
9HGBC1012
10HGBA0152
11HGBA1153
12HGBA2153
13HGBA3153
14HGBB1153
15HGBB2153
16HGBB3153
17HGBC1153
18HGBA05102
19HGBA15104
20HGBA25104
21HGBA35104
22HGBB15104
23HGBB25104
24HGBB35104
25HGBC15104
26HGBA010992
27HGBA110994
28HGBA210994
29HGBA310994
30HGBB110994
31HGBB210994
32HGBB310994
33HGBC110994
Sheet9
Cell Formulas
RangeFormula
K2=SUMIFS($E$2:$E$33,$A$2:$A$33,H2,$B$2:$B$33,I2,$C$2:$C$33,"<"&J2,$D$2:$D$33,">="&J2)
 
Upvote 0
Nicely done! Thank you very much!

Could you please confirm the logic you used can be stated as follow:

For criteria 3, if my term is 9 (column J) look for any value below column C THEN for any value above or equal term 9 (column J) look for any value above or equal TermTo (column D)

Did not think in using a SUMIFS...

Hats to you...
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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