Excel Iferror function help

nelsonjos

New Member
Joined
Mar 25, 2013
Messages
5
Hello,

I am trying to add an iferror to my index function to give me an error message.

I have 4 columns A) Years, B) Interceptions, C) Yards, D) Wins. There are a list of years from 1991 to 2010 in column A. I have two input cells one for years and desired stats. The output cell gives me the required stat with the formula =INDEX($B$6:$D$25,MATCH(G6,A6:A25,0),MATCH(G7,$B$5:$D$5,0))

I want to be able to give an error message when there is a year that is outside of my 1991-2010 range.

I have been trying to add an iferror function but every time I do it gives me an error message.

Thanks so much.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Yeah that works but is there a way that I can limit it to the year. When I enter an invalid name in my other input cell it still gives me the same error message.
 
Upvote 0
Not with IFERROR, but try:

=IF(MEDIAN(G6,A6:A25)=G6,INDEX($B$6:$D$25,MATCH(G6,A6:A25,0),MATCH(G7,$B$5:$D$5,0)),"Wrong Year")
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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