+ Reply to Thread
Results 1 to 21 of 21

Vlookup formula returns with False Result, How can I get the exact value ?

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Post Vlookup formula returns with False Result, How can I get the exact value ?

    Hi,

    I have been trying my best to get the activity code for each worker for each weekday. the formula is looking for the values ( activity codes) in another tab called TK_DB and in this tab there is data for the whole week showing the activities done by the workers but not as groups not individuals. the formula is showing the exact value for only one day to track the daily performance of each worker against his activity. I have attached the file for your reference. the problem i'm facing is that the formula is working perfect for only the first day of the week and then it returns FALSE which is a big question mark in my head and I can't find answer for it.


    Thank you in advance.


    Midoya

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    Welcome to the forum. I think your attachment has failed.

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    Hi Midoya,

    Welcome to the forum.
    I have attached the file for your reference.
    you missed it

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    Hi Guys,

    Thank you for your quick replies. I'm re-attaching the file but unfortunately, its size is 1.3 MB and hence it not possible to upload it. if any one has e-mail , I can send it to him.

    Midoya

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    Surely the file size will get reduced to less than 1 MB if you add it in zip.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?


  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    you can try this one

    =IFERROR((IF(MATCH($G$2,TKDB_Date,0),(VLOOKUP(B5,TK_DB!$B$2:$U$3000,8,FALSE)))),"")

    or

    another function

    =index($I$2:$I$3000,match($g$2&B5,TKB_DATE&EMPNUMBER,0)) -ctrl+shift+enter

    or look on sumproduct -since i will be logging out now.

  8. #8
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    Hi vlady,

    Thanks alot for your answer and quick reply . It's working woth me but I think the formula is only tracking same activity of first day and it's the same in 2nd day. in other words, I have changed the activity code for emp.#59311 in the second day in TK_DB tab to make sure that it is working but it is not changing however code was changed.

    The second option ( formula) is not clear enough for me as you typed it :
    =index($I$2:$I$3000,match($g$2&B5,TKB_DATE&EMPNUMBER,0)) -ctrl+shift+ente

    I don't understand the last part of your formula [ - Ctrl+Shift+entre]

    Thank you

    Midoya

  9. #9
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    =index($I$2:$I$3000,match($g$2&B5,TKB_DATE&EMPNUMBER,0))

    TKB_DATE the range containing the tkb dates
    EMPNUMBER the range containing the employee numbers
    index($I$2:$I$3000 ->>>range you want to return that is column 8 from your vlookup right?!!

    you will use ctrl+shift+enter not just enter you'll notice the formula will have curly braces { } when done right.

  10. #10
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    yeah but it gave me #NAME?

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    You have to create Named Ranges TKB_DATE and EMPNUMBER which is described by vlady in post #9

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    =INDEX($I$2:$I$3000,MATCH($G$2&B5,INDEX(TKB_DATE&EMPNUMBER,0),0)) entered normally
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  13. #13
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    Hi there

    I have named the range already please see the formula below

    =INDEX(TKDB_Act1Code,MATCH($M$2&B5,INDEX(TKB_DATE&TKDB_CompNo,0),0))

    again it gave me #N/A

    please note that "TKDB_Act1Code" refers to activity code which you typed "$I$2:$I$3000" in the above formula and "TKDB_CompNo" refers to "EMPNUMBER"

    Midoya

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    =MATCH($M$2&B5,INDEX(TKB_DATE&TKDB_CompNo,0),0) what does that return? if its n/a
    then split again

    MATCH($M$2,TKB_DATE,0)
    and
    MATCH(B5,TKDB_CompNo,0)

    they should both = the same number

  15. #15
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    130110 - DPR Checker (V07 8)_NO REWORK _Yahia.zip130110 - DPR Checker (V07 8)_NO REWORK _Yahia.zip

    I have attached the sheet again after fixing the formula in post#13. Please review and kindly advise me. Thank you.

    Midoya

  16. #16
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    where is this formula?

  17. #17
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    i don't think that will work using named range referring to whole columns a:a or b:b try a2:a10000 and b2:b10000

  18. #18
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    Hi there,

    Still I'm waiting for your help with the above formula.

    Thank you in advance

    Midoya

  19. #19
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    =IFERROR(IF(AND(MATCH($M$2,TKDB_Date,0),(MATCH(B4,TKDB_CompNo,0))),(VLOOKUP(B5,TK_DB!$B$2:$U$3000,8,FALSE)),""),"")

  20. #20
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    did you read post#17? and where in the workbook is that formula?

  21. #21
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Vlookup formula returns with False Result, How can I get the exact value ?

    Guys,

    Thank you so much it's working perfectly with me without any problems. Appreciated.

    Midoya

+ 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