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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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