INDEX / MATCH without values

thorpyuk

Well-known Member
Joined
Mar 14, 2006
Messages
1,453
Hi,

I want to return a string on an index/match, but can't quite figure out exactly what the formula should be.


=INDEX(Input!$G$2:$G$1461,MATCH(C$5,IF(Input!$A$2:$A$1461=$A9,Input!$J$2:$J$1461),0))

Something like that, where column J is a date, and column A is matching to the string in cell C5, and column G is what i want to return - in this instance it should return 'Investment'

For some reason it's giving me an error

Thanks guys :/
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Does this formula do what you want, adapt as per your own references...

Excel 2010
ABC
1Crit1Crit2Value
2AX1
3AZ2
4AY3
5BY4
6BZ5
7
8Crit1Crit2Return
9BZ5

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
C9{=INDEX($C$2:$C$6, MATCH(A9&B9, $A$2:$A$6&$B$2:$B$6, 0))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



/AJ
 
Upvote 0
Try:

=INDEX(Input!$G$2:$G$1461,MATCH(1,INDEX((Input!$A$2:$A$1461=$A9)*(Input!$J$2:$J$1461=C$5),),0))

Thanks both!
Andrew - what was i doing wrong?

You probably forgat to confirm the formula with control+shift+enter, not just enter, for

=INDEX(Input!$G$2:$G$1461,MATCH(C$5,IF(Input!$A$2:$A$1461=$A9,Input!$J$2:$J$1461),0))

is equivalent to Andrew's suggestion.
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,329
Members
451,637
Latest member
hvp2262

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