Correct my formula please

srizki

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

thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,066
Office Version
  1. 365
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,831
Office Version
  1. 365
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,831
Office Version
  1. 365
Platform
  1. Windows
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,831
Office Version
  1. 365
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,831
Office Version
  1. 365
Platform
  1. Windows
In fact it does not even accept zero. why is that.?
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,066
Office Version
  1. 365
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,831
Office Version
  1. 365
Platform
  1. Windows
Sorry Oaktree, I did not see that.
 

srizki

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

Forum statistics

Threads
1,176,416
Messages
5,902,969
Members
435,002
Latest member
chenmoti

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
Top