+ Reply to Thread
Results 1 to 4 of 4

Adding up values returned from 5 look ups

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    Swindon, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Adding up values returned from 5 look ups

    Hello,

    I am trying to do some stock checks using different worksheets using VLOOKUP.

    I am using the code - =VLOOKUP($A2,'pack 1'!$B$2:$D$20,3,FALSE) but sometimes my value in A2 is not found in the worksheet "pack 1" so my look up returns the #N/A value.

    Is there something I can put in to return a zero or blank instead of #N/A if the look-up value is not found?

    I need to add together the 5 values returned to get a total stock amount so my SUM is not working due to the #N/A value.

    Any advice would be greatly appreciated.

    thanks in advance!
    Simon

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Adding up values returned from 5 look ups

    Duplicate post
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Adding up values returned from 5 look ups

    Try like this

    =IFERROR(VLOOKUP($A2,'pack 1'!$B$2:$D$20,3,FALSE),0)

  4. #4
    Registered User
    Join Date
    01-17-2014
    Location
    Swindon, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Adding up values returned from 5 look ups

    thanks a lot, that has worked for me

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 09-12-2011, 05:24 PM
  2. SQL add returned values
    By Jollyfrog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2010, 06:25 AM
  3. Lookups and Non returned values
    By SimonD10 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-28-2010, 04:57 AM
  4. How do I sum values returned from functions?
    By Duff Divot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2006, 02:35 PM
  5. adding cells that contain formulas that have returned error messag
    By Daniel R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2005, 04:06 PM

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