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!
@Computergaga Жыл бұрын
Thanks Sandy.
@geoffh10552 жыл бұрын
Always great to watch, very helpful instructive and well explained. A definite 'go to' resource
@Computergaga2 жыл бұрын
Thank you Geoff 👍😊
@wayneedmondson10656 жыл бұрын
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!
@Computergaga6 жыл бұрын
Thank you Wayne.
@bramstebbings19482 жыл бұрын
@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.
@Computergaga2 жыл бұрын
Thanks, Bram.
@brauliogarcia18364 жыл бұрын
I have been looking for this solution for a long time, thank you!
@Computergaga3 жыл бұрын
You're welcome, Braulio.
@mestergabbe4 жыл бұрын
Thank you! Im new with google sheets/excel. Been struggling with this formula, finally i have it
@Computergaga3 жыл бұрын
You are welcome, Gabriel.
@SyedMuzammilMahasanShahi6 жыл бұрын
Beautiful work. Thanks for sharing
@Computergaga6 жыл бұрын
You're very welcome Syed.
@tej96122 жыл бұрын
It works. God bless you. Thanks 🙏
@Computergaga2 жыл бұрын
You're welcome!
@buddhikaeranda22463 жыл бұрын
Really really helpful ...!good job!
@Computergaga3 жыл бұрын
Thank you, Buddhika.
@miguelmachado56143 жыл бұрын
Works like a charm! thanks
@Computergaga3 жыл бұрын
You're welcome!
@houssamHi3 жыл бұрын
Great description sir, you should get 10 likes
@Computergaga3 жыл бұрын
Thank you very much 👍
@haroldsalesvillamor5657 Жыл бұрын
verrryyyy helpful, thank you :)
@Computergaga Жыл бұрын
You're welcome 👍
@beccachavez93283 жыл бұрын
Thank you so much for this video!!
@Computergaga3 жыл бұрын
No problem 😊
@catcat25086 жыл бұрын
Very good tutorial👍🏻
@Computergaga6 жыл бұрын
Thank you Phyllis.
@appahwoyengikuro32283 жыл бұрын
Just what i needed right now
@Computergaga3 жыл бұрын
Happy to help.
@dbcooper4884 жыл бұрын
I'm a big fan of you after watching this video
@Computergaga4 жыл бұрын
Great! Thank you.
@dbcooper4884 жыл бұрын
@@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
@rodrigomachado36783 жыл бұрын
This is great, thank you!
@Computergaga3 жыл бұрын
You're welcome, Rodrigo.
@kaeaek61432 жыл бұрын
I got it! Thank you!
@Computergaga2 жыл бұрын
You're welcome 👍
@sarathganesh4 жыл бұрын
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
@THEGLADIUS1015 жыл бұрын
Hey Allan what is the logic of counta in the index column section that lets you capture the last value?
@Computergaga5 жыл бұрын
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.
@ericapearl042 жыл бұрын
Great example! But what if I am looking for text comments entered & not numbers?
@Computergaga Жыл бұрын
Thank you! The COUNTA function will count all non-blank cells, so text values too 😊
@mansourzanaty6913 жыл бұрын
Thank you so much.
@Computergaga3 жыл бұрын
You're welcome, Mansour.
@ruthrobinson15183 жыл бұрын
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.
@tahirnazir27043 жыл бұрын
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 Жыл бұрын
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.
@sourabh54615 жыл бұрын
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..
@Computergaga5 жыл бұрын
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.
@PerPettersson5 жыл бұрын
Brilliant explanation. Thank you!
@Computergaga5 жыл бұрын
Thank you Per.
@minhthai28043 жыл бұрын
Hi, how about if there is any empty cells in between the columns, this can't be work at all
@Computergaga3 жыл бұрын
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.
@minhthai28043 жыл бұрын
@@Computergaga thanks
@kailinn36465 жыл бұрын
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.
@Computergaga5 жыл бұрын
Sure. Just edit the ranges used in the INDEX and COUNTA functions to look along the rows of dates and not the values.
@UrosDavidovic254 жыл бұрын
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.
@nidhikadam71733 жыл бұрын
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?
@osamasherwani23545 жыл бұрын
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?
@airtimebill5 жыл бұрын
I need this too??? Help
@kanishkadeshpande22133 жыл бұрын
Can you please suggest same for Date? I am in need
@Computergaga3 жыл бұрын
Depends more specifically on what you are asking, Kanishka. The technique in the video can return dates, if that is what you are asking.
@arzumehrali90836 жыл бұрын
Thank you! it is helpful
@Computergaga3 жыл бұрын
You're welcome, Arzu.
@MichaelBurnsGuitar3 жыл бұрын
I tried the first one in a column, returned #REF, time for more troubleshooting!
@Computergaga3 жыл бұрын
👍
@ibrahemjamil100410 ай бұрын
Just one quotation before counta
@TwinTwo602 Жыл бұрын
Is there a way to get the date of the last value in that column?
@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.
@Whitegatellc13 жыл бұрын
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.
@Computergaga3 жыл бұрын
Great! You can use the same formula, Abimbola, but reference C2:CZ2 instead.
@ayoubyaacoubi24375 жыл бұрын
Brilliant thank u so much
@Computergaga5 жыл бұрын
You're welcome. Thank you Ayoub.
@nielsnielsen27085 жыл бұрын
yes okay, the formula is working now. thanks.
@Computergaga5 жыл бұрын
Excellent!
@oananegrea61103 жыл бұрын
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 ??
@XxX-nt7yn10 ай бұрын
What if the data is '0012346 in cell GE Text format?
@Computergaga9 ай бұрын
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.
@romany4all Жыл бұрын
Great .. go on
@AsiriRodrigoAccounting5 жыл бұрын
Thanks
@Computergaga5 жыл бұрын
You're welcome Asiri.
@Victoria-mz6dr2 жыл бұрын
Is there a way to do this in Power Query?
@Computergaga2 жыл бұрын
I'm positive there is, but I'm not sure of the approach to write here. Sounds like a nice challenge Victoria.
@tusharnarke53585 жыл бұрын
Thanks for the video...
@Computergaga5 жыл бұрын
You're very welcome Tushar.
@wodezhu5 жыл бұрын
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.
@Computergaga5 жыл бұрын
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.
@wodezhu5 жыл бұрын
Computergaga thank you for the reply. This is what we are doing now. Was hoping it can be automated to reduce human error. ☺️
@Computergaga5 жыл бұрын
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.
@ricardolimpias4 жыл бұрын
Thanks!
@Computergaga4 жыл бұрын
You're welcome Ricardo.
@jennifergodreau52354 жыл бұрын
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:)
@rickkeev49196 жыл бұрын
Great video, but if there are blanks in the data it gums it up a bit.
@Computergaga6 жыл бұрын
For sure. Blanks can be naughty in Excel. Using the header row for the count is more reliable, unless you have a blank column.
@vandalo74946 жыл бұрын
You could use the following formula to find the last value in one row =index(yourvaluecells,,match(9.9e307,yourvaluecells,1))
@osamasherwani23545 жыл бұрын
@@Computergaga pls share formula
@carlosubeda64664 жыл бұрын
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?
@Computergaga4 жыл бұрын
Thank you Carlos. you could run the COUNTBLANK function also and add them together.
@stephanrodriguez65874 жыл бұрын
@@Computergaga Thank you so much! I spent hours trying to find this resolution!
@htcsilvio4 жыл бұрын
How i can get last value in a row when is text format? Thanks
@Computergaga4 жыл бұрын
This technique will work with text also Silvio.
@htcsilvio4 жыл бұрын
@@Computergaga With text, this not work for me. =INDEKS(B3:NE3,1,COUNTA(B3:NE3)) not work
@Computergaga4 жыл бұрын
Maybe you have blank cells in the range. COUNTA will count all non blank cells from B3:NE3.
@htcsilvio4 жыл бұрын
@@Computergaga yes i have blank cells... have any other formula for my problem?
@Computergaga4 жыл бұрын
There is a function named COUNTBLANK. To find the last row, you need to add the COUNTA and COUNTBLANK results together.
@pipo4412 жыл бұрын
This only works when you have the column before the data range..... correct?
@Computergaga Жыл бұрын
No, you can return the result to anywhere.
@pkentertainment19793 жыл бұрын
What if the row has an empty cells in between the values
@Computergaga Жыл бұрын
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.
@nielsnielsen27085 жыл бұрын
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?
@Computergaga5 жыл бұрын
Could be that you need semi colons instead of commas =INDEX(B4:K4;1;COUNTA(B4:K4))
@nielsnielsen27085 жыл бұрын
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
@Computergaga5 жыл бұрын
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.
@airtimebill5 жыл бұрын
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.
@Computergaga5 жыл бұрын
Thank you Bill. I cannot tell from your formula what the problem might be though.
@janjrukiyasagar23574 жыл бұрын
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
@hrexecutivemarquee Жыл бұрын
SALUTE TO YOU 😻
@Computergaga Жыл бұрын
😊
@olson71173 жыл бұрын
how about last value in a row
@Computergaga3 жыл бұрын
That is what the video is showing. The same tech pique can be applied to a column though. Just adjust the ranges.
@davidraley32395 жыл бұрын
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.
@Computergaga5 жыл бұрын
Good point David. Well spotted. Thank you for your comments on the video.