Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I make a "Match" Function analyze from right to left?

I am analyzing how many months since last purchase from client. Clients are in the row and columns are the months. I have the exact formula I need; the only thing is that it doesn’t analyze from right to left. So instead of counting blank cells since last purchase it is counting blank cells up to first purchase.

enter image description here

Current formula: =MATCH(FALSE,ISBLANK(C7:L7),0)-1

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I tried to play around with adding in index as well as offset formulas but it seems as if these formulas are used more for cross analyzing columns and rows. Please Help!

>Solution :

Something like this:

=TAKE(SCAN(0,A2:H2,LAMBDA(a,b,IF(b<>"",0,a+1))),,-1)

Result:

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading