#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default fix #N/A error

In a list of assessment data I have current test scores in column L and the
previous test score in column G. I have a formula that works out the
difference between the 2 scores... =IF(L120,L12-G12,"") into column M, but
this returns #N/A if no test result is entered into column L which is causing
problems when I'm trying to record a macro to automatically sort data. I have
tried to change the formula to lose the #N/A but am having to admit defeat!
Data looks like this

G L M
14 15 1
14 13 -1
14 14 0

Any help greatly appreciated!!
Mrs T
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default fix #N/A error

=IF(L120,L12-G12,"") into column M,
but this returns #N/A if no test result is
entered into column L


For that formula to return #N/A either L12 and/or G12 must also contain
#N/A.

Try it like this:

=IF(COUNT(G12,L12)=2,IF(L120,L12-G12,""),"")

--
Biff
Microsoft Excel MVP


"Mrs T." wrote in message
...
In a list of assessment data I have current test scores in column L and
the
previous test score in column G. I have a formula that works out the
difference between the 2 scores... =IF(L120,L12-G12,"") into column M,
but
this returns #N/A if no test result is entered into column L which is
causing
problems when I'm trying to record a macro to automatically sort data. I
have
tried to change the formula to lose the #N/A but am having to admit
defeat!
Data looks like this

G L M
14 15 1
14 13 -1
14 14 0

Any help greatly appreciated!!
Mrs T



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default fix #N/A error

Is column L derived through a formula? I only ask because against a blank
cell, your formula should work just fine. In fact, the more common error to
see with the IF formula is the #VALUE! error, not #N/A, so I'm curious as to
what else is going on in your spreadsheet.

If problem persists, you could use an error checker. Not very fancy, but
effective:
=IF(ISNA(IF(L120,L12-G12,"")),"",IF(L120,L12-G12,""))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Mrs T." wrote:

In a list of assessment data I have current test scores in column L and the
previous test score in column G. I have a formula that works out the
difference between the 2 scores... =IF(L120,L12-G12,"") into column M, but
this returns #N/A if no test result is entered into column L which is causing
problems when I'm trying to record a macro to automatically sort data. I have
tried to change the formula to lose the #N/A but am having to admit defeat!
Data looks like this

G L M
14 15 1
14 13 -1
14 14 0

Any help greatly appreciated!!
Mrs T

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 492
Default fix #N/A error

Your formula won't return #N/A. Is there an #N/A anywhere else in the sheet?
Alan.
"Mrs T." wrote in message
...
In a list of assessment data I have current test scores in column L and
the
previous test score in column G. I have a formula that works out the
difference between the 2 scores... =IF(L120,L12-G12,"") into column M,
but
this returns #N/A if no test result is entered into column L which is
causing
problems when I'm trying to record a macro to automatically sort data. I
have
tried to change the formula to lose the #N/A but am having to admit
defeat!
Data looks like this

G L M
14 15 1
14 13 -1
14 14 0

Any help greatly appreciated!!
Mrs T


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default fix #N/A error

Thank you both - the IF(COUNT worked perfectly. The IF(ISNA returned a
#VALUE! error, maybe because the data in column L comes via
=IF(K12="","",LOOKUP(K12,$AK$12:$AK$55,$AL$12:$AL$ 55)) or more likely
because I've messed it up in the translation!!
Thanks again
Mrs T

"Luke M" wrote:

Is column L derived through a formula? I only ask because against a blank
cell, your formula should work just fine. In fact, the more common error to
see with the IF formula is the #VALUE! error, not #N/A, so I'm curious as to
what else is going on in your spreadsheet.

If problem persists, you could use an error checker. Not very fancy, but
effective:
=IF(ISNA(IF(L120,L12-G12,"")),"",IF(L120,L12-G12,""))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Mrs T." wrote:

In a list of assessment data I have current test scores in column L and the
previous test score in column G. I have a formula that works out the
difference between the 2 scores... =IF(L120,L12-G12,"") into column M, but
this returns #N/A if no test result is entered into column L which is causing
problems when I'm trying to record a macro to automatically sort data. I have
tried to change the formula to lose the #N/A but am having to admit defeat!
Data looks like this

G L M
14 15 1
14 13 -1
14 14 0

Any help greatly appreciated!!
Mrs T



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default fix #N/A error

P.S. you're all absolutely right...it was an #N/A error in column M but I
managed to fix the #N/A error in column L (more good luck than good
management!) and the error in M had magically transformed itself into a
#VALUE! error without my notice. I'd bet my life a man designed Excel - give
me plain and purl knitting any day!!!
Mrs T :)

