+ Reply to Thread
Results 1 to 8 of 8

Key Numbers

  1. #1
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60

    Key Numbers

    Key Numbers
    Need formula or is a Macro needed in this excelsheet?...
    OK I have in A-Column and B-Column around 50 3 digit numbers--
    singles, doubles, triples,and reverse 3 digit numbers and
    sometimes duplicates....
    A-column-B-column
    123------556
    223------489
    003------543
    444------592
    345------879
    621------671
    809------890
    567------800
    234------338
    321------666
    ---ETC---
    What I am trying to do in COLUMNS D_E_F_G_H_I_J_K_L_M
    which are listed as---------------0-1-2-3-4-5-6-7-8-9
    I want all the numbers that have a zero in them to be
    under the D column which is zero--0..FROM Columns A-&-B--only.
    Example ---
    D-Column--E-Column
    -0--------1-------
    003------123
    809------621
    890------321
    800------671
    Hope I explained it right..and put this question in the right place.
    Thank you
    Bob in Michigan

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Key Numbers

    Bob, questions...

    a) if duplicates exist are all instances to be listed ?

    b) is VBA viable ?

    I mention b) as formula based approach is likely to prove inefficient.

  3. #3
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60

    Re: Key Numbers

    yes all numbers to be listed dups and all..

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Key Numbers

    Well I'd opt for VBA ... this would be one approach (not particularly elegant though)

    Please Login or Register  to view this content.
    The above assumes numbers to be in A2:B50, 0-9 listed in C1 to L1 with numbers to be listed in rows beneath.

    (it's not clear if A:B are numbers stored as text or numbers with 000 number format... the above should account for either)
    Last edited by DonkeyOte; 11-19-2009 at 10:49 AM. Reason: separated variable declarations by type

  5. #5
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60

    Re: Key Numbers

    we will try it out in a couple of hours..
    Thank you
    Will let you know later..
    And thanks again
    Bob in Michigan

  6. #6
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60

    Re: Key Numbers

    It is working BUT it gives quite a few of extra numbers...
    like I have only one 333 and it gives me three of them..
    And in a few other columns it will list a number more than once...

    I know that I have Dups in the columns BUT it will still
    list a single number more than once....
    hope I said it right...
    Bob

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Key Numbers

    I made some edits possibly after you took the code - try the version above as it stands now - it should account for 333 etc...

  8. #8
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60

    Re: Key Numbers

    DonkeyOte

    Hey that did the trick. Thank you

    Bob from Michigan

+ 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