VLOOKUP and Match to Get Value

MrDB4Excel

Board Regular
Joined
Jan 29, 2004
Messages
161
Office Version
  1. 2013
Platform
  1. Windows
I would like to get the value from the range N5:N16 that matches the month name in cell M23 based on the column range K5:K16.
I think I have the lookup column number incorrect. I set it to 1, but have tried 4 & 5 also.
Any help is greatly appreciated, thank you.

Is this possible? The attached XL2BB shows what I have tried so far without any success. I think I need to include some match function with the VLOOKUP that appears in cell M24.
FortissimoTabulation.xlsm
KLMNOP
1Greyed Text Indicates Actual Rate Used & Kč Received
2Fortissimo Exchange Based On $2,700
3
4MonthActual RateDollarsCurrent RatesAmt TenderedCrowns Received
5April25.026$2,00022.047$2,00050,052.00 Kč
6May24.831$4,00022.082$2,00049,662.00 Kč
7June23.558$8,20022.100$4,20098,943.60 Kč
8July23.402$11,10022.111$2,90067,865.80 Kč
9August$13,80022.121$2,70059,726.70 Kč
10September$16,50022.135$2,70059,764.50 Kč
11October$19,20022.135$2,70059,764.50 Kč
12November$21,90022.135$2,70059,764.50 Kč
13December$24,60022.135$2,70059,764.50 Kč
14January$27,30022.135$2,70059,764.50 Kč
15February$30,00022.135$2,70059,764.50 Kč
16March$32,70022.135$2,70059,764.50 Kč
17
18Average:22.117
19
20
21YearMonthDay
2208/28/20202020828
23August
24#VALUE!
Current Rates
Cell Formulas
RangeFormula
N5N5=D2
M6:M16M6=SUM(M5+O6)
N6N6=SUM(N5+U$7)
N7N7=SUM(N6+V$7)
N8N8=SUM(N7+W$7)
N9N9=SUM(N8+X$7)
N10N10=SUM(N9+Y$7)
N11N11=SUM(N10+Z$7)
N12N12=SUM(N11+AA$7)
N13N13=SUM(N12+AB$7)
N14N14=SUM(N13+AC$7)
N15N15=SUM(N14+AD$7)
N16N16=SUM(N15+AE$7)
P5:P8P5=SUM(L5*O5)
P9:P16P9=SUM(N9*O9)
N18N18=AVERAGE(N5:N16)
N22N22=YEAR(TODAY())
O22O22=MONTH(TODAY())
P22P22=DAY(TODAY())
M22M22=DATE(N22,O22,P22)
M23M23=TEXT(DATE(O22,O22,1),"MMMM")
M24M24=VLOOKUP(M23,K5:K16,1,N5:N16)
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,269
Office Version
  1. 365
Platform
  1. Windows
How about
=VLOOKUP(M23,K5:N16,4,0)
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
=VLOOKUP(M23,$K$5:$N$16,4,0)

Check out the help & syntax required here
 

MrDB4Excel

Board Regular
Joined
Jan 29, 2004
Messages
161
Office Version
  1. 2013
Platform
  1. Windows
Works very well. Perfect. Kudos to you both, Peter and Fluff. Thank you so much for this learning environment.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,269
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Glad we could help & thanks for the feedback.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
Cheers.

BTW, simpler for cell M23 would be =TEXT(M22, "yyyy")

And all those =SUM() formulas do not need the SUM() function.

=M5+O6 gives the same result with less work then =SUM(M5+O6)
=L5*O5 instead of =SUM(L5*O5)
 

MrDB4Excel

Board Regular
Joined
Jan 29, 2004
Messages
161
Office Version
  1. 2013
Platform
  1. Windows
Okay Peter, will give this a try, thanks
 

Watch MrExcel Video

Forum statistics

Threads
1,123,269
Messages
5,600,633
Members
414,396
Latest member
rinianjell

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
Top