Hi,
I am trying to make a column to obtain last values that were added in some table. Each month table expands so new values are added...
So far, I managed to get the way to obtain last value, last value -1 and last value -2 (so I'm having last 3 values in other words).
My problem comes when the last values happen to have same value. then formula seems that cant read it as 2 separate items and ignores it.
And for some reason not always reads correctly values.
Below example table (I actually work with values than can be also text, or %, not just numbers, but I assume formula would work same regardless the cell format).
A2 formula: =INDEX(D2:O2,MATCH(LOOKUP(2,1/(D2:O2<>""),D2:O2),D2:O2,0)-2)
B2 formula: =INDEX(D2:O2,MATCH(LOOKUP(2,1/(D2:O2<>""),D2:O2),D2:O2,0)-1)
C2 formula: =IFNA(LOOKUP(2,1/(D2:O2<>""),D2:O2),"")
Thanks in advance!
I am trying to make a column to obtain last values that were added in some table. Each month table expands so new values are added...
So far, I managed to get the way to obtain last value, last value -1 and last value -2 (so I'm having last 3 values in other words).
My problem comes when the last values happen to have same value. then formula seems that cant read it as 2 separate items and ignores it.
And for some reason not always reads correctly values.
Below example table (I actually work with values than can be also text, or %, not just numbers, but I assume formula would work same regardless the cell format).
Last value minus2 | Last value minus 1 | Last value | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
#VALUE! | #SPILL! | 1 | 1 | 2 | 4 | 2 | 1 | |||||||
#SPILL! | 0 | 1 | 0 | 1 | 1 | 2 | 1 | |||||||
1 | 3 | 5 | 1 | 3 | 5 | 5 | ||||||||
#VALUE! | #SPILL! | 2 | 2 | 4 | 1 | 2 | ||||||||
#VALUE! | #SPILL! | 2 | 2 | 3 | 2 | 2 | ||||||||
1 | 1 | 2 | 1 | 1 | 1 | 2 |
A2 formula: =INDEX(D2:O2,MATCH(LOOKUP(2,1/(D2:O2<>""),D2:O2),D2:O2,0)-2)
B2 formula: =INDEX(D2:O2,MATCH(LOOKUP(2,1/(D2:O2<>""),D2:O2),D2:O2,0)-1)
C2 formula: =IFNA(LOOKUP(2,1/(D2:O2<>""),D2:O2),"")
Thanks in advance!