# Row-and-Column Lookup

#### srizki

##### Well-known Member
I have the following formula,
=INDEX(A7:H14, MATCH(B1, H7:H14, 0), MATCH(B2, A6:H6, 0))
In B3 , that gives correct result.
But, if I put the same formula any where else it gives me result “General”, I am puzzled why is that although formula is exactly the same.

here is the sample worksheet.
Lookup Functions.xls
ABCDEFGH
1PartNumberC-321
2FieldNameQuantity
3Value298
4General
5PartsDatabase
6DivisionDescriptionQuantityCostTotalCostRetailGrossMarginNumber
74GangleyPliers57\$10.47\$596.79\$17.9571.4%D-178
83HCABWasher856\$0.12\$102.72\$0.25108.3%A-201
93FinleySprocket357\$1.57\$560.49\$2.9587.9%C-098
1026"Sonotube86\$15.24\$1,310.64\$19.9530.9%B-111
114Langstrom7"Wrench75\$18.69\$1,401.75\$27.9549.5%D-017
123ThompsonSocket298\$3.11\$926.78\$5.9591.3%C-321
131S-Joint155\$6.85\$1,061.75\$9.9545.3%A-182
142LAMFValve482\$4.01\$1,932.82\$6.9573.3%
Row-and-Column Lookup

Thanks

### Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},\$Z\$1:\$Z\$99,\$Y\$1:\$Y\$99),2,False) to lookup Y values to left of Z values.

#### srizki

##### Well-known Member
I just copy and paste format and it is working fine. Thanks for looking my post.

Replies
7
Views
243
Replies
10
Views
407
Replies
8
Views
278
Replies
0
Views
186
Replies
1
Views
162

1,141,136
Messages
5,704,485
Members
421,353
Latest member
jekoxien15

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

### Which adblocker are you using?

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

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