+ Reply to Thread
Results 1 to 14 of 14

match 3 hold digits

  1. #1
    stewart08
    Guest

    match 3 hold digits

    very simple, I would like to know how the match function could be used example:

    125
    457
    706

    match 457 = 1


    any ideas

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    Quote Originally Posted by stewart08
    very simple, I would like to know how the match function could be used example:

    125
    457
    706

    match 457 = 1


    any ideas
    =COUNTIF(A1:A3,457)

  3. #3
    stewart08
    Guest
    thanks close,
    but need the number to reference from a row/colum value and in a un-ordered way.

    A1
    475


    125
    457
    706

    match "A1" = 1

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    I'm not clear what you are looking for

    Could you give an example of what inputs give what output, or attach a sample spreadsheet.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    One guess

    See enclosed
    //Ola
    Attached Files Attached Files

  6. #6
    stewart08
    Guest
    heres a example:

    http://img403.imageshack.us/my.php?image=figurelz9.jpg

    the formula takes the nums 812 and trys to find a match which is 128 = 1

    remember doubles are also used i.e 122 matches 212 = 1

    mikerickson, the input is match 891 via 456, 981, 876 =1


    hope this helps
    Last edited by stewart08; 04-13-2008 at 06:44 AM.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695
    Assuming A1 contains a 3 digit number and B1:B10 also has 3 digit numbers this will count the number of "matches"

    =SUMPRODUCT(--(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1:B10,MID(A1,1,1),"",1),MID(A1,2,1),"",1),MID(A1,3,1),"",1)=""))

  8. #8
    stewart08
    Guest
    thanks daddylonglegs, this formula works beautifully.
    once again this forum is a "life safer of time"...which I'm grateful for

  9. #9
    stewart08
    Guest
    daddylonglegs, one last word. can three formulas be futheir developed to match double, exact and un-ordered matches (see below).
    if it's possible it will grately help in shorting the humanly processing time down.

    find 568

    789
    644
    632
    782
    865
    061

    (cell1) un-ordered: 1
    (cell2) doubles :
    (cell3) exact :

    -------------------------

    find 464

    789
    644
    632
    782
    865
    061

    (cell1) un-ordered:
    (cell2) doubles : 1
    (cell3) exact :

    -------------------------

    find 632

    789
    644
    632
    782
    865
    061

    (cell1) un-ordered:
    (cell2) doubles :
    (cell3) exact : 1
    Last edited by stewart08; 04-13-2008 at 10:03 AM.

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695
    I'm not sure I understand what a "double" is. Is that because there are 2 4s in 644?

  11. #11
    stewart08
    Guest
    yes thats right any 3 numbers with two matching ones i.e. 776 767 677.

    also If its possible could you add the OFFSET function which the matching size can be changed i.e.

    (cell1) match num:
    534

    (cell2) match size:
    3

    (5 rows)nums array:
    678
    009
    345
    607
    986

    (cell) find un-ordered match = 1
    (cell) find double match =
    (cell) find exact match =

    hope its not to complex but this formula could save me alot of time...
    Last edited by stewart08; 04-13-2008 at 10:45 AM.

  12. #12
    stewart08
    Guest
    if you need any more information let me know....

  13. #13
    stewart08
    Guest

    find matchs

    Hi, Could three formulas be created to match double, exact
    and un-ordered matches (with a match "OFFEST" function).

    hope it's not to complex as this formula could save me a life time of calculating...
    (input-cell1) match number:
    534

    (input-cell2) match size:
    3

    (5 rows)nums array:
    678
    009
    345
    607
    986

    (formula) find un-ordered match = 1
    (formula) find double match =
    (formula) find exact match =

    other examples:
    match double --------------------------------------------------------------------
    (input-cell1) match number:
    090

    (input-cell2) match size:
    5

    (5 rows)nums array:
    678
    009
    345
    607
    986

    (formula) find un-ordered match =
    (formula) find double match = 1
    (formula) find exact match =

    match exact --------------------------------------------------------------------
    (input-cell1) match number:
    607

    (input-cell2) match size:
    5

    (5 rows)nums array:
    678
    009
    345
    607
    986

    (formula) find un-ordered match =
    (formula) find double match =
    (formula) find exact match = 1
    Last edited by stewart08; 04-13-2008 at 03:25 PM.

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Threads merged.

+ 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