Google Sheets - Get Last Non-Empty Cell in Row or Column

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • Learn how to get the last non-empty cell in row or column. In this tutorial we'll first create a formula to get the row number for last non-empty cell and then get the data value in the the cell.
    #googlesheets #lastrow #lastcolumn

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

  • @sharkattack6423
    @sharkattack6423 3 ปีที่แล้ว +7

    TH-cam is amazing. I just picked my car apart and put it back together. Now Im learning excel whoop whoop!

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

    Was poking around on the internet looking for a solution to this. Most of them were convoluted for no reason. This was straight to the point! Thanks for the great tutorial!

  • @rbcrist
    @rbcrist 3 ปีที่แล้ว +11

    Hello. I was watching your videos for the last 3 days and i can tell you the way you explain is perfect. I am SAP consultant with ABAP development skills but i wanted to do something for me with google sheets and java script in which i never worked before ( only excel formulas ). Based on your videos i was able to write my own little program to track some consumptions in the house, etc...by passing values to google sheets and getting values from google sheets in java script. Great teacher !

  • @malikastar9265
    @malikastar9265 2 ปีที่แล้ว +3

    As always, you make it easy with no boring explanations, thank you, I'm glad I've found your channel !

  • @minhthai2804
    @minhthai2804 3 ปีที่แล้ว +3

    OMG, your channel basically covers all the functions needed for all situation !!

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

    Thank you so much! I've been struggling so hard to do this for a long time.
    What a sophisticated solution to multiply by 0 if the column is empty.

  • @FreeAltSoftwareTutorials
    @FreeAltSoftwareTutorials 2 ปีที่แล้ว +1

    best explanation ever....
    I was always afraid of spreadsheet formulas but you made it super easy and understandable for me!
    Thank you so much!

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

    Great Tutorial! Quick and to the point! Thank You

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

    Great way of explaining! You are a born teacher! Thanks form the bottom
    of my heart!

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

    Your way of teaching is really cool and intuitive. As always, really good video!

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

      Yes! Not just "paste this code" but building the formulas. Then I can tell how my code will be similar/different.

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

    Thank you for taking you time to make a video about this. This is really helpful. God bless!

  • @NSE_Foden
    @NSE_Foden 5 ปีที่แล้ว +2

    That is extremely useful. I have combined it with the indirect function to use with dynamic dropdown lists which is something I have been trying to do for a few weeks using information from another of your videos, but couldn’t get it to work.

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

    superb video....i am learning from your videos.... very help for archive my automation tasks....from Sri Lanka

  • @cric8482
    @cric8482 3 ปีที่แล้ว +2

    Nice idea. It works too for a range : =max(arrayformula(ROW(A1:H)*(--(A1:H"")))) Very cool when used with indirect function

  • @SnowHunter44
    @SnowHunter44 4 ปีที่แล้ว +3

    Exactly what I needed, Thank you for this educational video!

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

    Very good videos Sir great 👍👍

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

    Your videos are amazing. I have learned a lot. Thank you !

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

    Great video. Thanks. Just to add that if you don't start form Column 1 or Array 1, you need to manually offset the value for MAX

  • @manuelfpardo
    @manuelfpardo 3 ปีที่แล้ว +4

    This one has a problems if the formula is in the actual row analysed. =(INDEX(FILTER(H44:44;NOT(ISBLANK(H44:44)));COUNTA(H44:44)) This one solves the problem.

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

      god bless you! thank you very much!

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

    Great video, thank you for sharing this method!

  • @enlightenedterrestrial
    @enlightenedterrestrial 3 ปีที่แล้ว +3

    Everything works right up until 12:08 with the new INDEX function. The cell simply remains empty!

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

    Thanks for this amazing video. Very easy to understand and great shortcuts shared as well

  • @DanielSAraujo98
    @DanielSAraujo98 4 ปีที่แล้ว +3

    that was some genius move, really. thanks for that!!

  • @mojsterr
    @mojsterr 2 ปีที่แล้ว +1

    You are AWESOME. Thank you!

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

    Are you sure you're not David Copperfield! Great stuff, these videos are priceless, Thanks

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

    Thank you so much ! This is very well explained ! :D

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

    Your videos are amazing!

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

    thanks god I found this helpfull tip about COUNTA, which I use now in an empty cell on top to get the number of rows in my App-script.
    I had a big problem with an ArrayFormula within the Data-range and had a ton of non-blank rows in my search-result.

  • @the_cross_roads
    @the_cross_roads 3 ปีที่แล้ว +1

    Oh my. Thank you so much. This helps a lot 🙂

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

    If possible, I will give you a millions like bro. You solve my big problem with a small trick. 😍😘

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

    That's fantastic! Very useful technique.

  • @pallabsharma5374
    @pallabsharma5374 3 ปีที่แล้ว +1

    Superb!! highly appreciated

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

    This is such a great video. Great method of explaining!

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

    Thanks a lot, exactly what i was looking for !

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

    Fascinating way to tackle the problem. I've played with this formula a bit and it is quite handy. I am, however, curious if it is possible to adjust this formula to do the same, but instead return the second last item in the list?

  • @dmitryn9090
    @dmitryn9090 5 ปีที่แล้ว +3

    That's elegant! Thank you for sharing!

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

    You are the GOAT

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

    love it
    thanks. Sir.
    I find it long time

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

    You have amazing explaining skills, thank you so so very much for your video!!!!!

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

    Good explication, thank you so much

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

    How can I get this to work in an array formula? To just fill out the entire column?

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

    Thank you very much.

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

    You’re the best!! Thank you for sharing this!

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

    Excellent, thank you!

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

    PLEASE, MY SHEET DID NOT RETURN THAT RESULT "GRAPES" @ THE TIME STAMP: 12:29 ; WHAT COULD BE THE REASON? I ENSURED THE FORMAT WAS ON "AUTOMATIC"

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

    beautifully explained as always - many thanks

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

    You da real MVP! Thank you.

  • @Chris-cf2kp
    @Chris-cf2kp ปีที่แล้ว

    Does this work if the rows you're trying to array index are outputs of another formula?

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

    Great video, you explain everything well and in detail. However, in my case the result comes as an empty cell.
    I figured it is because my array starts from the third row in a column, and my result should be in the second row of the same column.
    Any way to fix this?

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

    This is a fantastic job. Love your videos

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

    Thanks. Very well done.

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

    is there a way to 2nd to last value, 3rd to last, etc? Love your videos

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

    Hi I love your Videos have learnt so much from them and been able to do so much but i do have 1 question. Is there a way to use this formula to get the last known number from spasific date? I work with a group from germany and we get funds in euros but convert them to IDR when they arrive. The currency exchange rate changes a lot and quite drasticly over the years. I want to be able to get the euro prices for all expensise we have made. To do so correctly i wanna use the date of the expense to find the last time we converted euro to IDR to get the exchange rate. Hope u can help me

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

    I love you! and your videos! thank you so much!!!

  • @AmitMiglani-i1o
    @AmitMiglani-i1o ปีที่แล้ว

    please let us know sum function in google query function, i mean to say that total showing in bottom like if ram sales repeat in 5times than not required group total of ram, we required total showing on both with each entry of ram ,

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

    Hi sir...
    New type of thing I have learned.
    Please make more videos on merge google sheets with google docs without add-on. For certification or pre-defined letter pads like structure.
    Thanks and regards
    Waiting for your response.

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

      Google docs Mail Merge w/o add-on available from his previous video:
      th-cam.com/video/QNPPEB64QbI/w-d-xo.html
      Maybe we both want w/o add-on and no scripts too.
      Waiting for that too.
      Meanwhile, I guess pre-printed forms and a tab with query to display all necessary data should do the job.

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

    Hi! Im a data analyst here from the philippines, Im working with my data table which leads me to here (your video), Although, what im really looking for is: how can I add a text after the last value on my data (row) like for example: if the last value is at row 10, row 11 automatically shows "Grand total" or any text that would fit the data table. Thanks a lot for your help!

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

    thanks

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

    So amazing!! Thank you so much!

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

    Dude this was awesome work, thanks

  • @cheewurz
    @cheewurz 5 ปีที่แล้ว +2

    Dude... You are one Smart Guy! How would you make Flash Cards that Auto Expand in Google Sheets?

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

    thank you so much. You just save my day!

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

    This video was very helpful in what I have been trying to do but I am needing to get the data form a different column. I have a sheet that the array formula would be for column F but I need to get the data from column E based on the array. How is the best way to do that? I also need to have the same data displayed on a separate sheet within the same workbook. I have found your videos very helpful. Trying to learn google. Thank you

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

      When you use INDEX function just highlight column E

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

      th-cam.com/video/iGvvK8O5BpQ/w-d-xo.html

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

      Check out this video th-cam.com/video/iGvvK8O5BpQ/w-d-xo.html

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

      Watch this video th-cam.com/video/iGvvK8O5BpQ/w-d-xo.html

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

      th-cam.com/users/LearnGoogleSpreadsheetssearch?query=google%20sheets%20linking%20data

  • @arielzabatecuizon5147
    @arielzabatecuizon5147 2 ปีที่แล้ว +1

    Hi, thank you for this great video. My question is: Now that I have known the last row, how would I be able to concatenate or join them to make a simple range? For instance I have A1:A & maxrow. How can attach that number to the A1:A to make a range with the lastrow? I hope I am making sense. Please help.

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

    I need to use the row number he finds, in a cell. e.g. he find 8 as the row number. How i can use in another function C8 ?

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

    Another awesome video! thanks. you should open a patreon too. I wouldn't mind chipping in some beer money

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

      But please keep making. I'm loving learning from your videos

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

    what about if used in data filtered columns to get last value ?

  • @JanTuts
    @JanTuts 4 ปีที่แล้ว +9

    Me: "Why can't I figure this out, how hard can it be? It's probably a simple function like _SUM()_, that I just don't know about."
    Tutorial: 16 minutes long
    Me: "oh boy..."

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

    you are the best

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

    Thank you. Very helpfull for me

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

    thanks so much

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

    thanks for the learning's. if Instead of row no.., I want to get the value in the last non empty cell, what changes do I have to make.

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

      He showed it in the video

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

    i really like your video because you explain it broken down to dum bits. However I have a question, I don't want to disable the re-iterative calculation but if I inquire about the last filled row on column A in a cell located in column A, what to do with the circular dependency?

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

    The tutorial was very clear and well done, but can someone explain what this formula is typically used for in a real world situation?

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

      I have a trading journal where I populate each new cell with a win or a loss in EUR. I have another cell "Current Balance" which only needs to check the last populated cell and take the last value - the new balance on my account.

  • @DrAjaoMedia
    @DrAjaoMedia 4 ปีที่แล้ว +2

    Thanks so much for this. However, the row function points to an absolute row position starting from Row 1. My array doesn't start from the first row. Is there a way to reference a relative value such that Row 1 is seen as the row where my data starts rather than the actual first row on the sheet? #NoobAlert

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

      Isn't the last row number still the same? Just select the whole column.

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

      @@ExcelGoogleSheets But Index function is not considering absolute position. For it first entry in the column is the first position.

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

    I just subscribed :)

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

    So I need to do some kind of index and match function that incorporates this. I want to see the last status of en employee. So i need this to match with a certain employee based on their last status. What you did in this video is close to what I need. But I also need to figure out how to tell the last status of each worker all in the same column. any advice on this?

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

    Excellent explained master, but I want know if is possible with scripts web app google create an user and password depending of spreadsheet

  • @KopiPaste-zw1bb
    @KopiPaste-zw1bb 5 หลายเดือนก่อน

    How can add a filter to this? like give me the last row for a specific fruit. Where abouts would i add the filter?

  • @Adil-tb8xo
    @Adil-tb8xo 2 ปีที่แล้ว

    Hello good sir,
    I have a question - suppose you want to make a list of all the fruits after banana and the list is not uniform i.e. sometimes banana might be every other row, sometimes there are blank rows, sometimes the word banana might come up 3 rows later etc. Is there a reliable way to solve this problem?
    Many thanks

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

    Hi. Thanks for this video. I am looking in getting the last 5 rows (multiple columns in these 5 rows). Any way?

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

    I would like to use what you have explained in this Video: “Google Sheets - Get Last Non-Empty Cell in Row or Column” The only additional thing is that I would like to sum up 2 cells in columns from 2 separate work sheets into my Dashboard Sheet. If this is possible, would you send me the formula lay out I need. I really enjoy your videos. I am still to expand my overall knowledge of google sheets. Thank you!
    5:24 / 16:09

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

      In the worksheet where you want the number there
      type in the = then go to your worksheet and press the cell then enter and done

  • @DavidTy658
    @DavidTy658 2 ปีที่แล้ว +1

    how about Get all non empty cell?

  • @abhishekgulati1904
    @abhishekgulati1904 4 ปีที่แล้ว +2

    Showing REF# error..please help. And error says circular ref. Check spreadsheet settings

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

    How if we want to pick the second last item?

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

    This works great BUT doesn't work when the blank cells have formulas inside. I have NOT been able to find anything that works in a blank range filled with formulas.

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

    Good one. I need to request to combine multi column into one with same row values... Thanks

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

    I need this formula to arrayformula down the column. It works in the initial cell, but doesn't populate down the column. Can that be done?

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

    Hi, thank you for the video. Is there a way to get this to work for a range on another sheet? I've tried using importrange and keep getting an error for the COLUMN or ROW function.

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

      ROW & COLUMN require a range, IMPORTRANGE returns an array.
      You could use SEQUENCE function to generate similar results to ROW or COLUMN, but it could be tricky if you use open references.

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

    How could I do an importrange() referencing a different sheet and pull the last non-empty cell from a column? For example, I've tried =Importrange("my.google.sheet.address", index(b2:b, counta(b2:b))), but the index and counta only seem to look at the sheet the formula is entered on, NOT the referenced sheet.
    I've also tried =index(importrange("my.google.sheet.address", counta(b2:b)) without success also.

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

      =counta(importrange("my.google.sheet.address","b2:b"))

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

      @@ExcelGoogleSheets thanks for the quick reply...i actually kinda figured it out from a different video you published (th-cam.com/video/4XMB03BqNm4/w-d-xo.html) & just swapped in counta for match. 👍🏼

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

    How can I highlight a last non blank cell in a column using conditional formatting.. ? Please help

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

    How can we display the last record of the google sheet inside the google form whenever we open the google form?

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

    Thanks!

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

    why does it show in 1 and 0, when u had "--" , what does "--" mean?

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

    how get row number active cell automatic
    ?

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

    Nice!

  • @cahyosantoso9506
    @cahyosantoso9506 3 ปีที่แล้ว +1

    This formula can also be used =ArrayFormula(MAX(IF(A:A="",,ROW(A1:A))))

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

    HEY ITS GOOD HELP TO ME, BUT I WANT THAT INDEX RETURNS ALL THE LIST WITHOUT CELL NUM HAVING ZERO OR BLANK CAN YOU HELP?

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

    What if cell (A) contains value comes from a formula? And entire column has formula which produce nil value (means "empty") Then?
    I tried but not working in above case.

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

    AWESOME...YEAH!