"Alan" wrote:

Your formula won't return #N/A. Is there an #N/A anywhere else in the sheet?
Alan.
"Mrs T." wrote in message
...
In a list of assessment data I have current test scores in column L and
the
previous test score in column G. I have a formula that works out the
difference between the 2 scores... =IF(L120,L12-G12,"") into column M,
but
this returns #N/A if no test result is entered into column L which is
causing
problems when I'm trying to record a macro to automatically sort data. I
have
tried to change the formula to lose the #N/A but am having to admit
defeat!
Data looks like this

G L M
14 15 1
14 13 -1
14 14 0

Any help greatly appreciated!!
Mrs T



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 134
Default fix #N/A error

Glad to hear your issues has been fixed. I also have in the past ran into
both errors, #NA! and #VALUE! depending on the set of circumstances. In
most cases dealing with lookups, I use the functions of IF, ISERROR, MATCH,
INDIRECT, and ADDRESS like the following

=IF(ISERROR(MATCH(C134,INDIRECT(T1&"!A:A"),0)),"", INDIRECT(ADDRESS(MATCH(C134,INDIRECT(T1&"!A:A"),0) ,2,,,T1)))

--
Thanks,

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"Mrs T." wrote in message
...
P.S. you're all absolutely right...it was an #N/A error in column M but I
managed to fix the #N/A error in column L (more good luck than good
management!) and the error in M had magically transformed itself into a
#VALUE! error without my notice. I'd bet my life a man designed Excel -
give
me plain and purl knitting any day!!!
Mrs T :)

"Alan" wrote:

Your formula won't return #N/A. Is there an #N/A anywhere else in the
sheet?
Alan.
"Mrs T." wrote in message
...
In a list of assessment data I have current test scores in column L and
the
previous test score in column G. I have a formula that works out the
difference between the 2 scores... =IF(L120,L12-G12,"") into column M,
but
this returns #N/A if no test result is entered into column L which is
causing
problems when I'm trying to record a macro to automatically sort data.
I
have
tried to change the formula to lose the #N/A but am having to admit
defeat!
Data looks like this

G L M
14 15 1
14 13 -1
14 14 0

Any help greatly appreciated!!
Mrs T





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default fix #N/A error

Thanks for the advice Ronald, all help is greatly appreciated and I'll
definitely give it a go.
Mrs T

"Ronald R. Dodge, Jr." wrote:

Glad to hear your issues has been fixed. I also have in the past ran into
both errors, #NA! and #VALUE! depending on the set of circumstances. In
most cases dealing with lookups, I use the functions of IF, ISERROR, MATCH,
INDIRECT, and ADDRESS like the following

=IF(ISERROR(MATCH(C134,INDIRECT(T1&"!A:A"),0)),"", INDIRECT(ADDRESS(MATCH(C134,INDIRECT(T1&"!A:A"),0) ,2,,,T1)))

--
Thanks,

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"Mrs T." wrote in message
...
P.S. you're all absolutely right...it was an #N/A error in column M but I
managed to fix the #N/A error in column L (more good luck than good
management!) and the error in M had magically transformed itself into a
#VALUE! error without my notice. I'd bet my life a man designed Excel -
give
me plain and purl knitting any day!!!
Mrs T :)

"Alan" wrote:

Your formula won't return #N/A. Is there an #N/A anywhere else in the
sheet?
Alan.
"Mrs T." wrote in message
...
In a list of assessment data I have current test scores in column L and
the
previous test score in column G. I have a formula that works out the
difference between the 2 scores... =IF(L120,L12-G12,"") into column M,
but
this returns #N/A if no test result is entered into column L which is
causing
problems when I'm trying to record a macro to automatically sort data.
I
have
tried to change the formula to lose the #N/A but am having to admit
defeat!
Data looks like this

G L M
14 15 1
14 13 -1
14 14 0

Any help greatly appreciated!!
Mrs T





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Error of slope taking into account error of the data points cer144 Excel Worksheet Functions 5 July 7th 08 07:26 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"