Index / Match issue.

Jing

Active Member
Joined
Feb 11, 2011
Messages
289
I have the following formula entered into K5

=IF(ROWS(K$5:K5)>$J$3,"",INDEX('Vancouver Listings'!$A$94:$A$474,MATCH($J$5,'Vancouver Listings'!$F$94:$F$474,0)+ROWS(K$5:K5)-1))

it is then copied down from K6:K93

the problem i am running into is that it will match J5 to the first match in the aray F94:F474. Then instead of finding another match of J5 after that, it just grabs the data in the in the cells directly below it for a total of the counted amount in Cell J3...

so say J3 is = to 14 as there are 14 matches to the data entered into J5. basically it will find the first match and place the correct value into K5. then just takes the next 14 cells below it and fill in K6:K18 with incorrect data...

I would like it to find each match within the aray F94:F474 and pull the data left of the match J5 in A94:A474

thank you in advance.
 
Last edited:

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I have the following formula entered into K5

=IF(ROWS(K$5:K5)>$J$3,"",INDEX('Vancouver Listings'!$A$94:$A$474,MATCH($J$5,'Vancouver Listings'!$F$94:$F$474,0)+ROWS(K$5:K5)-1))

it is then copied down from K6:K93

the problem i am running into is that it will match J5 to the first match in the aray F94:F474. Then instead of finding another match of J5 after that, it just grabs the data in the in the cells directly below it for a total of the counted amount in Cell J3...

so say J3 is = to 14 as there are 14 matches to the data entered into J5. basically it will find the first match and place the correct value into K5. then just takes the next 14 cells below it and fill in K6:K18 with incorrect data...

I would like it to find each match within the aray F94:F474 and pull the data left of the match J5 in A94:A474

thank you in advance.
Try this array formula**:

=IF(ROWS(K$5:K5)>$J$3,"",INDEX('Vancouver Listings'!$A:$A,SMALL(IF('Vancouver Listings'!$F$94:$F$474=$J$5,ROW('Vancouver Listings'!$F$94:$F$474)),ROWS(K$5:K5))))

** 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.

Copy down until you get blanks.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
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