+ Reply to Thread
Results 1 to 1 of 1

Need Help Creating a VBScript or Macro to create a column & fill out with data from others

  1. #1
    Registered User
    Join Date
    02-02-2018
    Location
    Florida
    MS-Off Ver
    2013 Pro plus
    Posts
    1

    Need Help Creating a VBScript or Macro to create a column & fill out with data from others

    I've been looking all over for a solution online with no luck, hoping you can help me. I have a the following spreadsheet:

    Column A
    Header: Work Location City
    Redwood City
    Sacramento
    Visalia
    Woodland Hills
    Atlanta
    Miami
    Louisville
    St. Louis

    Column B
    Header: Work Location State
    Redwood City
    Sacramento
    Visalia
    Woodland Hills
    Atlanta
    Miami
    Louisville
    St. Louis

    Column C
    Header: Region
    Northwest
    Northwest
    Southwest
    Southwest
    South
    Florida
    Central
    Missouri

    I'm trying to create a script that automates column C. For every state other than California, it needs to add the name of the region listed there (Ex. Georgia is on Region South, Florida is on Region Florida, Kentucky is on Central, Missouri is on Missouri) For California it gets trickier, it needs to look at column A and based on the city it's either going to be on Northwest or Southwest.

    So basically the script would first create a column next to the Work Location State, then create a header for it called "Region", then fill it out accordingly (this is just an example, the spreadsheet will have 20,000+rows and other states)

    Hoping you can help me. Unfortunately this is above my excel knowledge level and I've hit a wall. Thanks!!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 07-15-2016, 06:45 AM
  2. how to code a macro for creating a table in word and fill the colums with data ?
    By giriprasad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2012, 11:45 PM
  3. Creating Macro to create new worksheets and prefill some data
    By hotshot24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2012, 04:42 PM
  4. Creating Macro to fill data based on another column
    By jbk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2012, 02:57 PM
  5. Macro to create sheets and fill in the data
    By strippy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2011, 02:04 AM
  6. Replies: 1
    Last Post: 09-07-2010, 01:15 PM
  7. Vbscript to create VBA?
    By Jimbeau in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-02-2008, 03:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1