+ Reply to Thread
Results 1 to 7 of 7

How to combine Vlookup and Sumproduct

  1. #1
    Registered User
    Join Date
    02-04-2012
    Location
    Muscat
    MS-Off Ver
    Excel 2010
    Posts
    20

    How to combine Vlookup and Sumproduct

    Hi Dear,

    I have a file with two work sheet, in 1 sheet have monthly allowance to staff in 2nd sheet I need the data in a schedule format. Please see the attached file, my formula not working here properly. Kindly suggest me a appropriate formula to solve the issue.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: How to combine Vlookup and Sumproduct

    Which version of Excel are you actually using? Your profile says 2003, but you've attached a .xlsx format file which suggest 2007 or later...

    Would like to know, as a SUMIFS function would work nicely, but wouldn't work if you ARE still using 2003....

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A pivot table would be another potential solution.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How to combine Vlookup and Sumproduct

    IF you will have more than one value(works for one value as well)
    =SUMPRODUCT(--($B4=Sheet1!$B$3:$B$3539)*(Sheet1!$C$3:$C$3539=Schedule!F$2)*Sheet1!$D$3:$D$3539)
    or
    =IF(ISERROR(INDEX(Sheet1!$D$3:$D$3539,MATCH($B4&F$2,Sheet1!$B$3:$B$3539&Sheet1!$C$3:$C$3539,0))),"",INDEX(Sheet1!$D$3:$D$3539,MATCH($B4&F$2,Sheet1!$B$3:$B$3539&Sheet1!$C$3:$C$3539,0)))
    Confirm Controil+Shift+Enter
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Registered User
    Join Date
    01-14-2014
    Location
    Baku
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How to combine Vlookup and Sumproduct

    Why You don't use just pivot table?ID to row,month to column and allowance(sum of) to value area.

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: How to combine Vlookup and Sumproduct

    hi Shihab. like Olly says, change your profile for the MS-Off Ver accordingly so we can give the better alternatives. to also show the "-", add this to Olly's solution:
    =IFERROR(1/(1/SUMIFS(Sheet1!$D:$D,Sheet1!$B:$B,$B4,Sheet1!$C:$C,F$2)),"-")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: How to combine Vlookup and Sumproduct

    Quote Originally Posted by benishiryo View Post
    hi Shihab. like Olly says, change your profile for the MS-Off Ver accordingly so we can give the better alternatives. to also show the "-", add this to Olly's solution:
    =IFERROR(1/(1/SUMIFS(Sheet1!$D:$D,Sheet1!$B:$B,$B4,Sheet1!$C:$C,F$2)),"-")
    The '-' for zeros is already there, in the numberformat - no need to accommodate it in the formula

  7. #7
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: How to combine Vlookup and Sumproduct

    @Olly:
    there are usually more than 1 way in Excel to do something, and mine is just 1 of the many..... nah i just totally forgot about it!!

+ 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. How to combine SUMPRODUCT & SUMIF
    By laferg69 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 10-12-2013, 06:05 PM
  2. [SOLVED] combine SUMIF and SUMPRODUCT
    By brownn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-25-2012, 11:16 PM
  3. Need to combine SUMIF & SUMPRODUCT
    By laferg69 in forum Excel General
    Replies: 1
    Last Post: 07-26-2011, 04:21 AM
  4. combine sumif and sumproduct
    By nicko54 in forum Excel General
    Replies: 1
    Last Post: 09-02-2008, 11:41 AM
  5. [SOLVED] SUMPRODUCT - How to combine
    By Robert in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2005, 10:06 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