+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP to SUM all returned values

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    VLOOKUP to SUM all returned values

    Hello.

    This is hurting my head please help.

    This formula works to return a value of a cell 10 columns to the right of a dropdown list value.

    =VLOOKUP(A7,INDIRECT("'"&$H$5&"'!"&"$A:$J"),10,FALSE)

    It only returns the value of the first instance of the dropdown list value in the range.

    if I have two rows with the same value for "A7" in my range how can i return the SUM of them??


    thank you

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: VLOOKUP to SUM all returned values

    =SUMIF(INDIRECT("'"&$H$5&"'!"&"$J:$J",A7)

    if that's not it, please attach a sample spreadsheet as your description is potentially ambiguous.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: VLOOKUP to SUM all returned values

    thanks but something didn't work.

    See attached.
    Other general comments welcome.

    Many thanks
    Attached Files Attached Files

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: VLOOKUP to SUM all returned values

    Hi.

    So what are the expected results for this file, and where should they go? Which cells are of interest?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: VLOOKUP to SUM all returned values

    OK. In C7, copy across and down

    =IFERROR(SUMIF(INDIRECT("'"&C$5&"'!A:A"),$A7,INDIRECT("'"&C$5&"'!j:j")),"")
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: VLOOKUP to SUM all returned values

    I beg your pardon. I should of explained more.

    Going to create a new sheet per employee as per the template.
    Users can select the project they work on from a dropdown list. then populate with the time they spend.

    Then the master sheet will look to each users sheet and sum the total weekly hours spent for a specific project number.
    Ive tried to make the formula rely on data from other cells so that it can be filled down and across or copied with no need to adjust the formula.

    Cells in Row H of MASTER is where the most work is done.

    it checks the value in A7 then searches a range of cells on the sheet called "value of H5"
    It looks to the column 10 right of located instance - for the total.
    I hope it can then return the SUM of all instances it finds the value of A7

    essentially im looking for a better way to manage timesheets than the current manual way we do it.

    Thanks

  7. #7
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: VLOOKUP to SUM all returned values

    amazing thank you!!!

    Quote Originally Posted by Glenn Kennedy View Post
    OK. In C7, copy across and down

    =IFERROR(SUMIF(INDIRECT("'"&C$5&"'!A:A"),$A7,INDIRECT("'"&C$5&"'!j:j")),"")

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: VLOOKUP to SUM all returned values

    Woo Hoo! Second time lucky. You're welcome...

  9. #9
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: VLOOKUP to SUM all returned values

    any way you could steer me in the right direction for my next task?

    1) populating MASTER column A from all the other sheets column A's one per row, not duplicating and sorted into the same order as is the defined name list on the project number sheet?

    offt that hurt even writing it down!

+ 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. I Need to Vlookup one criteria, but have multiple values returned
    By becca0903 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2015, 09:04 AM
  2. Edit values returned by VLOOKUP
    By bruce00j in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-30-2014, 12:32 PM
  3. [SOLVED] VLOOKUP, 2 lookup values; then sum the lookup returned
    By pricepeeler in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-17-2014, 03:17 PM
  4. Replies: 1
    Last Post: 02-20-2014, 08:42 AM
  5. Vlookup True not working - need partial string match and returned values
    By leishab in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-20-2013, 04:44 PM
  6. [SOLVED] [B] VLOOKUP where range is values returned from another formula [/B]
    By alma1219 in forum Excel General
    Replies: 1
    Last Post: 07-04-2012, 06:59 AM
  7. Replies: 5
    Last Post: 12-17-2010, 06:17 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