+ Reply to Thread
Results 1 to 9 of 9

SUMPRODUCT and vlookup

  1. #1
    Registered User
    Join Date
    07-02-2020
    Location
    Carroll, IA
    MS-Off Ver
    10
    Posts
    8

    SUMPRODUCT and vlookup

    Hello,

    How do I get SUMPRODUCT to read the vlookup cell to correlate the total for each industry type?

    I apologize that my file is so large. I am not sure how to condense it anymore without confusing the problem. I removed a few month tabs to keep the size down.

    If you look at the Tab NRCS SW Area you will notice SUMPRODUCT will find the UserName and add the time from each month. That is what I am looking for.

    If you look at the Industry Usage tab B2 is supposed to find all of the "Agricultural' entries in column A in the Jan 2020 tab and add up the total time in column K. I assume this is because column A is a vlookup formula so SUMPRODUCT can't cross reference. Do I need to do something else for this formula to find the text in column A?

    Thanks,
    Dan

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: SUMPRODUCT and vlookup

    No file attached.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-02-2020
    Location
    Carroll, IA
    MS-Off Ver
    10
    Posts
    8

    Re: SUMPRODUCT and vlookup

    Sorry I thought I attached the file, but it was too large yet.

    I am not sure why Feb 2020 works on the Industry Usage Tab. All I did was delete a number of entries to reduce the file size.

    I would like to figure out Why January isn't working though.

    Thanks,
    Dan
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: SUMPRODUCT and vlookup

    The jan problem (or at least one of them) is that you have a #N/A error on the "Jan 2020" worksheet at row 283. There's more errors on rows 392, 655, 762 etc.

    Your Feb worksheet magically works Im guessing because there was a similar error that you got rid of when you deleted rows to reduce workbook size
    Last edited by GeoffW283; 07-02-2020 at 04:57 PM.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  5. #5
    Registered User
    Join Date
    07-02-2020
    Location
    Carroll, IA
    MS-Off Ver
    10
    Posts
    8

    Re: SUMPRODUCT and vlookup

    So is there a limit to the amount of data I can run SUMPRODUCT on? Is there a better way to add up the duration of time?

    I am not sure why the 'NRCS SW Area' tab worked correctly, even on the full spreadsheet.

    Thanks,
    Dan

  6. #6
    Registered User
    Join Date
    07-02-2020
    Location
    Carroll, IA
    MS-Off Ver
    10
    Posts
    8

    Re: SUMPRODUCT and vlookup

    I see. I needed to remove or remedy all of the NA# errors. The table now works.

    Thanks for the help!

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT and vlookup

    On the Jan tab change the formula in col A to
    =IFERROR(VLOOKUP($D2,UserCode,3,0),"")
    and the sumproduct should then work

  8. #8
    Registered User
    Join Date
    07-02-2020
    Location
    Carroll, IA
    MS-Off Ver
    10
    Posts
    8

    Re: SUMPRODUCT and vlookup

    That works great!!

    Thanks a lot. I have been trying to figure this out for weeks!

    Dan

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: SUMPRODUCT and vlookup

    You're welcome & thanks for the feedback.

+ 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. [SOLVED] SUMPRODUCT with VLOOKUP
    By ron2k_1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2018, 02:22 PM
  2. VLOOKUP or SUMPRODUCT
    By PERE in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2014, 12:37 PM
  3. Vlookup with Sumproduct
    By jhl925 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2014, 02:01 PM
  4. [SOLVED] Sumproduct with Vlookup
    By lpjoseph in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-07-2012, 06:18 PM
  5. [SOLVED] VLOOKUP and SUM or SUMPRODUCT
    By Zooka in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-07-2012, 02:51 PM
  6. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  7. sumproduct and vlookup?
    By [email protected] in forum Excel General
    Replies: 3
    Last Post: 07-20-2006, 06:35 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