Mr Excel & excelisfun Trick #6: Get Last Value In Row

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

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

  • @excelisfun
    @excelisfun  15 ปีที่แล้ว

    Dear planiolro,
    Great question!
    Examples of volatile functions are:
    OFFSET, INDIRECT, TODAY, NOW, RAND, CELL, INFO.
    Volatile functions can significantly slow down calculating time because these functions are recalculated every time recalculation is done regardless if the precedents have changed. Smart recalculate will not calculate formulas where the precedents have not changed, but will recalculate volatile functions.
    --excelisfun

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    LOOKUP is only programmed to do approximate match, it does vertical lookup if the number of rows are equal to or greater than the number of columns (looks in first column and returns something from the last column), it does horizontal lookup if the number of columns are greater than the number of rows (looks up something in first row and returns something from the last row).

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    It should work.
    9.99999999999999E+307 is the biggest number that Excel understands.
    2^15-1 is the maximum number of characters allowed in a cell.
    As long as you use a number that is sure to be bigger than anything you put in the template, it will work!

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    How to you determine which is the last? is it in a row, or in a column, or is it the rectangular range defined by the last row and column?
    Try this video:
    Excel Magic Trick #135: Find Last Row & Column Dynamic Range

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    In your example:
    =Lookup(9.99999999999999E+307, A1:K10)
    it would try to find the biggest value in the first row and then try to return something from the 10th row.

  • @excelisfun
    @excelisfun  15 ปีที่แล้ว

    Thanks for the hot tip, Xavier!
    Yes, Big Number, 9.999999999999999E+307 is teh way to go. If you use the BigNum a lot, you can save it as s Defined Name.

  • @KarthikAddy
    @KarthikAddy 13 ปีที่แล้ว

    Hi Mike,
    Just wanted to add a point to your formula. When you're using the Lookup formula to find the last number in an array, it's recommended to use 'a number that's slightly greater the largest value in that array'. For instance, instead of using '=lookup(max(array), array)' you should use '=lookup(max((array)+1), array)'. This way, the last value of the array where the largest value appears is also correct. Else, for the array with the largest value, it pulls only the largest value.

  • @braddishman2543
    @braddishman2543 8 ปีที่แล้ว

    Thank you. The Lookup function was exactly what I was looking for.

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

    I always enjoy the duels!!!

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

    Only 145 likes ?!! Thanks Excelisfun, you saved my day. Cheers bro

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

    mike you are the excel formula king you make my life more fun
    because i love excel thank you

  • @excelisfun
    @excelisfun  14 ปีที่แล้ว

    In Trick#135 you see a method for finding the row and column, then just use those with the INDEX function to retrieve the values. But as I mentioned earlier, I still don't know what last value you want.

  • @oceanic14123
    @oceanic14123 14 ปีที่แล้ว

    Thanks for the hot tip. Your Magic Trick#135 really helped. I was hoping to use a formula to find the last value used in a range or a cell address ( similar to using key board Control + End ).

  • @excelisfun
    @excelisfun  15 ปีที่แล้ว

    Dear kayno9,
    How long does it take me? Always different. Sometimes I know the answer right away, other times it takes a while. In this case, I could think of these 3 solutions & a few more almost instantly. Well that's not really true. I thought of three ways, and then later (10 minutes), I remembered the LOOKUP. And that is usual, you think of a good way, and then later you "all-of-a-sudden" think of another way.
    I sent a note to Mr Excel asking him about the VBA video series.
    --excelisfun

  • @planiolro
    @planiolro 15 ปีที่แล้ว

    Awesome solution with Lookup function.During the vdeo you mentioned the term "volatile function". Which functions are volatile in Excel? What does it mean volatile function?

  • @kayno9
    @kayno9 15 ปีที่แล้ว

    Hey Mike another great challenge. One quetion. how long does it takes for you to come up with a solution i.e. like this one? Did you know it strait away such as the OFFSET function will work here?
    Can you please also ask MR excel for me when his Macro video series will come out because i could not find it anywhere on his website like you advised me before. Many times again for your great excel instructional video.

  • @excelisfun
    @excelisfun  15 ปีที่แล้ว

    Dear planiolro,
    Oh ya, Conditional Formatting with TRUE FALSE formula is also volatile
    --excelisfun

  • @jillianpietruch304
    @jillianpietruch304 10 ปีที่แล้ว

    Hi. Thanks for this video. How would I use the index function if my "row" was dependent on a VLOOKUP?

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

    Very helpful. Thank you both!

  • @excelisfun
    @excelisfun  13 ปีที่แล้ว

    Cool, Thanks!

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

    Hi, Could you please tell me if u have empty value in middle in row, then this formula not work. How to handle this?

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

    I figured out how to retrieve the second to last value in a row by using =INDEX(rRange,LARGE(1*(rRange"")*COLUMN(rRange)-COLUMN(),2)) CSE but it seems to use a lot of memory. I hope to figure out how to make this better.

  • @vrteewai
    @vrteewai 11 ปีที่แล้ว

    I finally found a solution to my problem! However, it's a partial soluition.
    Now that value is last in the row, if I need to excel to refernce row 1 and return the value corresponding to the cell where the last value is. how do i do that? Thanks!

  • @SachinKumar-jk9td
    @SachinKumar-jk9td 5 ปีที่แล้ว

    Hi, Index function is not working, if there are blank cells in row

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

    Any formula to find the second last value in a row, please advise. thank you

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

      =LARGE(A:A,2) should do the trick

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

    Is there a way to return the address of the last value in a row?

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

    HI! what if it's not a numbers? i want to get the last row text. how do I do that?

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

    Thanks Excellsfun

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

    Hello Sir,
    I hope you are doing awesome,
    I am trying to fetch out all the non blank cell values from a single row but unable to get it.
    Could you please help me with a formula by which i can find and store all the non blank cells value in a single cell from a same row/ single row.
    Values are like (using row 2) - empty : empty : value : value: empty : value : empty and so on.
    Please note - these values are available horizontally in my spreadsheet.
    Please help..
    Thanks in advance.
    Regards,
    Zahid Shaikh
    Mumbai, India

  • @mohamadsofiuddin3639
    @mohamadsofiuddin3639 10 ปีที่แล้ว

    hi Mr excel, i had a problem here, i have a data such as GD0001, GD0002, ... until GD1000 in one column . So, how can i pick the last data GD1000 to display in other table. i've been search for a month. pls help...

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

    this video is the answer for my pray :)

  • @excelisfun
    @excelisfun  13 ปีที่แล้ว

    Post question with details to:
    mrexcel[dot]com/forum

  • @kayno9
    @kayno9 15 ปีที่แล้ว

    thanks Mike

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

    Both are great sir. But sir I need last value date. You put it estimate 1 or estimate 2. My table is different in place of estimate I have some date. I need the last cell date. Please help. I from India

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

      Namste bhai
      kal mile teach to each channel me
      great

  • @brenden9025
    @brenden9025 13 ปีที่แล้ว

    I need a formuls to pull in the last entry in a row, this is not working for me..... HELP

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

    How to get value last to 2nd

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

    I tried this one with countifs using 2 conditions and it always gets the first value in the column (using columns in my case) Wish someone can try that. =INDEX(EmpOps!F:F,COUNTIFS(EmpOps!C:C,O16,EmpOps!A:A,L15),0)
    Basically I have 2 columns to check, if the values are equal to the text i've entered, retrieve the last value in the column F.

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

    my cell content is not a number... so