+ Reply to Thread
Results 1 to 6 of 6

Select specific only fields in data

  1. #1
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Select specific only fields in data

    Hi all

    I need some assistance in tidying some data...

    in the attached example you can see that members have a physical address only, some have a po box only and some have both...

    I need to removed those with both and only have the physical address, however some have their email and phone information against the po box address..

    I guess I need something to select the member number, their physical address (where they have a physical address and a po box), OR they have a po box only - AND their contact information.....

    It is easier to explain if you have a look at the attachment...

    TIA

    Shaz
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select specific only fields in data

    Hi shaz

    In your Sample File, for duplicates, the PO Address ALWAYS preceeds the Street Address. Will this ALWAYS be the case?

    Row\Col
    A
    B
    C
    D
    E
    1
    CURRENT
    2
    Employer Number Registered Name Addr1 Title Email MTAA
    11
    150231 Employer9 PO BOX 63 Mr xxauto.com
    12
    150231 Employer9 Highland Fair No Email
    19
    150265 Employer16 PO BOX 56 Mr xxauto.com
    20
    150265 Employer16 4-6 Glenridding Rd No Email
    29
    150309 Employer31 PO BOX 2053 Mr xxauto.com
    30
    150309 Employer31 OXFORD STREET Mr No Email
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Select specific only fields in data

    Jaslake

    Thanks - apologies for not getting back sooner - 3 day weekend....

    I believe that the PO Box will always precede the address...

    rgds

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select specific only fields in data

    Hi shaz

    This Code appears to do as you require and assumes this...it can be modified to NOT assume...
    for duplicates, the PO Address ALWAYS precedes the Street Address
    Please Login or Register  to view this content.
    Last edited by jaslake; 03-09-2015 at 06:01 PM.

  5. #5
    Forum Contributor
    Join Date
    12-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Select specific only fields in data

    jaslake

    Thanks so much - works a treat...

    just out of curiosity and in case anyone else may wish to know....

    how can it be modified to NOT assume

    rgds

    shaz

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Select specific only fields in data

    Hi shaz

    For this
    how can it be modified to NOT assume
    Try this
    Please Login or Register  to view this content.

+ 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. Importing data into specific fields of a spreadsheet...?
    By jsaviator in forum Excel General
    Replies: 5
    Last Post: 08-27-2013, 07:50 PM
  2. Arrange Raw Data to delete specific fields
    By maxutility in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2012, 02:09 PM
  3. Replies: 0
    Last Post: 06-09-2011, 10:31 AM
  4. automatic import of data into specific fields
    By Intern13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2010, 08:15 PM
  5. Hiding Specific Fields on Pivot Table Fields
    By branco in forum Excel General
    Replies: 7
    Last Post: 03-26-2010, 09:39 AM

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