Correct my formula please

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,791
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
=IF(ISNA(INDEX(E5:E455,MATCH(A5,D5:D455,0))))

thanks
 

Some videos you may like

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
7,984
What do you want this to return?

You don't have the second or third arguments of your IF formula filled in...
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,791
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I am comparing two columns, but I do not want #N/A error, that produces if value is not found, the main thing I want to learn is how can I avoid #N/A error using Match function.
I am using this =INDEX($F$2:F$454,MATCH($A519,$E$2:$E$454,0))
and this gives me the error, but when I use this
=IF(ISNA(VLOOKUP($D66,$A$4:$B$95,2,0)),0,(VLOOKUP($D66,$A$4:$B$95,2,0)))
that is fine, I just like to know how can I avoid #N/A error.
Thanks Oaktree.
 

Seti

Well-known Member
Joined
May 19, 2002
Messages
2,916
Maybe this?

=IF(ISNA(MATCH($A519,$E$2:$E$454,0)),0,INDEX($F$2:F$454,MATCH($A519,$E$2:$E$454,0)))
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,791
Office Version
  1. 365
  2. 2016
Platform
  1. Windows

ADVERTISEMENT

Yes Seti, I worked, I learned something new today.
thanks to both of you. and thank to MR. EXCEL
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,791
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Question: why there is no "0" in both of those Match functions.
thanks
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,791
Office Version
  1. 365
  2. 2016
Platform
  1. Windows

ADVERTISEMENT

In fact it does not even accept zero. why is that.?
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
7,984
Question: why there is no "0" in both of those Match functions.
thanks

Isn't there?

In Seti's formula...
=IF(ISNA(MATCH($A519,$E$2:$E$454,0)),0,INDEX($F$2:F$454,MATCH($A519,$E$2:$E$454,0)))
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,791
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Sorry Oaktree, I did not see that.
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,791
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Sorry Oaktree, I forgot to put zero in my formula.
thanks
 

Watch MrExcel Video

Forum statistics

Threads
1,109,466
Messages
5,528,972
Members
409,848
Latest member
Blomsten
Top