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,

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]OFFICE[/TD]
[TD]TYPE OF OPERATION[/TD]
[TD][/TD]
[TD]

[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]AIPORT T[/TD]
[TD]=HLOOKUP(A2,D2:E4,1) =N/A[/TD]
[TD][/TD]
[TD="align: right"]MARINE[/TD]
[TD="align: right"]AERO[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ALTAMIRA[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]ALTAMIRA[/TD]
[TD="align: right"]AIRPORT T[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]MEXICO DF[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]MEXICO DF[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

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)
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,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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