pick up last value

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
not sure i follow you example
Whats the last column mean - you want to return column N

you only show 1 row - which is unsecured row

the headers are NOT dates
so to lookup december

then
=INDEX(B2:N2,MATCH(A5,B1:N1,0))
with A5 = December
will return the value in december
or a grid lookup
if you wanted to lookup column A for unsecured

but as i say not following

sample xlookup.xlsx
ABCDEFGHIJKLMN
1JANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERVARIANCE
2Unsecured5,498,5765,405,1385,268,3606,110,1115,407,7178,799,4667,112,4696,671,1966,440,0936,747,3236,823,0226,557,260(265,762)
3
4
5december
66557260
Sheet1
Cell Formulas
RangeFormula
A6A6=INDEX(B2:N2,MATCH(A5,B1:N1,0))
 
Upvote 0
not sure i follow you example
Whats the last column mean - you want to return column N

you only show 1 row - which is unsecured row

the headers are NOT dates
so to lookup december

then
=INDEX(B2:N2,MATCH(A5,B1:N1,0))
with A5 = December
will return the value in december
or a grid lookup
if you wanted to lookup column A for unsecured

but as i say not following

sample xlookup.xlsx
ABCDEFGHIJKLMN
1JANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERVARIANCE
2Unsecured5,498,5765,405,1385,268,3606,110,1115,407,7178,799,4667,112,4696,671,1966,440,0936,747,3236,823,0226,557,260(265,762)
3
4
5december
66557260
Sheet1
Cell Formulas
RangeFormula
A6A6=INDEX(B2:N2,MATCH(A5,B1:N1,0))


apologies yes pick up the last December value to the very right for unsecured , not the first instance which would be last year's number
 
Upvote 0
can you change the headers to be dates , then you can easily do it
and still disply the headers as december

i only see 1 december in example

changed some of the months to december different years and then formatted MMMM - date shown in row4

will that work ???

sample xlookup.xlsx
ABCDEFGHIJKLMN
1JANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTDecemberDecemberNOVEMBERDecemberVARIANCE
2Unsecured5,498,5765,405,1385,268,3606,110,1115,407,7178,799,4667,112,4696,671,1966,440,0936,747,3236,823,0226,557,260(265,762)
3
4AUGUST12/1/2212/1/23NOVEMBER12/1/24VARIANCE
512/1/23
66747323
7
Sheet1
Cell Formulas
RangeFormula
I4:N4I4=I1
A6A6=INDEX(B2:N2,MATCH(A5,B1:N1,0))
 
Upvote 0
not sure wy you posted a link ???

OR if you want the last december to be found - then how about

=INDEX($B$2:$N$2,SUMPRODUCT(MAX(COLUMN($B$2:$N$2)*(A8=$B$1:$N$1))-1))

sample xlookup.xlsx
ABCDEFGHIJKLMN
1JANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTdecemberdecemberNOVEMBERdecemberVARIANCE
2Unsecured5,498,5765,405,1385,268,3606,110,1115,407,7178,799,4667,112,4696,671,1966,440,0936,747,3236,823,0226,557,260(265,762)
3
4AUGUSTdecemberdecemberNOVEMBERdecemberVARIANCE
5
6
7
8december
96557260
Sheet1
Cell Formulas
RangeFormula
I4:N4I4=I1
A9A9=INDEX($B$2:$N$2,SUMPRODUCT(MAX(COLUMN($B$2:$N$2)*(A8=$B$1:$N$1))-1))
 
Upvote 0
would this be possible with xlookup?

yes, apologies, i accidentally the first december column
 
Upvote 0
i'm afraid i dont know how with xlookup to get the last entry of a criteria
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,157
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top