Lookup the Last Matching Value

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 มิ.ย. 2017
  • 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.exceltraining101.com/p/tr...
    📚 Excel Books & Tech Gear ➜ www.amazon.com/shop/dough
    ⚙️ Tools: Screencasting ➜ techsmith.z6rjha.net/5Qe53
    ⚙️ Tools: Microsoft Office ➜ microsoft.msafflnk.net/rKL0G
    ⚙️ Tools: TubeBuddy ➜ www.tubebuddy.com/et101
    📝 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.buymeacoffee.com/dough
    #excel
    #msexcel
    #doughexcel
    ~-~~-~~~-~~-~
    Please watch: "Convert Table in a PDF File to Excel"
    • Convert Table in a PDF...
    ~-~~-~~~-~~-~

ความคิดเห็น • 82

  • @DougHExcel
    @DougHExcel  4 ปีที่แล้ว +1

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

  • @user-wk8pw3eb8g
    @user-wk8pw3eb8g หลายเดือนก่อน

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

  • @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🙏

  • @Bradza101plays
    @Bradza101plays 6 ปีที่แล้ว +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  6 ปีที่แล้ว

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

  • @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!

  • @angelinasepulveda2160
    @angelinasepulveda2160 5 ปีที่แล้ว

    Thank you so much! I appreciate your explanation.

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

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

  • @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 :)

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว +1

      Glad I could help

  • @manissery1956
    @manissery1956 ปีที่แล้ว

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

  • @patrickpellegrini8681
    @patrickpellegrini8681 3 ปีที่แล้ว

    Much appreciated. Easy solution thanks.

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      You’re welcome!

  • @slyassassins202
    @slyassassins202 3 ปีที่แล้ว

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

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      You’re welcome!

  • @arefalkadi3685
    @arefalkadi3685 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

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

  • @enochjoshua03
    @enochjoshua03 2 ปีที่แล้ว

    Thanks a ton. It helped

  • @windyfebbiayuni5581
    @windyfebbiayuni5581 4 หลายเดือนก่อน

    THANK YOU SO MUCH, YOU SAVE ME

  • @MatthewsMPanjaitan
    @MatthewsMPanjaitan 7 ปีที่แล้ว

    this does help me! thanks!

    • @DougHExcel
      @DougHExcel  7 ปีที่แล้ว

      Thanks Matthews M. Panjaitan, glad it helped!

  • @nexttechreview9248
    @nexttechreview9248 4 ปีที่แล้ว

    Awesome. Thanks

  • @complex58
    @complex58 6 ปีที่แล้ว +1

    Luv it!!!!

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Thanks for the comment!

  • @raidmahbouba
    @raidmahbouba 3 ปีที่แล้ว

    Thank you very much

  • @dhavamanikrishnana2226
    @dhavamanikrishnana2226 ปีที่แล้ว

    Use full thanks lot

    • @DougHExcel
      @DougHExcel  ปีที่แล้ว

      Hi dhavamani krishnana, thanks for the comment!

  • @naif9380
    @naif9380 2 ปีที่แล้ว

    Thank you so much

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      You’re welcome!

  • @anshulbharti683
    @anshulbharti683 4 ปีที่แล้ว

    Thank you sir

  • @srsaravanakumar
    @srsaravanakumar ปีที่แล้ว

    Thank you

  • @bokooo3129
    @bokooo3129 2 ปีที่แล้ว

    it sure did help

  • @spuneet156
    @spuneet156 6 ปีที่แล้ว

    Helpful

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Hi demon is watching, thanks for the comment!

  • @feroz881
    @feroz881 ปีที่แล้ว

    Thanks

  • @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 --> th-cam.com/video/v9k8CoJQ-p0/w-d-xo.html

  • @pathwayToData
    @pathwayToData 5 ปีที่แล้ว +1

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

  • @unknownboy3828
    @unknownboy3828 7 หลายเดือนก่อน

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

  • @rockguitarist8907
    @rockguitarist8907 6 ปีที่แล้ว

    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!

  • @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.

  • @mudassiralirana4256
    @mudassiralirana4256 5 ปีที่แล้ว

    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  3 ปีที่แล้ว

      may need to change the cell formatting

  • @lordstark806
    @lordstark806 2 ปีที่แล้ว

    Genius

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      Hi Lord Stark, thanks for the kind words!

  • @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 >> th-cam.com/video/v9k8CoJQ-p0/w-d-xo.html

  • @cleitonoliveira932
    @cleitonoliveira932 4 ปีที่แล้ว

    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.

  • @enasswerfally6264
    @enasswerfally6264 2 ปีที่แล้ว

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

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      One of these might help
      th-cam.com/video/dwWuHHdXobA/w-d-xo.html
      th-cam.com/video/v9k8CoJQ-p0/w-d-xo.html

  • @securityinvestigator2095
    @securityinvestigator2095 หลายเดือนก่อน

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

    • @DougHExcel
      @DougHExcel  หลายเดือนก่อน

      See if this fits. Use VLOOKUP to Find the 2nd Match (or nth Match)
      th-cam.com/video/v9k8CoJQ-p0/w-d-xo.html

    • @securityinvestigator2095
      @securityinvestigator2095 หลายเดือนก่อน

      @@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

  • @tejaswini666
    @tejaswini666 6 ปีที่แล้ว

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

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      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????

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      +NAVEEN SINGH sorry don’t know about google sheets

    • @deryrahmanahaddienata9428
      @deryrahmanahaddienata9428 3 ปีที่แล้ว

      Try this =ARRAYFORMULA(LOOKUP(2,1/(B:B=E18),C:C))

  • @algamdie
    @algamdie 4 ปีที่แล้ว

    man , you just save my ass

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

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

  • @pravinsambe1648
    @pravinsambe1648 หลายเดือนก่อน

    Complicated

  • @richardgoone3438
    @richardgoone3438 ปีที่แล้ว

    Thank you sir