IFERROR Formula help

bwlytkr

Board Regular
Joined
Jun 8, 2012
Messages
173
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I could use some help with this formula. First time using an IFERROR formula so not sure what I'm doing wrong. I keep getting a "too few arguments error". Any help would be appreciated.


=IFERROR(INDEX('[TICKET STEP LONG.xlsx]RAW_COMPLETIONS'!$B:$B,MATCH(G2,'[TICKET STEP LONG.xlsx]RAW_COMPLETIONS'!$A:$A,0)),IF(LEN(AM2)=8,AM2,IFERROR(INDEX('[WLS07.xlsx]WLS07'!$b:$b,MATCH(Am2,'[WLS07.xlsx]WLS07'!$a:$a,0)),IFERROR(INDEX('[wls07.xlsx]MAIN CITY'!$d:$d,MATCH(Ai2,'[wls07.xlsx]MAIN CITY'!$B:$B,0)))
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Your last iferror does not have a value-if-error that is the value to return if there is an error
 
Upvote 0
Not sure I follow. Isn't the last iferror telling me if column d in main city matches ai2 to populate the corresponding cell in column b
 
Upvote 0
Format of IFERROR

IFERROR(formula, result if error)

Wheres your "result if error" in that formula?

All you have are IFERROR(INDEX(...MATCH(...)) , should be something here )s
 
Last edited:
Upvote 0
IFERROR(value, value_if_error)
If value does NOT return an error then the result of value is displayed.
If value does return an error then value_if_error is returned.

for example
=IFERROR(INDEX(B1:B7,MATCH("bob",A1:A7,0)),"not found")
If index match returns an error because bob is not found then instead of returning a N/A error the formula returns "not found"


The text in red is the value augment.
The text in blue is what you are missing.
If the index match in red is an error then the zero is what is returned. You should change that to what you want to return if VALUE is an error.

=IFERROR(INDEX('[TICKET STEP LONG.xlsx]RAW_COMPLETIONS'!$B:$B,MATCH(G2,'[TICKET STEP LONG.xlsx]RAW_COMPLETIONS'!$A:$A,0)),IF(LEN(AM2)=8,AM2,IFERROR(INDEX('[WLS07.xlsx]WLS07'!$b:$b,MATCH(Am2,'[WLS07.xlsx]WLS07'!$a:$a,0)),IFERROR(INDEX('[wls07.xlsx]MAIN CITY'!$d:$d,MATCH(Ai2,'[wls07.xlsx]MAIN CITY'!$B:$B,0)),0))))
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,317
Members
448,564
Latest member
ED38

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