Thank you very instructive. In addition We can define the data as a table and the formula will automatically update if you add row or column(don't forget to add row 3 when updating formula for the first column)
Thanks Thanks Thanks A supor ton, I was literraly frustrated & nobody has helped me for this simple logic i was creating on google sheet, this has saved me.
There is one drawback with your XLOOKUP version of finding the last non-blank cell - it does not work if the last cell contains a number, however, my version is very similar to yours and is kind of based on an old way using LOOKUP. So here it is =LET(fRow,XLOOKUP(K3,A4:A13,B4:I13),XLOOKUP(TRUE,fRow"",fRow,,0,-1)). this detects numeric and alphanumeric as well.
Hi Chandoo.. interesting challenge and clever solutions! Here is totally wacky one I put together, using the Reference version of INDEX: =INDEX((B4:B13,C4:C13,D4:D13,E4:E13),MATCH(K3,A4:A13,0),,COUNTA(XLOOKUP(K3,A4:A13,B4:E13))-COUNT(XLOOKUP(K3,A4:A13,B4:E13))) Admittedly more convoluted, but never the less fun to construct. Thanks for the good learning and inspiration on this one. Thumbs up!!
@@chandoo_ Hi Chandoo.. good point. Here's another using your MATCH("zzzz") trick: =INDEX(A4:I13,MATCH(K3,A4:A13),MATCH("zzzzz",INDEX(A4:I13,MATCH(K3,A4:A13),),1)) This one would be more flexible for expanding columns.. like your examples. Thanks for the "zzzzz" trick! Had not thought of that before.. excellent! Thumbs up!!
Marvelous video chandoo, I have a question, can you help me please. Is there any trick or way to automatically fill the cell with particular formula. To be clear, i have a sheet and I asked user to input an integer value and as soon as user put an integer value, i have applied sequence formula using that value to create a sequence of that much row and After that on the adjacent column, i want a formula that should do something like add left cell value with 5, but as soon as the sequence over, i want nothing in next row not even formula.. since I am using sequence formula, hence I can't use table otherwise all the work will be very easy. Also adding the formula to whole column is not possible because of some constraints.
Thanks Anu... Excel formulas cannot write themselves. You can either use IF to on / off the formula functionality or use some automation with VBA to auto-fill formulas based on the input data. Excel also offers # operator to dynamically stretch formulas based on the dynamic array ranges. If you are not familiar with it and not sure how it can help, watch this video - th-cam.com/video/kR6czKY4FEw/w-d-xo.html
@@chandoo_ thanks a lot.. yes i have watched your video, it's best.. but it only work on spill range i think.. but can #operator work on those dynamic ranges which are not in spill range..
The XLOOKUP looks to be exactly what I need except my data has multiple values and blanks all in a single column that I'd like to return the last and largest non-blank value for that particular lookup value.
Hey buddy. Can you help me with something wherein we can use excel to send to email alerts to different people in the organisation. Like properly formatted excel tables or charts on the body of the mail along with the the file for review. Is it even possible in excel. It would be great help if you could suggest something.
Look at Ron de Bruin's website (Google it) for all sorts of ways to send emails from Excel, either in the body or as attachments, however you may benefit from having a single shared file on OneDrive / SharePoint and just sending links to it...
As mentioned by Oakley, refer to Ron's website for some ready to use code. You can also see these page for more examples - chandoo.org/wp/send-mails-using-excel-vba-and-outlook/ - chandoo.org/wp/introduction-to-mail-merge/
Hello Papa... Please see this video for getting started with Power BI. I have a playlist with more videos on Power BI too. th-cam.com/video/CJW-Yb4PfZ8/w-d-xo.html
I have explained that in the video. When you use "zzzzz" in lookups for approximate value, since there is no such value, Excel gives you the last cell with a value.
Thank you very instructive. In addition We can define the data as a table and the formula will automatically update if you add row or column(don't forget to add row 3 when updating formula for the first column)
Thanks Thanks Thanks A supor ton, I was literraly frustrated & nobody has helped me for this simple logic i was creating on google sheet, this has saved me.
There is one drawback with your XLOOKUP version of finding the last non-blank cell - it does not work if the last cell contains a number, however, my version is very similar to yours and is kind of based on an old way using LOOKUP. So here it is =LET(fRow,XLOOKUP(K3,A4:A13,B4:I13),XLOOKUP(TRUE,fRow"",fRow,,0,-1)). this detects numeric and alphanumeric as well.
That is awesome addition Chris. Donut for you 🍩
I have been learning a lot from your videos and blogs. Following since 2011 (first time I started using excel) and still learning today.
Thanks Tushar for continued love and support :)
Thank you for the explanation, I was looking for exactly this.
Hi Chandoo.. interesting challenge and clever solutions! Here is totally wacky one I put together, using the Reference version of INDEX: =INDEX((B4:B13,C4:C13,D4:D13,E4:E13),MATCH(K3,A4:A13,0),,COUNTA(XLOOKUP(K3,A4:A13,B4:E13))-COUNT(XLOOKUP(K3,A4:A13,B4:E13)))
Admittedly more convoluted, but never the less fun to construct. Thanks for the good learning and inspiration on this one. Thumbs up!!
Cool... It might be a bit too restrictive as you need to change the formula when there is 5th column.
@@chandoo_ Hi Chandoo.. good point. Here's another using your MATCH("zzzz") trick:
=INDEX(A4:I13,MATCH(K3,A4:A13),MATCH("zzzzz",INDEX(A4:I13,MATCH(K3,A4:A13),),1))
This one would be more flexible for expanding columns.. like your examples.
Thanks for the "zzzzz" trick! Had not thought of that before.. excellent! Thumbs up!!
Many thanks! It was very interesting and helpful
You are welcome!
Marvelous video chandoo,
I have a question, can you help me please. Is there any trick or way to automatically fill the cell with particular formula.
To be clear, i have a sheet and I asked user to input an integer value and as soon as user put an integer value, i have applied sequence formula using that value to create a sequence of that much row and After that on the adjacent column, i want a formula that should do something like add left cell value with 5, but as soon as the sequence over, i want nothing in next row not even formula.. since I am using sequence formula, hence I can't use table otherwise all the work will be very easy.
Also adding the formula to whole column is not possible because of some constraints.
Thanks Anu...
Excel formulas cannot write themselves. You can either use IF to on / off the formula functionality or use some automation with VBA to auto-fill formulas based on the input data. Excel also offers # operator to dynamically stretch formulas based on the dynamic array ranges. If you are not familiar with it and not sure how it can help, watch this video - th-cam.com/video/kR6czKY4FEw/w-d-xo.html
@@chandoo_ thanks a lot.. yes i have watched your video, it's best.. but it only work on spill range i think.. but can #operator work on those dynamic ranges which are not in spill range..
Also in future is it possible that you will make videos on automation tutorial i.e. VBA
am using 2013, what if there is a formula that returns nothing in a "blank" cell ie invalid lookup and need to exclude it as last lookup
At 05:29 instead of getting freedom i got 0, why? Didn't understand it,Please Guide
Excellent Mr C............please help me out with this, what if I would like to get the column header of the last non blank cell value.
You can follow the idea but use INDEX on the top row to get header info.
same function how can we do that in power pivot dax function.. can pls suggest something
The XLOOKUP looks to be exactly what I need except my data has multiple values and blanks all in a single column that I'd like to return the last and largest non-blank value for that particular lookup value.
The list is technically unsorted but every instance counting down the column is the most updated info for that lookup criteria.
Hey buddy. Can you help me with something wherein we can use excel to send to email alerts to different people in the organisation. Like properly formatted excel tables or charts on the body of the mail along with the the file for review. Is it even possible in excel. It would be great help if you could suggest something.
Look at Ron de Bruin's website (Google it) for all sorts of ways to send emails from Excel, either in the body or as attachments, however you may benefit from having a single shared file on OneDrive / SharePoint and just sending links to it...
As mentioned by Oakley, refer to Ron's website for some ready to use code. You can also see these page for more examples - chandoo.org/wp/send-mails-using-excel-vba-and-outlook/
- chandoo.org/wp/introduction-to-mail-merge/
Thanks to both of you will definitely learn from both the pages.
Requesting kindly make video on POWERBI.
We are Waiting
Hello Papa... Please see this video for getting started with Power BI. I have a playlist with more videos on Power BI too.
th-cam.com/video/CJW-Yb4PfZ8/w-d-xo.html
@@chandoo_ Thanks! Sir, You are doing GREAT
What is the logic behind using rept(z) or "zzzzzzz"?? and how does it work?
I have explained that in the video. When you use "zzzzz" in lookups for approximate value, since there is no such value, Excel gives you the last cell with a value.
What would be value for Number.
Thanks! Sir
Thanks interesting