+ Reply to Thread
Results 1 to 14 of 14

Vlookup and sumifs or pivot table?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-24-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    Office 365
    Posts
    177

    Vlookup and sumifs or pivot table?

    hi guys
    Here's a tuff one
    My clients pays me a fee every month for the service i provide to them.
    I have several teams who are working on its project.
    Each person has a cost per hour.
    If i have total hours worked for each person on each client, knowing what is his cost per month for workers and clients, i may know if i'm charging too much or too litle for each client, right?

    That's what i wanna know.

    I have my database with how many hours for each person worked on each client. Each person has a monthly hour cost as well as each client.

    To obtain the final output that i want, see file attach please, what's your best choice to solve this?

    Best regards
    Pedro
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Vlookup and sumifs or pivot table?

    100.00 € -150.00 € 120.00 €
    what it refers to "I17:K17"
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    03-24-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Vlookup and sumifs or pivot table?

    Hello siva
    It refers to the ideal output, i mean, it show us how many euros you spent with each company. How do you obtain that result? You have to know how many hours each worker did and what is is cost per hour. The numbers 100.00€, -150.00€ and 120.00€ are not real, just a number.
    Hope my inglish was correct.
    Best regards
    Pedro

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup and sumifs or pivot table?

    Hi,

    Please explain the arithmetic that produces the numbers in I17:K20. It's not immediately obvious, at least not to me.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Contributor
    Join Date
    03-24-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Vlookup and sumifs or pivot table?

    Hello Richard

    It refers to the ideal output, i mean, it show us how many euros you spent with each company. How do you obtain that result? You have to know how many hours each worker did and what is is cost per hour. The numbers 100.00€, -150.00€ and 120.00€ are not real, just a number.
    Hope my inglish was correct.
    Best regards
    Pedro

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup and sumifs or pivot table?

    I would solve it with a pivot table.

    But your answers don't match with my (expected) answers.

    See the attached file.

    Edit:

    See the red value in cell d16
    d16 = 04:09:36 but is showing as 04:09
    Last edited by oeldere; 11-16-2015 at 08:11 AM. Reason: edit added
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Forum Contributor
    Join Date
    03-24-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Vlookup and sumifs or pivot table?

    Hello Oeldere
    About the red value, you just need to format it differently.But that's not a problem.
    My answers are not real cose they're just a simulation of an ideal output.
    About doing it in a pivot table, i'd love to, but only in excel 2013i can add another table on a previous one. With my excel version of 2010, i don't think i can do it...
    About your file, you cannot repeat the cost per hour for each worker because you're going to need to multiply all the hours of each person by his rate (cost/hour)....for all workers.
    Tks for your effort anyway. any other ideas?
    I'm trying now to build several tables so, with sumifs, i have what i want...but i'm not getting there.
    Best regards
    PEdro

  8. #8
    Forum Contributor
    Join Date
    03-24-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Vlookup and sumifs or pivot table?

    Hello Oeldere
    About the red value, you just need to format it differently.But that's not a problem.
    My answers are not real cose they're just a simulation of an ideal output.
    About doing it in a pivot table, i'd love to, but only in excel 2013i can add another table on a previous one. With my excel version of 2010, i don't think i can do it...
    About your file, you cannot repeat the cost per hour for each worker because you're going to need to multiply all the hours of each person by his rate (cost/hour)....for all workers.
    Tks for your effort anyway. any other ideas?
    I'm trying now to build several tables so, with sumifs, i have what i want...but i'm not getting there.
    Best regards
    Pedro

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Vlookup and sumifs or pivot table?

    is post number 4 not working?

  10. #10
    Forum Contributor
    Join Date
    03-24-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Vlookup and sumifs or pivot table?

    Hi nflsales
    None are working so far...
    Tks for your interest
    Pedro

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Vlookup and sumifs or pivot table?

    L6=SUMPRODUCT(SUMIFS($D$5:$D$20,$B$5:$B$20,L$5,$E$5:$E$20,$K6,$C$5:$C$20,$H$5:$H$11)*($I$5:$I$11)*24)
    =SUMPRODUCT(SUMIFS($D$5:$D$20,$B$5:$B$20,L$5,$E$5:$E$20,$K6,$C$5:$C$20,$H$5:$H$11)*($I$5:$I$11)*24)
    Try this and copy across

  12. #12
    Forum Contributor
    Join Date
    03-24-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Vlookup and sumifs or pivot table?

    Hi nflsales
    YES!!! It's working!!!
    Tks a lot!!
    Best regards
    Pedro

  13. #13
    Forum Contributor
    Join Date
    03-24-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Vlookup and sumifs or pivot table?

    Hi nflsales
    I've use your formula and...with my file, it's not working. Is that because it's a long file (20.000 rec's)? All data are in the same sheet.
    I think my problem is with parentisis.
    Can you please check the file attach (livro2.xls). The formula beside Valor should give us 39,92€.
    Tks a lot for your time
    Best regards

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup and sumifs or pivot table?

    About your file, you cannot repeat the cost per hour for each worker because you're going to need to multiply all the hours of each person by his rate (cost/hour)....for all workers.
    Yes, that is correct, but what is the problem with that?

    Pedro, do yourself a favourite and keep all data in 1 sheet, and analyse the data with that sheet. (e.g. with a pivot table).

    You did not answer my question, why the result is not the same.

    Please reply.

+ 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] Sumifs formula referencing cell generated by slicer/pivot table
    By 3345james in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-22-2015, 03:26 PM
  2. sumifs on a pivot table - compare range with range
    By pavlos in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 02:26 AM
  3. Some sort of sumifs to remove pivot table
    By benoj2005 in forum Excel General
    Replies: 3
    Last Post: 09-11-2012, 04:07 AM
  4. SUMIFs pivot table by column
    By emina002 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 09:50 PM
  5. VLOOKUP from Pivot table?
    By Jeanapeana in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-10-2009, 03:47 AM
  6. [SOLVED] vlookup in a pivot table
    By Matt Lunn in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 03:05 PM
  7. vlookup in a pivot table
    By Matt Lunn in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 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