+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP + RAND glitch?

  1. #1
    Registered User
    Join Date
    02-07-2015
    Location
    San Francisco, CA
    MS-Off Ver
    2010?
    Posts
    4

    Lightbulb VLOOKUP + RAND glitch?

    Hi all! Greetings from San Francisco, CA. Got into Excel during a brief stint as an investment banker, enjoyed creating models ever since. Looking forward to posting and solving problems on here.

    Joined to ask a question about using VLOOKUP in conjunction with RAND() values. This Google sheet should illustrate my issue: https://docs.google.com/spreadsheets...7H8/edit#gid=0

    Shouldn't the VLOOKUP function in A13 return the alphabetical value in the (X, Y) position in the table? I'm sometimes getting back numeric values so I think something's wrong.

    Having this same problem in my desktop versions of Excel so don't think it's a Google Doc issue.

    Thanks in advance and looking forward to meeting y'all.

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: VLOOKUP + RAND glitch?

    Hello
    you should use this
    =VLOOKUP($A$10,$B$3:$G$7,$B$10+1,TRUE)
    because if you have 1 in Rand X then vlookup would give the value from the C column itself so the column number should be +1
    Hope it helps
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: VLOOKUP + RAND glitch?

    Try this instead...
    =index($C$3:$G$7,$A$10,$B$10)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-07-2015
    Location
    San Francisco, CA
    MS-Off Ver
    2010?
    Posts
    4

    Re: VLOOKUP + RAND glitch?

    Wow rookie mistake. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem for rand(), between, vlookup?
    By Dobe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-02-2014, 02:26 PM
  2. Vlookup with rand()= #NA?
    By HPIMICHAEL02 in forum Excel General
    Replies: 4
    Last Post: 12-14-2012, 04:03 AM
  3. Help please - Excel glitch...
    By SW1 in forum Excel General
    Replies: 3
    Last Post: 05-22-2011, 03:53 AM
  4. SUM GLITCH, What can I do?
    By n2lectual in forum Excel General
    Replies: 5
    Last Post: 03-21-2008, 02:43 PM
  5. HEX2DEC glitch
    By jamie_eurotherm in forum Excel General
    Replies: 0
    Last Post: 03-03-2005, 12:28 PM

Tags for this Thread

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