+ Reply to Thread
Results 1 to 11 of 11

LOOKUP Formula not returning correct answer

  1. #1
    Registered User
    Join Date
    04-06-2009
    Location
    USA
    MS-Off Ver
    Office 2007
    Posts
    20

    LOOKUP Formula not returning correct answer

    Ok I’m going to try to ask 2 questions and hopefully they are answerable and doable.

    Once again I’m at it again with my sox spreadsheet. What I’m trying to do now is I have a drop down menu that allows me to pick any team that we can face in the season. Once that is chosen what I want to show is the individual stats against that team. Now right now I’m just trying to work out the formula to see if it works.

    The formula itself is half working. For some reason some of the selections aren’t showing up like there suppose to do.

    Here is the formula I’m trying to work.

    Please Login or Register  to view this content.
    Now each team should have its own number but when I select Florida it comes up as 1. Am I not seeing something?

    And if I’m not seeing it once it's corrected, Can I make it bring up two cells from a different sheet by using the CONCATENATE formula? Like

    Please Login or Register  to view this content.
    Hopefully this is solvable.
    Attached Files Attached Files
    Last edited by VBA Noob; 04-12-2009 at 05:50 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: LOOKUP Formula not returning correct answer

    The LOOKUP() function requires that your lookup list be in ascending alphabetical order.. which your list is not...

    but since you are returning numbers that happen to be based on position of your lookup value within the lookup list, you can use Match() instead.

    Try:

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-06-2009
    Location
    USA
    MS-Off Ver
    Office 2007
    Posts
    20

    Re: LOOKUP Formula not returning correct answer

    thanks for the advice on the Match. btw, i took your advice to make life easier, i put them in alpha order. BUT, (lol) it's not letting me combine two cells together like i want it. Is it not possible or is it and i'm just (still)stupid?

    I'm trying to do this.

    Please Login or Register  to view this content.
    Is there another way?

  4. #4
    Forum Contributor
    Join Date
    03-31-2009
    Location
    Childers QLD, Australia
    MS-Off Ver
    Excel 2003, 2007 & 2013
    Posts
    128

    Re: LOOKUP Formula not returning correct answer

    Hi,

    I am not using 2007 but 2003. The attached amendment should still work for you.

    I believe using a table for lookups works better, particularly when you need to add or delete plus sort.

    See what you think.

    Cheers

    Tony
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-06-2009
    Location
    USA
    MS-Off Ver
    Office 2007
    Posts
    20

    Re: LOOKUP Formula not returning correct answer

    I think i'm not explaining enough. what i want is to have each cell "Home" "Away" "Total" "PCT" show the respected information from each team. The information i need to pull is on Scores Colum J.

    The numbers what just a test on how to do it.

    sorry for the confusion.

  6. #6
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: LOOKUP Formula not returning correct answer

    Quote Originally Posted by preferiti View Post
    thanks for the advice on the Match. btw, i took your advice to make life easier, i put them in alpha order. BUT, (lol) it's not letting me combine two cells together like i want it. Is it not possible or is it and i'm just (still)stupid?

    I'm trying to do this.

    Please Login or Register  to view this content.
    Is there another way?
    In this form, you should use LOOKUP not MATCH.

    If Baltimore is the only one to get that concatenantion, do an IF test for Baltimore, and exclude them from the LOOKUP.

  7. #7
    Registered User
    Join Date
    04-06-2009
    Location
    USA
    MS-Off Ver
    Office 2007
    Posts
    20

    Re: LOOKUP Formula not returning correct answer

    Baltimore isn't the only one to use the concatenantion, I just didn't want to write all of the formula's if it woudn't work.

  8. #8
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: LOOKUP Formula not returning correct answer

    Quote Originally Posted by preferiti View Post
    Baltimore isn't the only one to use the concatenantion, I just didn't want to write all of the formula's if it woudn't work.
    Then use two separate lookups and concatenate those.

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: LOOKUP Formula not returning correct answer

    Quote Originally Posted by preferiti View Post
    I think i'm not explaining enough. what i want is to have each cell "Home" "Away" "Total" "PCT" show the respected information from each team. The information i need to pull is on Scores Colum J.

    The numbers what just a test on how to do it.

    sorry for the confusion.
    You say you want to get information from Scores column J. Can you explain what you mean. In your example what should the result be in F4 and why?

  10. #10
    Registered User
    Join Date
    04-06-2009
    Location
    USA
    MS-Off Ver
    Office 2007
    Posts
    20

    Re: LOOKUP Formula not returning correct answer

    Quote Originally Posted by Bob Phillips View Post
    Then use two separate lookups and concatenate those.
    How would i go about that?


    Quote Originally Posted by daddylonglegs View Post
    You say you want to get information from Scores column J. Can you explain what you mean. In your example what should the result be in F4 and why?
    Well F4 would depend. If F3 is Tampa Bay Rays than F4 would be "1-2". If it was "Oakland Athletics" it would be "0-0."

    See what i mean?

  11. #11
    Registered User
    Join Date
    04-06-2009
    Location
    USA
    MS-Off Ver
    Office 2007
    Posts
    20

    Re: LOOKUP Formula not returning correct answer

    should i close the ? or...?

+ 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