Index match column lookup

collegeitdept

Board Regular
Joined
Nov 14, 2008
Messages
185
Hi,

I'm trying to write a formula, either Index match, or sumproduct, that will look for a value (find a store location number) then give me its category (first value in its respective column)).

IE:


Blue Green Red Yellow White
107 104 101 102 401
117 110 103 105 402
118 114 111 106 403
129 121 116 115 404
134 122 119 120 405
136 126 123 137 406
162 128 135 152 407
174 130 142 154 408
175 131 143 157 409
1163 141 151 163 410
148 154 167 412
159 170 168 414
173 171 415
177 416
3081 417


(notice that green is actually a merged column)... i CANNOT unmerge it because it is an exported list from a database... in fact there are multiple merged columns but they do not at all affect the data below.


Example:
Store: 116
Result (Category): Red

Thanks.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Try,

H2 = Store, 116
A1:F1 = Category,
A2:F16 = Data

=INDEX(A1:F1,SMALL(IF(A2:F16=H2,COLUMN(A1:F1)-MIN(COLUMN(A1:F1))+1),1))

Must hit CTRL+SHIFT+ENTER, not just ENTER.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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