Lookup the Last Matching Value

Поділитися
Вставка
  • Опубліковано 4 лют 2025
  • If you are familiar with lookup function in Excel, it brings back the first value it finds in your lookup table. What if you had multiple values but wanted to find the last (or maybe it is the most current) value from your table? You could do some table sorting (like sort descending on some criteria like date) and then let the lookup function do it or use can use an "older" lookup function in Excel aptly named LOOKUP to do this for you. You do need to perform some calculation first and then have it wrapped in the lookup function. It's actually not that hard so check out the video.
    🔔 SUBSCRIBE to my channel ➜ goo.gl/wN3c3p
    🏫 Excel Training ➜ www.exceltrain...
    📚 Excel Books & Tech Gear ➜ www.amazon.com...
    ⚙️ Tools: Screencasting ➜ techsmith.z6rj...
    ⚙️ Tools: Microsoft Office ➜ microsoft.msaf...
    ⚙️ Tools: TubeBuddy ➜ www.tubebuddy....
    📝 This description may contain affiliate links and we'll receive a small commission if a purchased is made using the links (but at no additional cost to you). It'll support the channel and so more videos like this can be made. Thanks for your support!
    🎁 If you find these videos useful and want to support my channel go to www.buymeacoff...
    #excel
    #msexcel
    #doughexcel
    ~-~~-~~~-~~-~
    Please watch: "Convert Table in a PDF File to Excel"
    • Convert Table in a PDF...
    ~-~~-~~~-~~-~

