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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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