+ Reply to Thread
Results 1 to 2 of 2

Copy data from column that begins with data to new sheet

  1. #1
    Snapdaddy
    Guest

    Copy data from column that begins with data to new sheet

    Hello,

    I'm currently trying to copy data from a row in excel based on what's
    in colum B to it's own sheet. I've found some good macros but need some
    help on how to modify it to fit my needs.

    The one macro that is almost perfect is AdvFilterRepFiltered.zip on
    http://www.contextures.com/excelfiles.html#CondFormat

    That being said,

    Column B consists of something like this:
    3960020262
    3960020263
    4550050473
    4550050474

    I want to be able to sort 39600 and 45500 to their own sheet. The macro
    I mentioned above works great but it will sort everything to it's own
    sheet that doesnt match exactly. I need it to only look the first 5
    numbers and copy the rows with matching numbers into a new sheet. If
    anyone can shed some light on this it would be much appreciated.

    Thanks
    Jeremiah


  2. #2
    Dave Peterson
    Guest

    Re: Copy data from column that begins with data to new sheet

    How about adding another column, then extract the first 5 digits of that value.

    =left(B2,5)
    (if they're always 10 characters)

    or
    =left(text(b2,rept("0",10)),5)

    or something????

    Then use that column to extract the data.

    Snapdaddy wrote:
    >
    > Hello,
    >
    > I'm currently trying to copy data from a row in excel based on what's
    > in colum B to it's own sheet. I've found some good macros but need some
    > help on how to modify it to fit my needs.
    >
    > The one macro that is almost perfect is AdvFilterRepFiltered.zip on
    > http://www.contextures.com/excelfiles.html#CondFormat
    >
    > That being said,
    >
    > Column B consists of something like this:
    > 3960020262
    > 3960020263
    > 4550050473
    > 4550050474
    >
    > I want to be able to sort 39600 and 45500 to their own sheet. The macro
    > I mentioned above works great but it will sort everything to it's own
    > sheet that doesnt match exactly. I need it to only look the first 5
    > numbers and copy the rows with matching numbers into a new sheet. If
    > anyone can shed some light on this it would be much appreciated.
    >
    > Thanks
    > Jeremiah


    --

    Dave Peterson

+ 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