КОМЕНТАРІ • 82

  • @DougHExcel
    @DougHExcel  5 років тому +1

    For more videos that cover lookup concepts see the playlist at ua-cam.com/play/PL-n8f1cY_Qw95JHWjCjPofsCd7hCWjI8l.html

  • @nunyabusiness4516
    @nunyabusiness4516 Рік тому

    I was looking for a solution and this is by far the easiest one I have found. Thank you so much for taking the time to share this!

  • @pragha_
    @pragha_ 3 роки тому

    Thanks for teaching, not only the function but also how it works... Thanks man🙏

  • @RyanRusydaTresnatriadi
    @RyanRusydaTresnatriadi 8 місяців тому

    this is what I have been looking for ages. Thx man!

  • @Bradza101plays
    @Bradza101plays 7 років тому +1

    been looking for help on this. found many people giveing this answer, but unlike the others you explained why and how it works. SUBED

    • @DougHExcel
      @DougHExcel  7 років тому

      Hi Bradza101, glad you liked it, thanks for commenting!

  • @slyassassins202
    @slyassassins202 4 роки тому

    I will be utilizing this to create a Maintenance Schedule for my mechanic at my business. Thank you so much!

  • @Hari-n4f
    @Hari-n4f 2 роки тому

    Good explanation. Understood the method. Thank you very much.

  • @arefalkadi3685
    @arefalkadi3685 4 роки тому

    What a simple formula but very effective for I wanted, I have tried several Index and Match to get the last updated data of a reoccuring item and I could not, until I sow your video. I subscribed immediately.

    • @DougHExcel
      @DougHExcel  4 роки тому

      Hi Aref Alkadi, glad you liked! Thanks for the subscribe; there are a bunch of these videos and I have new ones published weekly.

  • @siddhantchopra1
    @siddhantchopra1 4 роки тому

    Thanks, Thanks a lot brother, I have been searching for this since 1 month tried so many things nothing worked.
    Great work!
    It was really helpful :)

  • @patrickpellegrini8681
    @patrickpellegrini8681 3 роки тому

    Much appreciated. Easy solution thanks.

  • @enochjoshua03
    @enochjoshua03 3 роки тому

    Thanks a ton. It helped

  • @rockguitarist8907
    @rockguitarist8907 7 років тому

    Doug, you da man! Thanks so much for the clear explanation. I'm going to practice this now! :)

    • @DougHExcel
      @DougHExcel  7 років тому

      Hi rockguitarist8907, glad you liked it, thanks for commenting!

  • @rockguitarist8907
    @rockguitarist8907 7 років тому

    Doug one thing I noticed. You say in the vid that the lookup value looks in the array for the closest number below the lookup value. I used =LOOKUP(2,(--($A$2:$A$6="Kyle")),$B$2:$B$6) and hit Ctrl + Shift + Enter, but I got the last value instead of the last match for "Kyle". My array in the lookup array was {1;0;1;1;0} So I figured my result would come from the row of the last "1" from the array (the last TRUE). But I was getting the LAST value of the table, which was NOT a match. I watched your video again and you used a "/" to make the zeroes becomes errors. My reason for posting this is for anyone else that tries this, you have to do it Doug's way. Use the "/" to convert the FALSE to an error rather than "0". Otherwise, you will return the final value. Thanks Doug!

  • @angelinasepulveda2160
    @angelinasepulveda2160 5 років тому

    Thank you so much! I appreciate your explanation.

    • @DougHExcel
      @DougHExcel  5 років тому

      Hi Angelina Sepulveda, glad you liked it, thanks for commenting!

  • @windyfebbiayuni5581
    @windyfebbiayuni5581 10 місяців тому

    THANK YOU SO MUCH, YOU SAVE ME

  • @pathwayToData
    @pathwayToData 6 років тому +1

    This is really helpful
    I was try this for last one week but i failed
    Now i got it

  • @enasswerfally6264
    @enasswerfally6264 2 роки тому

    This is useful,
    How to lookup the last non blank matching value?

    • @DougHExcel
      @DougHExcel  2 роки тому

      One of these might help
      ua-cam.com/video/dwWuHHdXobA/v-deo.html
      ua-cam.com/video/v9k8CoJQ-p0/v-deo.html

  • @bokooo3129
    @bokooo3129 2 роки тому

    it sure did help

  • @unknownboy3828
    @unknownboy3828 Рік тому

    Sir can you help me if the last value is 0 then how can we have to find the second last value

  • @Iahmedmcse
    @Iahmedmcse 4 роки тому

    that's really great, can i ignore zero numbers? i mean if the last number is zero take before that number?

    • @DougHExcel
      @DougHExcel  4 роки тому

      Maybe you'd want to pick and choose from a list with this solution >> ua-cam.com/video/v9k8CoJQ-p0/v-deo.html

  • @dhavamanikrishnana2226
    @dhavamanikrishnana2226 2 роки тому

    Use full thanks lot

    • @DougHExcel
      @DougHExcel  2 роки тому

      Hi dhavamani krishnana, thanks for the comment!

  • @abdanomer
    @abdanomer 7 років тому

    Great idea...
    So what if i want the second value or the "n" value instade of the last one!
    Small or large could be use with the lookup?

    • @DougHExcel
      @DougHExcel  7 років тому

      Try this vid for some insight --> ua-cam.com/video/v9k8CoJQ-p0/v-deo.html

  • @securityinvestigator2095
    @securityinvestigator2095 7 місяців тому

    What if I want to find the max value for Item 3 instead of the last value? What formula I should use?

    • @DougHExcel
      @DougHExcel  7 місяців тому

      See if this fits. Use VLOOKUP to Find the 2nd Match (or nth Match)
      ua-cam.com/video/v9k8CoJQ-p0/v-deo.html

    • @securityinvestigator2095
      @securityinvestigator2095 7 місяців тому

      @@DougHExcel The helper table can help me get the last value for a specific cell but not the max value. It seems like I may need a 'sortby' function within xlookup to get the max value

  • @srsaravanakumar
    @srsaravanakumar Рік тому

    Thank you

  • @wilfredocabuenas
    @wilfredocabuenas 4 роки тому

    Is it working if your H1 is in another sheet? And your range is having blank cells?

    • @DougHExcel
      @DougHExcel  4 роки тому

      should work, and on the other question it depends on blanks cells locations.

  • @nexttechreview9248
    @nexttechreview9248 4 роки тому

    Awesome. Thanks

  • @MatthewsMPanjaitan
    @MatthewsMPanjaitan 7 років тому

    this does help me! thanks!

    • @DougHExcel
      @DougHExcel  7 років тому

      Thanks Matthews M. Panjaitan, glad it helped!

  • @feroz881
    @feroz881 Рік тому

    Thanks

  • @anshulbharti683
    @anshulbharti683 5 років тому

    Thank you sir

  • @mudassiralirana4256
    @mudassiralirana4256 6 років тому

    Please tell me if there is a value in nagetive how can I show it ? This formula works perfectly but does not show if a nagetive value arrives ...

    • @DougHExcel
      @DougHExcel  4 роки тому

      may need to change the cell formatting

  • @cleitonoliveira932
    @cleitonoliveira932 5 років тому

    Thank you! If someone still sees this, it's possible to get the ADDRESS in that same scenario? I need the address, not the value and no success.

  • @complex58
    @complex58 6 років тому +1

    Luv it!!!!

  • @spuneet156
    @spuneet156 6 років тому

    Helpful

    • @DougHExcel
      @DougHExcel  6 років тому

      Hi demon is watching, thanks for the comment!

  • @tejaswini666
    @tejaswini666 6 років тому

    I was hoping it would work in Google Spreadsheet. But it isn't. Can anyone help!

    • @DougHExcel
      @DougHExcel  4 роки тому

      Hi Roarz A, thanks for the comment! But don't know google sheets...

  • @naveensingh3785
    @naveensingh3785 5 років тому

    this code =LOOKUP(2,1/(B:B=E18),C:C) is not work in google sheet why????

  • @lordstark806
    @lordstark806 3 роки тому

    Genius

    • @DougHExcel
      @DougHExcel  3 роки тому

      Hi Lord Stark, thanks for the kind words!

  • @algamdie
    @algamdie 5 років тому

    man , you just save my ass

    • @DougHExcel
      @DougHExcel  5 років тому

      Thanks ابو هلال الهلالي, glad it helped!

  • @pravinsambe1648
    @pravinsambe1648 7 місяців тому

    Complicated

  • @raidmahbouba
    @raidmahbouba 3 роки тому

    Thank you very much

  • @naif9380
    @naif9380 2 роки тому

    Thank you so much

  • @richardgoone3438
    @richardgoone3438 2 роки тому

    Thank you sir