+ Reply to Thread
Results 1 to 2 of 2

make the #N/A from Lookups act like Zeros in sum calculations

  1. #1
    Registered User
    Join Date
    05-25-2006
    Posts
    6

    make the #N/A from Lookups act like Zeros in sum calculations

    I've got a long Hlookup pulling values based on Unit Quantities and multiplying them by the lookup value, and vertical rows with multiple Hlookups with a cell adding all these values together at the bottom.

    If I dont fill in one of the Hlookup cells, i get the #N/A that throws off the subtotal cell at the bottom using =Sum(C1:C5)

    Is there any way to make the #N/A not appear if the formula returns this value, or have the sum calculation see a #N/A as a zero?

    Thanks for the help!!!
    JB
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    05-25-2006
    Posts
    6
    Of course once you ask the question you find a way to answer it yourself. Found this piece of code from a unrelated topic that solves the problem incase someone else wants to know the answer to this question too.

    You simply put an If statement that looks to see if you filled in a value for the Hlookup to calculate, and if you didnt it fills it in an empty value.

    Brilliant!

    =IF(B6<>"",HLOOKUP(B6,D4:K6,2,0)*B6,"")

+ 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