If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
add If to formula to blank #n/a
Hi everyone,
I'm using the following formula =INDEX(Stats!$K$2:$K$47,MATCH($B3,Stats!$G$2:$G$47 ,0)) How do I add to this to not have #N/A when it doesn't find a match? Thank you! -- Deirdre |
#2
|
|||
|
|||
add If to formula to blank #n/a
Just add an IF(ISNA(..) error trap on the MATCH part of it, eg:
=IF(ISNA(MATCH($B3,Stats!$G$2:$G$47,0)),"",INDEX(S tats!$K$2:$K$47,MATCH($B3,Stats!$G$2:$G$47,0))) Adapt the return: "" to suit what you want for unmatched cases -- Max Singapore http://savefile.com/projects/236895 Downloads:17,500 Files:358 Subscribers:55 xdemechanik --- "Diddy" wrote: Hi everyone, I'm using the following formula =INDEX(Stats!$K$2:$K$47,MATCH($B3,Stats!$G$2:$G$47 ,0)) How do I add to this to not have #N/A when it doesn't find a match? Thank you! -- Deirdre |
#3
|
|||
|
|||
add If to formula to blank #n/a
Thank you Max :-)
-- Deirdre "Max" wrote: Just add an IF(ISNA(..) error trap on the MATCH part of it, eg: =IF(ISNA(MATCH($B3,Stats!$G$2:$G$47,0)),"",INDEX(S tats!$K$2:$K$47,MATCH($B3,Stats!$G$2:$G$47,0))) Adapt the return: "" to suit what you want for unmatched cases -- Max Singapore http://savefile.com/projects/236895 Downloads:17,500 Files:358 Subscribers:55 xdemechanik --- "Diddy" wrote: Hi everyone, I'm using the following formula =INDEX(Stats!$K$2:$K$47,MATCH($B3,Stats!$G$2:$G$47 ,0)) How do I add to this to not have #N/A when it doesn't find a match? Thank you! -- Deirdre |
#4
|
|||
|
|||
add If to formula to blank #n/a
Welcome, Deirdre
-- Max Singapore http://savefile.com/projects/236895 Downloads:17,500, Files:358, Subscribers:55 xdemechanik --- "Diddy" wrote in message ... Thank you Max :-) -- Deirdre |
Thread Tools | |
Display Modes | |
|
|