Conditional Formating for: IF B1 contains THEN A1 displays specific syntax

RRico

Board Regular
Joined
Nov 3, 2004
Messages
98
Looking to create a conditional formatting code that would allow the following to occur:

IF the data in column B1 contains "//UDMN" THEN populate column A1 with state code "MN"

I have a list of several (really it's a table) that has this listed out where it shows others such as "//CEFL" = FL, etc... etc...

Looking to write a code that either would pull from that table or a code that I would just manually populate and then drag through column-A (if that makes sense).

Any ideas on best approach and / or what the conditional formatting code would look like?

Thank you!
Rick
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
more than about ten conditions and to do it often would suggest VBA that watches a range and then updates as required, or a simple VLookup maybe
 
Upvote 0

Forum statistics

Threads
1,216,115
Messages
6,128,919
Members
449,478
Latest member
Davenil

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