Populate IAW rules - desired outcome detailed at bottom of table

JimmyG64

New Member
Joined
Nov 16, 2018
Messages
4
a/1bcdefghij
2LocationRuleLocationResidence stateWork StateCompliance State
3
123​
Use residence state
123​
NYCT
4
234​
Use Work State
234​
NYNY
5
121​
Use Residence State
121​
OHFL
6
1212​
Use Work State
1212​
OHTN
7
33​
Use Work State
33​
FLAK
8
45​
Use Residence State
45​
MOSD
123​
NDND
Desired outcome: Column J is populated by either residence state or work state, depending on the rule in columns b and c for the specific location. For example, J3 should populate with NY, J6 should populate with OH, and J11 should populate with OK
234​
FLPA
121​
OKIL
 

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.

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

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