Index / match

leopardhawk

Well-known Member
Joined
May 31, 2007
Messages
611
Office Version
  1. 2016
Platform
  1. Windows
Hello forum friends, can someone please tell me what is wrong with this formula? I keep getting the error that I have entered too few arguments.

Code:
=index(B55:B116,match(year(now)),A55:A116,0))

Column A has years in it and column B has dollar amounts.


Excel 2016 (Windows) 32 bit
AB
21966$5,000
31967$5,000
41968$5,100
51969$5,200
61970$5,300
71971$5,400
81972$5,500
91973$5,600
101974$6,600
111975$7,400
121976$8,300
131977$9,300
141978$10,400
151979$11,700
161980$13,100
171981$14,700
181982$16,500
191983$18,500
201984$20,800
211985$23,400
221986$25,800
231987$25,900
241988$26,500
251989$27,700
261990$28,900
271991$30,500
281992$32,200
291993$33,400
301994$34,400
311995$34,900
321996$35,400
331997$35,800
341998$36,900
351999$37,400
362000$37,600
372001$38,300
382002$39,100
392003$39,900
402004$40,500
412005$41,100
422006$42,100
432007$43,700
442008$44,900
452009$46,300
462010$47,200
472011$48,300
482012$50,100
492013$51,100
502014$52,500
512015$53,600
522016$54,900
532017$55,300
542018$55,900
552019$57,400
562020
572021
582022
592023
602024
612025
cpp_web
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I should have mentioned that I want the formula to return the dollar amount for the current year.
 
Upvote 0
try

=INDEX(B1:B116,MATCH(YEAR(TODAY()),A1:A116,0))
 
Last edited:
Upvote 0
Wow! Thank you all so much. I must have been too tired to notice the missing bracket. Cheers!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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