+ Reply to Thread
Results 1 to 9 of 9

Vlookup Formula which will return results 0 for #N/A and numbers below 50

  1. #1
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Vlookup Formula which will return results 0 for #N/A and numbers below 50

    I need a Vlookup formula which will return 0 for #N/A and numbers below 50 will return 0 as well and that will sum up duplicate UPCS.

    I have attached excel sheet, I need a vlookup for column F which is UPC to sum duplicate UPC for APPLE and for the pear since it is below 50 to return 0 and for orange #N/A to return 0.
    For Column E it should do the same as well.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Vlookup Formula which will return results 0 for #N/A and numbers below 50

    I'm unclear about your request and your workbook. You mention you want a vlookup but I'm not sure what you are looking up? And you mention sum up duplicates and a vlookup will simply return a value, it sounds like you want a sumif.
    And if you are looking up something with values to the left a vlookup without contorting the formula looks up items to the right, for looking up things to the left you need an index/match.
    Could you reload your data with expected results?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Vlookup Formula which will return results 0 for #N/A and numbers below 50

    Sure, please see attached.
    Attached Files Attached Files

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Vlookup Formula which will return results 0 for #N/A and numbers below 50

    ok, both of these are for the CATALOG tab, this for G2 =IFERROR(IF(SUMIF(Inventory!C:C,CATALOG!$F2,Inventory!D:D)<50,0,SUMIF(Inventory!C:C,CATALOG!$F2,Inventory!D:D)),0)
    and this for H2 =IFERROR(IF(SUMIF(Inventory!C:C,CATALOG!$F2,Inventory!E:E)<50,0,SUMIF(Inventory!C:C,CATALOG!$F2,Inventory!E:E)),0)

  5. #5
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Vlookup Formula which will return results 0 for #N/A and numbers below 50

    Thanks worked!

  6. #6
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Vlookup Formula which will return results 0 for #N/A and numbers below 50

    Sorry one more thing, can you also add in formula if UPC is 0 to automatically put qty to 0 as well?

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Vlookup Formula which will return results 0 for #N/A and numbers below 50

    That formula will put a 0 in for a blank UPC or a 0 UPC in column F of the CATALOG tab.

  8. #8
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Vlookup Formula which will return results 0 for #N/A and numbers below 50

    Also when UPC is 0 in inventory tab of sheet under quantity in stock and Qty on PO

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Vlookup Formula which will return results 0 for #N/A and numbers below 50

    it will still return a 0 if the UPC in CATALOG is blank or has a 0 and it will return a 0 if the UPC in Inventory is blank or 0. Test it in your sample sheet.

+ 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: 4
    Last Post: 06-29-2017, 08:00 AM
  2. [SOLVED] Is there a formula (possibly similar to VLOOKUP) that will return multiple results?
    By SilverUnicorn79 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-16-2016, 04:33 PM
  3. Vlookup Return Results Issue
    By tstagliano in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2016, 02:16 PM
  4. Help using vlookup to return multiple results for one vlookup value
    By Akmon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2015, 06:00 AM
  5. possible Vlookup or match formula to return results.
    By mcranda in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-02-2013, 03:16 PM
  6. [SOLVED] Vlookup formula - return only numbers for cells containing text and numbers
    By Andrew E Smith in forum Excel General
    Replies: 11
    Last Post: 07-03-2012, 06:07 AM
  7. Worksheet function Vlookup and VLOOKUP return different results
    By zandero in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2010, 08:24 AM

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