+ Reply to Thread
Results 1 to 10 of 10

Hiding or changing #N/A value

  1. #1
    Mac Landers
    Guest

    Hiding or changing #N/A value

    I have the following formula, =VLOOKUP($D$2,Table!$A$1:$B$26,2,False)*G2,
    that returns #N/A in numerous cells. Obviously this is not professional
    looking and I would like to hide them or at least make them zero's and
    conditional format to hide them. I have tried the ISNA function which works
    on the #N/A but it returns FALSE when I use it on a cell that otherwise
    returns a value. I must have the same formula in every cell because my data
    changes monthly.

    Any guidance is much appreciated.


  2. #2
    Henrik
    Guest

    RE: Hiding or changing #N/A value

    Try:

    =IF(ISERROR(VLOOKUP($D$2,Table!$A$1:$B$26,2,False)),"",VLOOKUP($D$2,Table!$A$1:$B$26,2,False))

    Good luck,
    Henrik

    "Mac Landers" wrote:

    > I have the following formula, =VLOOKUP($D$2,Table!$A$1:$B$26,2,False)*G2,
    > that returns #N/A in numerous cells. Obviously this is not professional
    > looking and I would like to hide them or at least make them zero's and
    > conditional format to hide them. I have tried the ISNA function which works
    > on the #N/A but it returns FALSE when I use it on a cell that otherwise
    > returns a value. I must have the same formula in every cell because my data
    > changes monthly.
    >
    > Any guidance is much appreciated.
    >


  3. #3
    Mac Landers
    Guest

    RE: Hiding or changing #N/A value

    Henrik~
    Thank you; however, EXCEL doesn't like the "" part of the formula. I will
    continue to manipulate the formula, but as of now Excel won't allow it, is
    says there is an error in the Help Bubble and won't let me hit ENTER.

    Again, any assistance is appreciated. Thank you

    "Henrik" wrote:

    > Try:
    >
    > =IF(ISERROR(VLOOKUP($D$2,Table!$A$1:$B$26,2,False)),"",VLOOKUP($D$2,Table!$A$1:$B$26,2,False))
    >
    > Good luck,
    > Henrik
    >
    > "Mac Landers" wrote:
    >
    > > I have the following formula, =VLOOKUP($D$2,Table!$A$1:$B$26,2,False)*G2,
    > > that returns #N/A in numerous cells. Obviously this is not professional
    > > looking and I would like to hide them or at least make them zero's and
    > > conditional format to hide them. I have tried the ISNA function which works
    > > on the #N/A but it returns FALSE when I use it on a cell that otherwise
    > > returns a value. I must have the same formula in every cell because my data
    > > changes monthly.
    > >
    > > Any guidance is much appreciated.
    > >


  4. #4
    Gord Dibben
    Guest

    Re: Hiding or changing #N/A value

    Mac

    Works fine for me as copied from Henrik's post then adding the *G2 which
    Henrik missed.

    You sure you are copying all of Henrik's formula?

    You do have a sheet named Table?

    There should be no spaces in "". Watch for that.

    I could provide you with a macro that would change all the formulas to IF(ISNA
    or IF(ISERROR at one go if you have many of them to edit.


    Gord Dibben Excel MVP


    On Wed, 26 Jan 2005 09:25:03 -0800, "Mac Landers"
    <MacLanders@discussions.microsoft.com> wrote:

    >Henrik~
    >Thank you; however, EXCEL doesn't like the "" part of the formula. I will
    >continue to manipulate the formula, but as of now Excel won't allow it, is
    >says there is an error in the Help Bubble and won't let me hit ENTER.
    >
    >Again, any assistance is appreciated. Thank you
    >
    >"Henrik" wrote:
    >
    >> Try:
    >>
    >> =IF(ISERROR(VLOOKUP($D$2,Table!$A$1:$B$26,2,False)),"",VLOOKUP($D$2,Table!$A$1:$B$26,2,False))
    >>
    >> Good luck,
    >> Henrik
    >>
    >> "Mac Landers" wrote:
    >>
    >> > I have the following formula, =VLOOKUP($D$2,Table!$A$1:$B$26,2,False)*G2,
    >> > that returns #N/A in numerous cells. Obviously this is not professional
    >> > looking and I would like to hide them or at least make them zero's and
    >> > conditional format to hide them. I have tried the ISNA function which works
    >> > on the #N/A but it returns FALSE when I use it on a cell that otherwise
    >> > returns a value. I must have the same formula in every cell because my data
    >> > changes monthly.
    >> >
    >> > Any guidance is much appreciated.
    >> >



  5. #5
    Mac Landers
    Guest

    Re: Hiding or changing #N/A value

    Gord-
    I entered it exactly the way he displayed it. I did get it to work by not
    putting anything between the commas:

    =IF(ISERROR(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)),,(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)))*C3.

    Do you forsee any problems with my method and do you have any idea why the
    "" won't work?

    I apprecaite the help, as always you guys are life savers.

    Mac

    "Gord Dibben" wrote:

    > Mac
    >
    > Works fine for me as copied from Henrik's post then adding the *G2 which
    > Henrik missed.
    >
    > You sure you are copying all of Henrik's formula?
    >
    > You do have a sheet named Table?
    >
    > There should be no spaces in "". Watch for that.
    >
    > I could provide you with a macro that would change all the formulas to IF(ISNA
    > or IF(ISERROR at one go if you have many of them to edit.
    >
    >
    > Gord Dibben Excel MVP
    >
    >
    > On Wed, 26 Jan 2005 09:25:03 -0800, "Mac Landers"
    > <MacLanders@discussions.microsoft.com> wrote:
    >
    > >Henrik~
    > >Thank you; however, EXCEL doesn't like the "" part of the formula. I will
    > >continue to manipulate the formula, but as of now Excel won't allow it, is
    > >says there is an error in the Help Bubble and won't let me hit ENTER.
    > >
    > >Again, any assistance is appreciated. Thank you
    > >
    > >"Henrik" wrote:
    > >
    > >> Try:
    > >>
    > >> =IF(ISERROR(VLOOKUP($D$2,Table!$A$1:$B$26,2,False)),"",VLOOKUP($D$2,Table!$A$1:$B$26,2,False))
    > >>
    > >> Good luck,
    > >> Henrik
    > >>
    > >> "Mac Landers" wrote:
    > >>
    > >> > I have the following formula, =VLOOKUP($D$2,Table!$A$1:$B$26,2,False)*G2,
    > >> > that returns #N/A in numerous cells. Obviously this is not professional
    > >> > looking and I would like to hide them or at least make them zero's and
    > >> > conditional format to hide them. I have tried the ISNA function which works
    > >> > on the #N/A but it returns FALSE when I use it on a cell that otherwise
    > >> > returns a value. I must have the same formula in every cell because my data
    > >> > changes monthly.
    > >> >
    > >> > Any guidance is much appreciated.
    > >> >

    >
    >


  6. #6
    Ola
    Guest

    Re: Hiding or changing #N/A value

    Not to complicate matters but this UserDefinedFunction could also be used.
    It's shorter and usually faster then the normal =VLOOKUP.

    ' Example =LOOKUPV (E1, A1:C10, 2, FALSE, "")
    Function LOOKUPV(Lookup_Value, Table_Array As Range, Col_Index_Num,
    Range_value, Optional Error_Msg)
    LOOKUPV = Application.VLookup(Lookup_Value, Table_Array, Col_Index_Num,
    Range_value)
    If IsError(LOOKUPV) And Not IsMissing(Error_Msg) Then LOOKUPV =
    Error_Msg
    End Function

    Ola Sandstrom

  7. #7
    Mac Landers
    Guest

    Re: Hiding or changing #N/A value

    Thanks for your help, but that was over my head.

    "Ola" wrote:

    > Not to complicate matters but this UserDefinedFunction could also be used.
    > It's shorter and usually faster then the normal =VLOOKUP.
    >
    > ' Example =LOOKUPV (E1, A1:C10, 2, FALSE, "")
    > Function LOOKUPV(Lookup_Value, Table_Array As Range, Col_Index_Num,
    > Range_value, Optional Error_Msg)
    > LOOKUPV = Application.VLookup(Lookup_Value, Table_Array, Col_Index_Num,
    > Range_value)
    > If IsError(LOOKUPV) And Not IsMissing(Error_Msg) Then LOOKUPV =
    > Error_Msg
    > End Function
    >
    > Ola Sandstrom


  8. #8
    Gord Dibben
    Guest

    Re: Hiding or changing #N/A value

    No idea why the "" won't work.

    Your amended formula with the two ,, will work but return a 0 if value not
    found.

    Try this slightly amended formula......parens changed around.

    =IF(ISNA(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)*C3),"",VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)*C3)


    Gord

    On Wed, 26 Jan 2005 14:41:05 -0800, "Mac Landers"
    <MacLanders@discussions.microsoft.com> wrote:

    >Gord-
    >I entered it exactly the way he displayed it. I did get it to work by not
    >putting anything between the commas:
    >
    >=IF(ISERROR(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)),,(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)))*C3.
    >
    >Do you forsee any problems with my method and do you have any idea why the
    >"" won't work?
    >
    >I apprecaite the help, as always you guys are life savers.
    >
    >Mac
    >
    >"Gord Dibben" wrote:
    >
    >> Mac
    >>
    >> Works fine for me as copied from Henrik's post then adding the *G2 which
    >> Henrik missed.
    >>
    >> You sure you are copying all of Henrik's formula?
    >>
    >> You do have a sheet named Table?
    >>
    >> There should be no spaces in "". Watch for that.
    >>
    >> I could provide you with a macro that would change all the formulas to IF(ISNA
    >> or IF(ISERROR at one go if you have many of them to edit.
    >>
    >>
    >> Gord Dibben Excel MVP
    >>
    >>
    >> On Wed, 26 Jan 2005 09:25:03 -0800, "Mac Landers"
    >> <MacLanders@discussions.microsoft.com> wrote:
    >>
    >> >Henrik~
    >> >Thank you; however, EXCEL doesn't like the "" part of the formula. I will
    >> >continue to manipulate the formula, but as of now Excel won't allow it, is
    >> >says there is an error in the Help Bubble and won't let me hit ENTER.
    >> >
    >> >Again, any assistance is appreciated. Thank you
    >> >
    >> >"Henrik" wrote:
    >> >
    >> >> Try:
    >> >>
    >> >> =IF(ISERROR(VLOOKUP($D$2,Table!$A$1:$B$26,2,False)),"",VLOOKUP($D$2,Table!$A$1:$B$26,2,False))
    >> >>
    >> >> Good luck,
    >> >> Henrik
    >> >>
    >> >> "Mac Landers" wrote:
    >> >>
    >> >> > I have the following formula, =VLOOKUP($D$2,Table!$A$1:$B$26,2,False)*G2,
    >> >> > that returns #N/A in numerous cells. Obviously this is not professional
    >> >> > looking and I would like to hide them or at least make them zero's and
    >> >> > conditional format to hide them. I have tried the ISNA function which works
    >> >> > on the #N/A but it returns FALSE when I use it on a cell that otherwise
    >> >> > returns a value. I must have the same formula in every cell because my data
    >> >> > changes monthly.
    >> >> >
    >> >> > Any guidance is much appreciated.
    >> >> >

    >>
    >>



  9. #9
    Mac Landers
    Guest

    Re: Hiding or changing #N/A value

    Gord-
    The formula worked. I had a conditional format that hides zero so my
    original formual was returning 0's.

    Thanks for everyones help.

    "Gord Dibben" wrote:

    > No idea why the "" won't work.
    >
    > Your amended formula with the two ,, will work but return a 0 if value not
    > found.
    >
    > Try this slightly amended formula......parens changed around.
    >
    > =IF(ISNA(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)*C3),"",VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)*C3)
    >
    >
    > Gord
    >
    > On Wed, 26 Jan 2005 14:41:05 -0800, "Mac Landers"
    > <MacLanders@discussions.microsoft.com> wrote:
    >
    > >Gord-
    > >I entered it exactly the way he displayed it. I did get it to work by not
    > >putting anything between the commas:
    > >
    > >=IF(ISERROR(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)),,(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)))*C3.
    > >
    > >Do you forsee any problems with my method and do you have any idea why the
    > >"" won't work?
    > >
    > >I apprecaite the help, as always you guys are life savers.
    > >
    > >Mac
    > >
    > >"Gord Dibben" wrote:
    > >
    > >> Mac
    > >>
    > >> Works fine for me as copied from Henrik's post then adding the *G2 which
    > >> Henrik missed.
    > >>
    > >> You sure you are copying all of Henrik's formula?
    > >>
    > >> You do have a sheet named Table?
    > >>
    > >> There should be no spaces in "". Watch for that.
    > >>
    > >> I could provide you with a macro that would change all the formulas to IF(ISNA
    > >> or IF(ISERROR at one go if you have many of them to edit.
    > >>
    > >>
    > >> Gord Dibben Excel MVP
    > >>
    > >>
    > >> On Wed, 26 Jan 2005 09:25:03 -0800, "Mac Landers"
    > >> <MacLanders@discussions.microsoft.com> wrote:
    > >>
    > >> >Henrik~
    > >> >Thank you; however, EXCEL doesn't like the "" part of the formula. I will
    > >> >continue to manipulate the formula, but as of now Excel won't allow it, is
    > >> >says there is an error in the Help Bubble and won't let me hit ENTER.
    > >> >
    > >> >Again, any assistance is appreciated. Thank you
    > >> >
    > >> >"Henrik" wrote:
    > >> >
    > >> >> Try:
    > >> >>
    > >> >> =IF(ISERROR(VLOOKUP($D$2,Table!$A$1:$B$26,2,False)),"",VLOOKUP($D$2,Table!$A$1:$B$26,2,False))
    > >> >>
    > >> >> Good luck,
    > >> >> Henrik
    > >> >>
    > >> >> "Mac Landers" wrote:
    > >> >>
    > >> >> > I have the following formula, =VLOOKUP($D$2,Table!$A$1:$B$26,2,False)*G2,
    > >> >> > that returns #N/A in numerous cells. Obviously this is not professional
    > >> >> > looking and I would like to hide them or at least make them zero's and
    > >> >> > conditional format to hide them. I have tried the ISNA function which works
    > >> >> > on the #N/A but it returns FALSE when I use it on a cell that otherwise
    > >> >> > returns a value. I must have the same formula in every cell because my data
    > >> >> > changes monthly.
    > >> >> >
    > >> >> > Any guidance is much appreciated.
    > >> >> >
    > >>
    > >>

    >
    >


  10. #10
    Gord Dibben
    Guest

    Re: Hiding or changing #N/A value

    Mac

    Thanks for the feedback.

    That CF can be tricky<g>


    Gord Dibben Excel MVP

    On Thu, 27 Jan 2005 13:49:04 -0800, "Mac Landers"
    <MacLanders@discussions.microsoft.com> wrote:

    >Gord-
    >The formula worked. I had a conditional format that hides zero so my
    >original formual was returning 0's.
    >
    >Thanks for everyones help.
    >
    >"Gord Dibben" wrote:
    >
    >> No idea why the "" won't work.
    >>
    >> Your amended formula with the two ,, will work but return a 0 if value not
    >> found.
    >>
    >> Try this slightly amended formula......parens changed around.
    >>
    >> =IF(ISNA(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)*C3),"",VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)*C3)
    >>
    >>
    >> Gord
    >>
    >> On Wed, 26 Jan 2005 14:41:05 -0800, "Mac Landers"
    >> <MacLanders@discussions.microsoft.com> wrote:
    >>
    >> >Gord-
    >> >I entered it exactly the way he displayed it. I did get it to work by not
    >> >putting anything between the commas:
    >> >
    >> >=IF(ISERROR(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)),,(VLOOKUP($B$3,Table!$A$1:$B$26,2,FALSE)))*C3.
    >> >
    >> >Do you forsee any problems with my method and do you have any idea why the
    >> >"" won't work?
    >> >
    >> >I apprecaite the help, as always you guys are life savers.
    >> >
    >> >Mac
    >> >
    >> >"Gord Dibben" wrote:
    >> >
    >> >> Mac
    >> >>
    >> >> Works fine for me as copied from Henrik's post then adding the *G2 which
    >> >> Henrik missed.
    >> >>
    >> >> You sure you are copying all of Henrik's formula?
    >> >>
    >> >> You do have a sheet named Table?
    >> >>
    >> >> There should be no spaces in "". Watch for that.
    >> >>
    >> >> I could provide you with a macro that would change all the formulas to IF(ISNA
    >> >> or IF(ISERROR at one go if you have many of them to edit.
    >> >>
    >> >>
    >> >> Gord Dibben Excel MVP
    >> >>
    >> >>
    >> >> On Wed, 26 Jan 2005 09:25:03 -0800, "Mac Landers"
    >> >> <MacLanders@discussions.microsoft.com> wrote:
    >> >>
    >> >> >Henrik~
    >> >> >Thank you; however, EXCEL doesn't like the "" part of the formula. I will
    >> >> >continue to manipulate the formula, but as of now Excel won't allow it, is
    >> >> >says there is an error in the Help Bubble and won't let me hit ENTER.
    >> >> >
    >> >> >Again, any assistance is appreciated. Thank you
    >> >> >
    >> >> >"Henrik" wrote:
    >> >> >
    >> >> >> Try:
    >> >> >>
    >> >> >> =IF(ISERROR(VLOOKUP($D$2,Table!$A$1:$B$26,2,False)),"",VLOOKUP($D$2,Table!$A$1:$B$26,2,False))
    >> >> >>
    >> >> >> Good luck,
    >> >> >> Henrik
    >> >> >>
    >> >> >> "Mac Landers" wrote:
    >> >> >>
    >> >> >> > I have the following formula, =VLOOKUP($D$2,Table!$A$1:$B$26,2,False)*G2,
    >> >> >> > that returns #N/A in numerous cells. Obviously this is not professional
    >> >> >> > looking and I would like to hide them or at least make them zero's and
    >> >> >> > conditional format to hide them. I have tried the ISNA function which works
    >> >> >> > on the #N/A but it returns FALSE when I use it on a cell that otherwise
    >> >> >> > returns a value. I must have the same formula in every cell because my data
    >> >> >> > changes monthly.
    >> >> >> >
    >> >> >> > Any guidance is much appreciated.
    >> >> >> >
    >> >>
    >> >>

    >>
    >>



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1