+ Reply to Thread
Results 1 to 5 of 5

Cut and paste PO Box numbers found within physical address

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Eastern Idaho
    MS-Off Ver
    Excel 2004
    Posts
    29

    Cut and paste PO Box numbers found within physical address

    I have a column of data cells containing both the physical address (first) and PO Box number (last) separated by a comma.
    I need to cut the PO box number and paste it into a cell in a separate column alongside the physical address.
    Thanks,
    Newel

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Cut and paste PO Box numbers found within physical address

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-20-2013
    Location
    Eastern Idaho
    MS-Off Ver
    Excel 2004
    Posts
    29

    Re: Cut and paste PO Box numbers found within physical address

    EXCEL Before and After sheets are attached for "Cut and paste PO Box numbers found within physical address" request.
    Thanks,
    Newel
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Cut and paste PO Box numbers found within physical address

    as long as only one ,
    =IF(ISNUMBER(FIND(",",A2)),LEFT(A2,FIND(",",A2)-1),A2) and =IF(ISNUMBER(FIND(",",A2)),MID(A2,FIND(",",A2)+1,255),A2)

  5. #5
    Registered User
    Join Date
    08-20-2013
    Location
    Eastern Idaho
    MS-Off Ver
    Excel 2004
    Posts
    29

    Re: Cut and paste PO Box numbers found within physical address

    Dear Martin in London Town (what Mark Knopfler called it in Sultan of Swing),

    Works like a charm! Problem solved!

    Thank you, thank YOU, THANK YOU!

    Newel

+ 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. VBA Code Help - If text found, send email to corresponding address.
    By spoliquin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 12:04 PM
  2. Replies: 2
    Last Post: 07-08-2013, 10:50 PM
  3. Separating physical from mailing address
    By nander in forum Excel General
    Replies: 3
    Last Post: 04-19-2011, 01:44 AM
  4. Excel 2007 : List of Cell Address for multiple data found
    By centurion210 in forum Excel General
    Replies: 7
    Last Post: 12-17-2009, 02:04 PM
  5. How to get the address of the cell found our by vlookup
    By dilettante in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2006, 10:10 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