lookup but second match

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
707
Office Version
  1. 365
  2. 2010
let's say I wanna do a lookip based on beta but I want the second December result

currently I'm manually deleting column b every month since vlookup and match returns the first result (my match is based on the month)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try:
Book1
ABCDEFGHIJKLMNO
1DECEMBER 2022 -DECEMBER 2023
2DECEMBERJANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERVARIANCE
3alpha2,425,4920009,102,77104,962,717000054,7410-54,741
4beta5,363,5365,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
5gamma1,958,4202,203,3532,424,6874,211,7001,117,4321,091,3124,558,7344,256,9061,271,84630,402,0506,608,4542,107,2333,379,5031,272,270
6
7
8
9
10Find6,557,260
11beta
12Month
13December
14
15
Sheet1
Cell Formulas
RangeFormula
B10B10=INDEX($B$3:$O$5,MATCH($A$11,$A$3:$A$5,0),AGGREGATE(14,6,(COLUMN($B$2:$O$2)-COLUMN($B$2)+1)/($B$2:$O$2=$A$13),1))
 
Upvote 0
Try:
Book1
ABCDEFGHIJKLMNO
1DECEMBER 2022 -DECEMBER 2023
2DECEMBERJANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERVARIANCE
3alpha2,425,4920009,102,77104,962,717000054,7410-54,741
4beta5,363,5365,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
5gamma1,958,4202,203,3532,424,6874,211,7001,117,4321,091,3124,558,7344,256,9061,271,84630,402,0506,608,4542,107,2333,379,5031,272,270
6
7
8
9
10Find6,557,260
11beta
12Month
13December
14
15
Sheet1
Cell Formulas
RangeFormula
B10B10=INDEX($B$3:$O$5,MATCH($A$11,$A$3:$A$5,0),AGGREGATE(14,6,(COLUMN($B$2:$O$2)-COLUMN($B$2)+1)/($B$2:$O$2=$A$13),1))


mad excel skills

maybe I'll just delete column ;B lol
 
Upvote 0
With Excel 365 you could also use:
=INDEX($B$3:$O$5,MATCH($A$11,$A$3:$A$5,0),XMATCH($A$13,B2:O2,,-1))


Book1
ABCDEFGHIJKLMNO
1DECEMBER 2022 -DECEMBER 2023
2DECEMBERJANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERVARIANCE
3alpha2,425,4920009,102,77104,962,717000054,7410-54,741
4beta5,363,5365,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
5gamma1,958,4202,203,3532,424,6874,211,7001,117,4321,091,3124,558,7344,256,9061,271,84630,402,0506,608,4542,107,2333,379,5031,272,270
6
7
8
9Excel 2010Excel 365
10Find6,557,2606,557,260
11beta
12Month
13DECEMBER
Sheet1
Cell Formulas
RangeFormula
B10B10=INDEX($B$3:$O$5,MATCH($A$11,$A$3:$A$5,0),AGGREGATE(14,6,(COLUMN($B$2:$O$2)-COLUMN($B$2)+1)/($B$2:$O$2=$A$13),1))
D10D10=INDEX($B$3:$O$5,MATCH($A$11,$A$3:$A$5,0),XMATCH($A$13,B2:O2,,-1))


 
Upvote 0
Solution
With Excel 365 you could also use:
=INDEX($B$3:$O$5,MATCH($A$11,$A$3:$A$5,0),XMATCH($A$13,B2:O2,,-1))


Book1
ABCDEFGHIJKLMNO
1DECEMBER 2022 -DECEMBER 2023
2DECEMBERJANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERVARIANCE
3alpha2,425,4920009,102,77104,962,717000054,7410-54,741
4beta5,363,5365,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
5gamma1,958,4202,203,3532,424,6874,211,7001,117,4321,091,3124,558,7344,256,9061,271,84630,402,0506,608,4542,107,2333,379,5031,272,270
6
7
8
9Excel 2010Excel 365
10Find6,557,2606,557,260
11beta
12Month
13DECEMBER
Sheet1
Cell Formulas
RangeFormula
B10B10=INDEX($B$3:$O$5,MATCH($A$11,$A$3:$A$5,0),AGGREGATE(14,6,(COLUMN($B$2:$O$2)-COLUMN($B$2)+1)/($B$2:$O$2=$A$13),1))
D10D10=INDEX($B$3:$O$5,MATCH($A$11,$A$3:$A$5,0),XMATCH($A$13,B2:O2,,-1))




htis is why i never tell people im "advanced" in excel
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

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