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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,214,591
Messages
6,120,425
Members
448,961
Latest member
nzskater

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