Formula for category

Guest1995

New Member
Joined
Apr 18, 2018
Messages
1
Hello,

I have been trying to use HLookup to determine the category name with a table which isn't working out for me. I'm not too good using index and match. Can anyone help me out?



Thanks,

ABCDE
1OFFICETYPE OF OPERATION

2AIPORT T=HLOOKUP(A2,D2:E4,1) =N/AMARINEAERO
3ALTAMIRAALTAMIRAAIRPORT T
4MEXICO DFMEXICO DF

<tbody>
</tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the MrExcel board!

Assuming each office can only appear once in columns D:E, try this, copied down.

Excel Workbook
ABCDE
1OFFICETYPE OF OPERATION
2AIRPORT TAEROMARINEAERO
3ALTAMIRAMARINEALTAMIRAAIRPORT T
4MEXICO DFAEROMEXICO DF
Category
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,838
Members
449,471
Latest member
lachbee

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