+ Reply to Thread
Results 1 to 7 of 7

vlookup probelm, cant see to know what wrong with the formula

  1. #1
    Registered User
    Join Date
    07-31-2017
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    3

    vlookup probelm, cant see to know what wrong with the formula

    hi, i have been trying to solve my vlookup formula however i couldnt find what wrong with it.

    basically what im trying to do is that when the user input the timing, there will be animal output in another cell. the reason is that I will like to do dependent drop downlist.


    here is the array, E7:F24:

    10:30:00 Ant
    11:00:00 Bear
    11:30:00 Cat
    12:00:00 Dolphin
    12:30:00 Elephant
    13:00:00 Fox
    13:30:00 Gorilla
    14:00:00 Horse
    14:30:00 Iguana
    15:00:00 Jaguar
    15:30:00 Kangaroo
    16:00:00 Leopard
    16:30:00 Mouse
    17:00:00 Scorpion
    17:30:00 Octupus
    18:00:00 Peguin
    18:30:00 Tiger
    19:00:00 Rabbit

    customer will select timing in the cell V4. In cell BG3=V4 (the same timing of the user selected) while the below cell, BG4 = BG3+0.5/24 (interval of 30mins), BG5 =BG4+0.5/24 and so on. the lookup formula will be right beside BG column

    this is my formula for vlookup: =VLOOKUP(BG3,Lists!E7:F24,2,TRUE)

    and why is the outcome is repetetive?????

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: vlookup probelm, cant see to know what wrong with the formula

    When you copy that formula down the range for the lookup table will change. Try it this way:

    =VLOOKUP(BG3,Lists!$E$7:$F$24,2,TRUE)

    I'm not sure how this relates to dependent drop-downs, however.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-31-2017
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    3

    Re: vlookup probelm, cant see to know what wrong with the formula

    hi pete, thanks for replying.


    anyway in terms of dragging down the formula is not the problem.

    when I manual write the time, I could not get the correct vlookup output however when i use it a formula it will become #na.

    for example:

    BG3: 10:30
    BG4 = BG3+0.5/24 : 11:00

    the output should be Bear, however the output was #NA

    however if i manual write 11:00 in BG4 i can get Bear

    i check the format of the array and the cell for the input is all the same. in time format

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: vlookup probelm, cant see to know what wrong with the formula

    Use this:

    =VLOOKUP(ROUND(1440*BG3,0)/1440,Lists!$E$7:$F$24,2,FALSE)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: vlookup probelm, cant see to know what wrong with the formula

    Problem is likely caused by rounding differences
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  6. #6
    Registered User
    Join Date
    07-31-2017
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    3

    Re: vlookup probelm, cant see to know what wrong with the formula

    Omgggggg, thanks you very muchhhhhhhh. Knew it i got to do with the calculation. Thanks so much glen and kev. Great help

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: vlookup probelm, cant see to know what wrong with the formula

    You're welcome.

+ 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. What's wrong with this formula ? Vlookup if
    By fmeci in forum Excel General
    Replies: 3
    Last Post: 07-16-2014, 08:18 AM
  2. [SOLVED] What is wrong in this Vlookup formula?
    By zecuboy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2013, 02:39 PM
  3. [SOLVED] What wrong in array formula-vlookup & Match
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-14-2013, 01:59 PM
  4. [SOLVED] Vlookup Problem
    By Darren1984 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-25-2012, 10:10 AM
  5. Probelm in calculating formula in excel vba
    By gamaz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2010, 12:55 PM
  6. VLookup...Wrong Formula?
    By Tom K in forum Excel General
    Replies: 13
    Last Post: 01-02-2008, 02:16 PM
  7. [SOLVED] What wrong with VLOOKUP formula
    By TARZAN in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2005, 07:06 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