Get the Last Value in a Row - Excel Formula

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

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

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

    Wowwwwwww 💓💓💓💓😍😍 thank you💓💓😍

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

    Hi Alan.. INDEX, MATCH and COUNTA to the rescue. Excellent! Your clever examples and solutions are teaching my brain how to solve many problems. Thanks and Thumbs up!

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

    Genius!! Just solved an issue that will save me a lot of work!!! I no longer have to change the formula, each month, to the newest populated column. Virtual fist bump, Alan!

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

    I have been looking for this solution for a long time, thank you!

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

      You're welcome, Braulio.

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

    Always great to watch, very helpful instructive and well explained. A definite 'go to' resource

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

      Thank you Geoff 👍😊

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

    Hi!
    A very crisp video. Thanks for taking the time.
    Can you shed a little insight on how to use this for data that are in a single column? Fetch the last entry in column D, for example. I tried =Index(Range),1,0 and many variants to get it to work but with no luck

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

    @computergaga Thanks for what you do! One thing about google sheets... for any array formulas like this you must add the array formula function. then you're off to the races.

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

    Beautiful work. Thanks for sharing

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

      You're very welcome Syed.

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

    It works. God bless you. Thanks 🙏

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

    Thank you!
    Im new with google sheets/excel. Been struggling with this formula, finally i have it

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

      You are welcome, Gabriel.

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

    Works like a charm! thanks

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

    I'm a big fan of you after watching this video

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

      Great! Thank you.

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

      @@Computergaga
      Hello Can you help on this
      Where do I see to copy MS Excel file path ????
      Normally when right button click on mouse it will see but It not showing...
      Please help

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

    Thank you so much for this video!!

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

    This has worked well for me, thank you. Only problem is I have two cells that are coming up blank - nothing in them. They have exactly the same calculation as all the others.

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

    verrryyyy helpful, thank you :)

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

    Just what i needed right now

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

    Really really helpful ...!good job!

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

    Great example! But what if I am looking for text comments entered & not numbers?

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

      Thank you! The COUNTA function will count all non-blank cells, so text values too 😊

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

    Great description sir, you should get 10 likes

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

      Thank you very much 👍

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

    Thank you so much.

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

      You're welcome, Mansour.

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

    Hi! Great video and very helpful. Just the solution I was looking for. It worked on most of my data but in a few rows, it did not pick the last value and instead displayed a zero. How can I correct this, any suggestions?

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

    Brilliant explanation. Thank you!

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

    Very good tutorial👍🏻

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

    Hi Allan, Good Job But I have one query if I want above mentioned Date instead of Numbers which formula is suitable can you please share Formula..

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

      Change the row number in the first range of the INDEX function to use row 2 instead of row 3. Everything else stays the same.

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

    This is great, thank you!

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

      You're welcome, Rodrigo.

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

    This is very helpful!!
    Question:
    How would you handle roll over numbers using these formulas? For example, let say Product E has rolled over after reaching 1000, thus your value for week 22/11/2018 is 153 instead of 1153. Now, you want to calculate the increase between this week and last week. How would you account for this in your formula? I'm doing something similar for meter readings and they roll over at a certain point. Thank in advance for any recommendations you can offer:)

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

    I got it!
    Thank you!

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

    Very helpful! My case is a little different, but it should work, I have a string of values in 8 columns of a row, and need to figure out the last value that is not a number and not 0. So, essentially last number > 0. I am guessing the COUNT criteria just changes.

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

    Great .. go on

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

    Very useful video. What if we have to choose column header of last value's of row instead of its own value. Please help with formula for the same, if you could...

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

      You're welcome. For the last header value using this data. The formula can be:
      =INDEX(A2:NZ2,,COUNTA(A2:NZ2))
      This would be a more effective formula if a table was used instead of ranges. We then would not need to reference column NZ.

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

    Hey Allan what is the logic of counta in the index column section that lets you capture the last value?

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

      The COUNTA function counts all no empty cells. So here it counted the values in row 2 returning 6 which is the last used column i.e. current week.

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

    What if the cell before the last value is blank? Why the last value is not showing when the cell before is empty ? Can you help me with this problem please ??

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

    yes okay, the formula is working now. thanks.

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

    Thanks

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

    Alan, this video was really helpful. What if I want the column header (Date in your example) returned for the last, non-blank cell in each row? Do you know how I can setup the function? Thanks for your anticipated assistance.

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

      Great! You can use the same formula, Abimbola, but reference C2:CZ2 instead.

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

    Hi Allan, thank you so much. I was wondering if I want the date of the last occurring numbers how do I change the formula? Because some of the date will not have data in it.

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

      Sure. Just edit the ranges used in the INDEX and COUNTA functions to look along the rows of dates and not the values.

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

    Thanks for the sharing, can you please let me know if there is 0 in data & we need to find data instead 0, what would be the formula?

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

      I need this too??? Help

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

    I tried the first one in a column, returned #REF, time for more troubleshooting!

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

    Hi, how about if there is any empty cells in between the columns, this can't be work at all

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

      True, so we would use a slightly different approach.
      We could count the blanks and add them. Or format the range as a table and use the COLUMNS function with it.

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

      @@Computergaga thanks

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

    Can you please suggest same for Date? I am in need

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

      Depends more specifically on what you are asking, Kanishka. The technique in the video can return dates, if that is what you are asking.

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

    Brilliant thank u so much

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

      You're welcome. Thank you Ayoub.

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

    Thank you! it is helpful

  • @XxX-nt7yn
    @XxX-nt7yn 7 หลายเดือนก่อน

    What if the data is '0012346 in cell GE
    Text format?

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

      The COUNTA function counts all non-blank cells, so will include numbers, text, and errors.
      Alternatively though, the COLUMNS function can be used. This function returns the total number of columns in a given range, table, or array.

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

    Is there a way to get the date of the last value in that column?

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

      For the last header value using this data. The formula can be:
      =INDEX(A2:NZ2,,COUNTA(A2:NZ2))
      This would be a more effective formula if a table was used instead of ranges. We then would not need to reference column NZ.

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

    Thanks for the video...

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

      You're very welcome Tushar.

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

    This only works when you have the column before the data range..... correct?

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

      No, you can return the result to anywhere.

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

    Thanks!

  • @Victoria-mz6dr
    @Victoria-mz6dr 2 ปีที่แล้ว

    Is there a way to do this in Power Query?

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

      I'm positive there is, but I'm not sure of the approach to write here. Sounds like a nice challenge Victoria.

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

    Great video, but if there are blanks in the data it gums it up a bit.

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

      For sure. Blanks can be naughty in Excel. Using the header row for the count is more reliable, unless you have a blank column.

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

      You could use the following formula to find the last value in one row
      =index(yourvaluecells,,match(9.9e307,yourvaluecells,1))

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

      @@Computergaga pls share formula

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

    great video! was really helpful. i used the index formula to pull data for calculation. One question, how can i keep the data thats being pull for calculation to not changed when new data are being added to the table? thank you.

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

      Thank you. To stop it from updating when new data is added, you could to remove the formula. Select the cell(s), copy and paste values.

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

      Computergaga thank you for the reply. This is what we are doing now. Was hoping it can be automated to reduce human error. ☺️

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

      Well the formula is automated to always return the last row even when the table expands. But if you don't want this you can remove the formula.
      Other options could be Power Query or a macro.

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

    Thanks for the video, very helpful. Only problem I am having is that some cells in my row are empty, so it doesn't include them in the counta function, which means the counta value is less than it should be. Any way to overcome this?

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

      Thank you Carlos. you could run the COUNTBLANK function also and add them together.

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

      @@Computergaga Thank you so much! I spent hours trying to find this resolution!

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

    I want do following this how can I enter formula for this
    1) When C1 is equal to D1 then store D1 value in next sheet/ in this sheet
    2) again when C1 is equal to D1 then store D1 value in next sheet/ in this sheet below above value
    Give me the solution of this

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

    Thank you for sharing. Loved the tutorial and I thought I found a solution to my problem; however, the formula is not working? It is just showing #REF! and not the last value? I tried semi colon as suggested below? that didn't work for me.
    I have used a name array (ID1_BEST5) in a motorsports points table which highlights the total points at the end of each rd (total of 10 rds in the championship) not highlighting ever race that makes up a round (e.g. 3 races = 1 rd), so ID1_BEST5 cells are H9, L9, P9, T9 and so on.
    I want/need to display each riders last points they scored for a round. Here is the formula I used from your tutorial
    =INDEX(ID1_BEST5,1,COUNTA(ID1_BEST5))
    No idea why this is not working because your lesson made so much sense.
    If I copy (and link the cells) from each rd total and put them next to each other and/or name the array with a new name, it works, but this seems like a lot of extra steps?
    Thank you, I have been reading the net for hours/days trying to find a solution.

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

      Thank you Bill. I cannot tell from your formula what the problem might be though.

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

    When i put in the formula=index(b4:k4,1,counta(b4:k4))a vindow pops up and tell me that there is a failure somewhere!why will it not work for me?

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

      Could be that you need semi colons instead of commas =INDEX(B4:K4;1;COUNTA(B4:K4))

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

      I have another problem, if you have the time for it. I like to retrieve values from 14 different cells in a row over a period of 14 days into one cell. Each day i put in a value in a new cell(yellow) and this new value shall replace the value from the day before and presented in the same cell(blue).The blanks cells between the yellows is formulars and can not be changed. I can not figure out to create this formula. Is there a solution for this? A1 is blue. B1, C1, E1, G1, I1, K1, M1, O1, Q1, S1, U1, W1, Y1, AA1 is all yellow

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

      I'm not exactly sure what you mean. It sounds like this video is exactly what you want. Retrieving the last value in the row of yellows and putting it in the blue cell.

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

    How i can get last value in a row when is text format? Thanks

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

      This technique will work with text also Silvio.

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

      @@Computergaga With text, this not work for me. =INDEKS(B3:NE3,1,COUNTA(B3:NE3)) not work

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

      Maybe you have blank cells in the range. COUNTA will count all non blank cells from B3:NE3.

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

      @@Computergaga yes i have blank cells... have any other formula for my problem?

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

      There is a function named COUNTBLANK. To find the last row, you need to add the COUNTA and COUNTBLANK results together.

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

    What if the row has an empty cells in between the values

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

      That would present a problem. Empty cells are rarely helpful.
      The best solution would be for this range to be formatted a table. Then COLUMNS can be used instead of COUNTA.

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

    SALUTE TO YOU 😻

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

    Great video but you made one mistake in calculating the difference %. Formula should be (Current-Prior)/ Prior. In this case (636-527)/527 or 20.7% difference.

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

      Good point David. Well spotted. Thank you for your comments on the video.

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

    how about last value in a row

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

      That is what the video is showing. The same tech pique can be applied to a column though. Just adjust the ranges.

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

    getting a 0 value..:(

  • @bq.
    @bq. ปีที่แล้ว

    TLDR: =index(range:range,1,counta(range))