ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   adding columns based on lists (https://www.excelbanter.com/excel-programming/341893-adding-columns-based-lists.html)

Craig

adding columns based on lists
 
I have a data cleaning function that I perform regularly and would like to
automate. The tables that I work with have a "Phone Number" field. I want
to automatically add 2 new fields called "Prefix" and "Suffix" in the first
empty columns, and based on the echange of the phone number, populate the 2
new fields. For records with exchanges in my list of 6 exchanges, I want one
set of values to be returned, and for all other records, I want a different
set of values to be returned. Can somebody please help me figure out how to
do this?

Thanks,
Craig


All times are GMT +1. The time now is 05:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com