IFERROR Formula help

bwlytkr

Board Regular
Joined
Jun 8, 2012
Messages
70
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)))
 

Scott T

Well-known Member
Joined
Dec 14, 2016
Messages
2,568
Office Version
365, 2016
Platform
Windows
Your last iferror does not have a value-if-error that is the value to return if there is an error
 

bwlytkr

Board Regular
Joined
Jun 8, 2012
Messages
70
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
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,314
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:

Scott T

Well-known Member
Joined
Dec 14, 2016
Messages
2,568
Office Version
365, 2016
Platform
Windows
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))))
 

Forum statistics

Threads
1,078,437
Messages
5,340,274
Members
399,361
Latest member
Linford

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top