+ Reply to Thread
Results 1 to 8 of 8

Ignore #N/A to calculate running total

  1. #1
    Registered User
    Join Date
    02-17-2007
    Posts
    39

    Ignore #N/A to calculate running total

    Quick Question:

    I'm trying to track the profit for all of the sales on the attached form. Because the formula shows #N/A until the fields are filled out, I can't do a running total of the profit because box H10 shows #N/A. Can someone take a look and give me a hand? I bet it's an easy fix. Thanks!

    Zack
    Attached Files Attached Files

  2. #2
    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
    Try

    =SUMIF(I16:I80,"<>#N/A")

    This link will show how to hide the #N/A's

    http://www.excelforum.com/showpost.p...79&postcount=2

    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 !!!

  3. #3
    Registered User
    Join Date
    02-17-2007
    Posts
    39

    Smile

    PERFECT! Thanks!

  4. #4
    Registered User
    Join Date
    02-17-2007
    Posts
    39

    Question

    How would I add this:

    =IF(ISERROR(OriginalFormula),"",OriginalFormula)

    to this:

    =(VLOOKUP(C16,$A$6:$C$12,3,FALSE))*D16

  5. #5
    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
    mAYBE

    =IF(ISERROR(VLOOKUP(C16,$A$6:$C$12,3,FALSE)*D16),"",VLOOKUP(C16,$A$6:$C$12,3,FALSE)*D16)

    VBA Noob

  6. #6
    Registered User
    Join Date
    02-17-2007
    Posts
    39
    hmmm that didn't work. Can you take a look at the form and see if you can figure it out? Thank you very much for your help!

    The newest version is attached below.
    Attached Files Attached Files

  7. #7
    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
    Try this

    VBA Noob
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-17-2007
    Posts
    39

    Thumbs up

    Perfect! Thanks!

+ 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