SOLVED

selecting data from variable row length

Copper Contributor

Hi, 

 

I use data from row 4 last Cell (M4) and 5th last Cell (H4) entry.

But subsequent rows (5, 6, etc.) do not have equal data range.

What function can I enter in Cell B4,5,6,etc., to always find last Cell and 5th last Cell data?

 

 

drdree73_1-1650875761653.png

 

 

6 Replies
best response confirmed by VI_Migration (Silver Contributor)
Solution

@drdree73 

In B4, if you have Microsoft 365 or Office 2021:

=LET(m,MATCH(9.99999999999999E+307,4:4),INDEX(4:4,m)/INDEX(4:4,m-4))

Fill down.

If you have an older version:

=INDEX(4:4,MATCH(9.99999999999999E+307,4:4))/INDEX(4:4,MATCH(9.99999999999999E+307,4:4)-4)

Omg, it works. Thank you very much.

How could a "normal" user ever find such solutions?? 🤷‍:male_sign:

@drdree73 

By visiting a forum such as this one [grin]

indeed indeed :face_with_tears_of_joy:

Since applying the formula, my excel tabs/sheets have become hidden (most of the time). They are there, but invisible. Show tabs is on. Any idea?

 

drdree73_1-1650891608827.png

 

drdree73_0-1650891568083.png

 

@drdree73 

No idea. Formulas have nothing to do with showing sheet tabs or not...

1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution

@drdree73 

In B4, if you have Microsoft 365 or Office 2021:

=LET(m,MATCH(9.99999999999999E+307,4:4),INDEX(4:4,m)/INDEX(4:4,m-4))

Fill down.

If you have an older version:

=INDEX(4:4,MATCH(9.99999999999999E+307,4:4))/INDEX(4:4,MATCH(9.99999999999999E+307,4:4)-4)

View solution in original post