Index & Match issues

hessyb2

New Member
Joined
Sep 18, 2011
Messages
6
Hi,

i am trying to return values from a previous column by using match within index. it appears that i have done it corretly however rather then only returning the match value, it is returning all values from the selected column. my data is unsorted and i have made the match value text.

here is the formula that i have used, as i said i am not sure where i have gone wrong.

=INDEX('SPA Report'!A1:O500,(MATCH("BREACH",'SPA Report'!K$1:K500,0)),2)

thanks.
 

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.
Hi and welcome

I'm not understanding what you mean by
"..rather then only returning the match value, it is returning all values from the selected column."

Are you applying the same formula in multiple cells?

M.
 
Upvote 0
thank you,

yes i have dragged it down over 500 rows.

it is just returning the value in the equivalent row of the tab that i am pulling the data from (SPA report) and not returning only "BREACH" values.

thanks
 
Upvote 0
thank you,

yes i have dragged it down over 500 rows.

it is just returning the value in the equivalent row of the tab that i am pulling the data from (SPA report) and not returning only "BREACH" values.

thanks

Use absolute references like (observe the $ symbols)

=INDEX('SPA Report'!$A$1:$O$500,(MATCH("BREACH",'SPA Report'!$K$1:$K$500,0)),2)

Then you can copy down and the formulas will refer to the same ranges, but you have to change "BREACH" to a cell reference to get the proper results

HTH

M.
 
Last edited:
Upvote 0
i had already tried that.

when i absolute reference, the only value that is returned is that of the 1st row from the data source.
 
Upvote 0
i had already tried that.

when i absolute reference, the only value that is returned is that of the 1st row from the data source.

Yes.

Could you post a small sample of your data and expected results? So we can see what you need.

To post a sample of your data:
Select a relevant part of your data, say, 10/15 rows including headers
Put borders
Copy (ctrl+C) and paste (ctrl+V) in the forum reply page

M.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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