+ Reply to Thread
Results 1 to 11 of 11

Formula not returning what I think it should

  1. #1
    Forum Contributor
    Join Date
    12-28-2006
    Location
    Houston, TX
    MS-Off Ver
    365
    Posts
    152

    Formula not returning what I think it should

    Okay, I'm attaching a screen shot that shows all the info... formula for the cell that I am looking for. The formula should take the info from validation lists in R13 & S13, and match them up in F3:O3 (T1Q2) & C6:C15 (T2Q2) and return the data in the intersecting cell into R9 (Where the formula is kept). In this instance, it should find 1 at I3 and the 4 at C15 and return NN to box R9... am I wrong?

    Thanks for the assistance.
    Attached Images Attached Images

  2. #2
    pinmaster
    Guest
    Hi,

    Try:

    =OFFSET(C3,MATCH(R13,C4:B15,0),MATCH(S13,D3:O3))

    or

    =INDEX(C3:O15,MATCH(S13,C3:C15,0),MATCH(R13,C3:O3,0))

    HTH
    Jean-Guy

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi both,

    As kingsolo is not using unqiue rand numbers then he's not always going to return NN

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Contributor
    Join Date
    12-28-2006
    Location
    Houston, TX
    MS-Off Ver
    365
    Posts
    152
    So, you're saying that this won't work, or I'm using the wrong formula? The numbers in the red columns change by game. As does the location of the information in the white table. So, I want excel to find the number in the row/column then return the intersection of the two. The numbers that it is looking for (R11-14 & S11-14) are all input via a validation drop list. The person using the sheet has to input this data to get the sheet to operate correctly.

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    It will work but may not return NN if the lookup finds another match e.g if

    This assumes the random numbers aren't unqiue as per the version I downloaded e.g if another number 1 in T1Q2 then it will lookup that value first

    VBA Noob

  6. #6
    pinmaster
    Guest
    Hi,

    If I am correct then T1Q2, T2Q2 ect... will have numbers from 0 to 9, representing the last digit of each football teams scores at the end of each quarter.

    here's a revised version of the INDEX formula:

    =INDEX(F6:O15,MATCH(S13,T2Q2,0),MATCH(R13,T1Q2,0))

    Regards
    Jean-Guy

  7. #7
    Forum Contributor
    Join Date
    12-28-2006
    Location
    Houston, TX
    MS-Off Ver
    365
    Posts
    152
    Yeah, I see what I was doing wrong now! Thanks! Do you always have to go column first when you are doing a match, or can you have the row first... not that it really matters other than my personal knowledge bank.

    Thanks for the help guys!

  8. #8
    pinmaster
    Guest
    Hi,

    Yes, always column first (to find the corresponding row num) and then row (to find the corresponding column number). Try this: select the cell with the formula then click on the "=" sign left of the formula bar to see the formula's parameters.

    Cheers
    Jean-Guy

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You might find this link helpful

    http://www.contextures.com/xlFunctio...tml#IndexMatch

    VBA Noob

  10. #10
    Forum Contributor
    Join Date
    12-28-2006
    Location
    Houston, TX
    MS-Off Ver
    365
    Posts
    152
    Thank you guys for your input. I stared at that formula parameter thing thill I thought my eyes were going to blow up last night, and didn't get that... oh well, like I said before, sometimes I feel like an idiot!

    Thanks again!

  11. #11
    pinmaster
    Guest
    Hi,

    You too?...hummm and I thought I was the only one . Anyway glad I could help!

    Cheers!
    Jean-Guy

+ 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