+ Reply to Thread
Results 1 to 3 of 3

Very basic macro question (find and append)

  1. #1
    Registered User
    Join Date
    04-27-2007
    Posts
    6

    Very basic macro question (find and append)

    What I need is a macro that will search for a given string in Column A, then enter a value into Column B for rows where that string is found. For example, this macro could turn this:

    Please Login or Register  to view this content.
    into this:

    Please Login or Register  to view this content.
    Sorry for the newbie question, but my Google-fu is lacking today. Your help is appreciated.

  2. #2
    Registered User
    Join Date
    01-29-2007
    Posts
    92
    Try pasting this code into one of the cells and then dragging the formula to all the cells. Note that A6 would the the cell to the left of the cell in column b (in the same row). You can replace Foo with other things you would like to find.

    =IF(A6="Foo","Yes","")

    hope that helps

    Schwizer

  3. #3
    Registered User
    Join Date
    04-27-2007
    Posts
    6
    Schwizer,

    Thanks, that works for the time being.

    What I actually have is a spreadsheet of stuff organized by city, and I need to add a column for "region". New York is always going to be in the Northeast region, Miami in the Southeast, and so on, so I'd like a macro that searches for "City X" in Column C and puts "Region X" in Column D. The cities and regions are always going to be in columns C and D, respectively. This needs to be done in multiple documents, which is why it'd be great to have it in macro form.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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