+ Reply to Thread
Results 1 to 6 of 6

sumif vlookup returns an error

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    sumif vlookup returns an error

    Hi, I am trying to sum all of the values that return an #n/a based on a vlookup. There might be a better way of doing this but this is where i've started. Hopefully someone can help.

    See attached. The cell i am trying to imput the calculation is in D13.

    Thanks,
    Kali
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: sumif vlookup returns an error

    What is your expected result from that sample data?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: sumif vlookup returns an error

    A primitive solution that might work, in cell D13:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: sumif vlookup returns an error

    if it does not find the product ID in the column b (which is only returning the product ID's for those who revenue is greater than 1% of the total revenue (remit) then sum it in column D, so it should result is 3,472. Basically, i want to lump all the products whose revenue <=1% of the total revenue into the "Other" Category.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: sumif vlookup returns an error

    Then I'd recommend the same thing Jacc suggested above.

  6. #6
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: sumif vlookup returns an error

    And actually this won't work because the formula above is the following: =IFERROR(VLOOKUP(B12,$J$11:$L$27,HLOOKUP(CONCATENATE("2012"&D$10),$L$1:$O$2,2,FALSE),FALSE),"-")

    So i was hoping to replace the "-" part with iferror = yes, than sum from column L. Does that make sense?

+ 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