+ Reply to Thread
Results 1 to 7 of 7

Getting rid of #n/a

  1. #1
    Registered User
    Join Date
    02-21-2007
    Posts
    8

    Getting rid of #n/a

    I have two sheets i am working with in the same file. The first sheet is the reference sheet with my rates listed by location or product code. My formula on my pricing page picks up the rates properly and runs down the collumn continuously. When I do not reference a product or location and leave the cell blank I get #n/a and wont allow my totals to run and I do not want it on the spread sheet.
    I would like to make a blank cell on my rate sheet = 0 dollars

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by rnorris67
    I have two sheets i am working with in the same file. The first sheet is the reference sheet with my rates listed by location or product code. My formula on my pricing page picks up the rates properly and runs down the collumn continuously. When I do not reference a product or location and leave the cell blank I get #n/a and wont allow my totals to run and I do not want it on the spread sheet.
    I would like to make a blank cell on my rate sheet = 0 dollars
    make formula like this

    =if(iserror(your_formula),0,(your_formula))

  3. #3
    Registered User
    Join Date
    02-21-2007
    Posts
    8

    better explanation

    on sheet one is my pay rate. Column a=description, column b=rate. On sheet two I type in my description, my quantity and the spreadsheet finds my rate, based on my description, and calculates my totals. I f I leave my description blank I get #n/a in my total column. My formula is=vlookup(d4,payrate!a:b,2,false)

  4. #4
    Registered User
    Join Date
    02-21-2007
    Posts
    8

    #n/a

    on sheet one is my pay rate. Column a=description, column b=rate. On sheet two I type in my description, my quantity and the spreadsheet finds my rate, based on my description, and calculates my totals. I f I leave my description blank I get #n/a in my total column. My formula is=vlookup(d4,payrate!a:b,2,false)

  5. #5
    Registered User
    Join Date
    02-21-2007
    Posts
    8
    does anyone have an answer.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Please don't start new threads for the same question and use help as the title or they will be deleted

    Also there doesn't seem to be a question to answer.

    FYI Vlookup will return #N/A if it can't find a match

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  7. #7
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by rnorris67
    on sheet one is my pay rate. Column a=description, column b=rate. On sheet two I type in my description, my quantity and the spreadsheet finds my rate, based on my description, and calculates my totals. I f I leave my description blank I get #n/a in my total column. My formula is=vlookup(d4,payrate!a:b,2,false)
    have you tried this

    =if(iserror(vlookup(d4,payrate!a:b,2,false)),0,(vlookup(d4,payrate!a:b,2,false))

+ 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