+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: labeling pairs of numbers

  1. #1
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    labeling pairs of numbers

    is it possible to set labels to pairs? for instance, I want the following pairs to be named the number "1":

    00
    19
    28
    37
    46
    55
    05
    14
    23
    69
    78
    Last edited by Jordans121; 03-03-2010 at 12:14 AM.

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: labeling pairs of numbers

    Pardon?....

  3. #3
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    Re: labeling pairs of numbers

    When I put a certain pair in a column(00) I want another column to say "1"

  4. #4
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    844

    Re: labeling pairs of numbers

    It's still unclear. Can you please explain what you want. Post an example work with what you have and what you want.

  5. #5
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: labeling pairs of numbers

    When I put a certain pair in a column(00)
    Do you mean "when you enter one of the listed values in a cell"?? Then you want another cell on the same row to display a "1"??

    With a list of your values in E1 to E11, and your search term in B2

    =IF(ISBLANK(B1),"",IF(ISNA(MATCH(TEXT(B1,"00"),E1:E11,0)),"",1))

  6. #6
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    Re: labeling pairs of numbers

    Example of what I want in attachment
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: labeling pairs of numbers

    try this in J4, copy right and down

    =IF(SUM((($O$4:$O$14&""=TEXT(F4,"00"))*1)+(($P$4:$P$14&""=TEXT(F4,"00"))*2)+(($Q$4:$Q$14&""=TEXT(F4,"00"))*3)+(($R$4:$R$14&""=TEXT(F4,"00"))*4)+(($S$4:$S$14&""=TEXT(F4,"00"))*5))=0,"not found",INDEX($O$1:$S$1,SUM((($O$4:$O$14&""=TEXT(F4,"00"))*1)+(($P$4:$P$14&""=TEXT(F4,"00"))*2)+(($Q$4:$Q$14&""=TEXT(F4,"00"))*3)+(($R$4:$R$14&""=TEXT(F4,"00"))*4)+(($S$4:$S$14&""=TEXT(F4,"00"))*5))))

  8. #8
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    Re: labeling pairs of numbers

    Can you please send me an example?

  9. #9
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    Re: labeling pairs of numbers

    it is saying "not found"

  10. #10
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    844

    Re: labeling pairs of numbers

    In J4, and copy to right
    ="V"&(N(NOT(ISNA(MATCH(F4,$O$4:$O$14,0))))*1+N(NOT(ISNA(MATCH(F4,$P$4:$P$14,0))))*2+N(NOT(ISNA(MATCH(F4,$Q$4:$Q$14,0))))*3+N(NOT(ISNA(MATCH(F4,$R$4:$R$14,0))))*4+N(NOT(ISNA(MATCH(F4,$S$4:$S$14,0))))*5+N(NOT(ISNA(MATCH(RIGHT(F4,1)&LEFT(F4,1),$O$4:$O$14,0))))*1+N(NOT(ISNA(MATCH(RIGHT(F4,1)&LEFT(F4,1),$P$4:$P$14,0))))*2+N(NOT(ISNA(MATCH(RIGHT(F4,1)&LEFT(F4,1),$Q$4:$Q$14,0))))*3+N(NOT(ISNA(MATCH(RIGHT(F4,1)&LEFT(F4,1),$R$4:$R$14,0))))*4+N(NOT(ISNA(MATCH(RIGHT(F4,1)&LEFT(F4,1),$S$4:$S$14,0))))*5)/IF(LEFT(F4,1)=RIGHT(F4,1),2,1)
    You also need to make sure the numbers in the table are formatted as text. The attached has the table formatted as text. The pairs are auto-generated based on the number entered into the A column.

    teylyn's formula does not take the re-arranging of the digits into account. Using the pair of 15, it will look for 15 but not 51 in the table.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    Re: labeling pairs of numbers

    OK. Thanks. This is what I needed

  12. #12
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    Re: labeling pairs of numbers

    How do I paste the formula. I keep gettin V0
    Last edited by Jordans121; 03-03-2010 at 12:01 AM.

  13. #13
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    Re: labeling pairs of numbers

    Can you paste the formula for 5,000 rows for me? because I dont know how to do it. Thanks

  14. #14
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: labeling pairs of numbers

    Jordans, the formula I supplied works in the file that you posted.

  15. #15
    Forum Contributor
    Join Date
    01-21-2010
    Location
    Chicago,ILLinois
    MS-Off Ver
    Excel 2007
    Posts
    164

    Re: labeling pairs of numbers

    yes it works but I dont know how to paste it

+ 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.2.0