assigning names based on state and industry PLEASE HELP

alinka

Board Regular
Joined
Oct 30, 2002
Messages
70
Hi excel geniuses!

I have a problem. I have a list which has a state, region, industry and assigned person for each state/industry.

The list goes like this:

STATE REGION FINANCE RETAIL MANUF
AL EAST Jack Joe Michelle
CA West Ken Ken Ken

Then I have a separate sheet where there's a column for a company name, state code, and industry.

What I want to do is add another column with Assigned Person based on the two factors: STATE and INDUSTRY.

How can I do this quickly? Is there a way to automate this? THANKS SO MUCH
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
Re: assigning names based on state and industry

Have you looked into using a pivot table for this? I'm not an expert in them, but it seems like using one would save you a lot of headaches. You could create one, and then move fields around until you get it to look the way you want. Hope that gives you some ideas.
 

alinka

Board Regular
Joined
Oct 30, 2002
Messages
70
Re: assigning names based on state and industry

Thanks, but I'm not sure how to do that, especially since I have two separate sheets.
 

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,459
Like this?
Book1
ABCDEFG
2StateRegionFinanceRetailManufALJoe
3ALJackJoeMichelleRetail
4CAKenKenKen
Sheet1


Here's the formula,

=INDEX($C$3:$E$4,MATCH(F2,$A$3:$A$4,0),MATCH(F3,$C$2:$E$2,0))
 

alinka

Board Regular
Joined
Oct 30, 2002
Messages
70
this formula worked perfect. THANKS SO MUCH. Does anyone know how to turn this into a macro button?

Thanks!!!
 

Forum statistics

Threads
1,147,691
Messages
5,742,661
Members
423,746
Latest member
Joaogomes

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
Top