PC Review


Reply
Thread Tools Rate Thread

add If to formula to blank #n/a

 
 
Diddy
Guest
Posts: n/a
 
      28th Aug 2008
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
 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      28th Aug 2008
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(Stats!$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

 
Reply With Quote
 
Diddy
Guest
Posts: n/a
 
      28th Aug 2008
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(Stats!$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

 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      28th Aug 2008
Welcome, Deirdre
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500, Files:358, Subscribers:55
xdemechanik
---
"Diddy" <(E-Mail Removed)> wrote in message
news:38F24B98-81D4-4A8C-9D6B-(E-Mail Removed)...
> Thank you Max :-)
> --
> Deirdre



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to return a blank formula cell if the reference is blank? waybomb Microsoft Excel Worksheet Functions 2 22nd Jan 2009 05:53 PM
Average Formula to display blank cell if named range is blank Rachael F Microsoft Excel Worksheet Functions 3 22nd Feb 2008 05:05 PM
VB- If first cell with formula is blank, all cells in column returns blank. mnhesh Microsoft Excel Misc 2 12th May 2004 05:14 PM
Hiding formula results when blank cell within formula Michael J. Malinsky Microsoft Excel Worksheet Functions 4 31st Mar 2004 04:06 PM
Want chart to be blank (gap) where a formula returns blank Gav !! Microsoft Excel Charting 4 7th Jan 2004 02:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.