+ Reply to Thread
Results 1 to 11 of 11

Summarize Data by Person, Month and Percentages

  1. #1
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Summarize Data by Person, Month and Percentages

    The Static table has a value in some or all months. On the right side of the 12 months are contractor names and the credit they get for each issue. On some issues two contractors share in the credit, in others just one contractor gets 100%.

    The contractor gets a monthly credit that is multiplied by the Odds percent and the contractor’s percent.

    For example, the first row of the table, issue 338-Chippawa Falls has a Nov value of 22,162. Amy’s share is 95% times 50% or 10,527.

    For the entire month of Nov, Amy has credits for eight other issues with varying Odds, Shares and Amounts. Highlighted in yellow. Amy’s share for Nov is initially 140,588 as highlighted on the temporary Amy Helper Table off to the right.

    Finally, on the Summary tab, for Amy and Nov the amount of 140,588 is further multiplied against the Pct value, 95%, giving Amy a final Nov credit of 133,588.

    Easy Peasy.

    Now, dear readers, the challenge is to fill out the Summary table for all contractors for every month…without using a Helper Table for each contractor.

    Can this be done?

    Thanks for taking the considerable time to get acquainted with my problem. Your suggestions would be most appreciated.

    tom
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Summarize Data by Person, Month and Percentages

    Try in C2:
    Please Login or Register  to view this content.
    P/S:Contractor Irvin in C10 sheet Summary should be Irwin.
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Re: Summarize Data by Person, Month and Percentages

    Hi bebo,

    Thanks for the suggestion. Looks complicated. Let me play with it and report back.

    Thanks again!

    tom

  4. #4
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Re: Summarize Data by Person, Month and Percentages

    Hey Bebo,

    It WORKS Preferctly for Jan, but not when copied to other months the results are wrong. I tried to see where your formula could be modified to copy over to the months but i confess the formula is a bit beyond me.

    2018-06-25_15-31-01.jpg

    Would you kindly explain it to me?

    Thanks!
    tom

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Summarize Data by Person, Month and Percentages

    snapfade the formula bebo gave you has tblData[Odds] in the first argument. The pic above shows tblData[Jan]. Try changing that an let us know what you get.

    At my end I get:



    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    1
    Contractor
    Pct
    Jan
    Feb
    Mar
    Apr
    May
    Jun
    Jul
    Aug
    Sep
    Oct
    Nov
    Dec
    Total
    2
    Amy
    95%
    27,899
    21,702
    18,444
    19,299
    50,200
    45,551
    47,628
    36,331
    54,495
    88,191
    133,558
    111,798
    655,095
    3
    Bill
    110%
    15,520
    14,158
    32,204
    53,728
    74,065
    57,840
    97,362
    129,150
    178,418
    234,587
    312,676
    276,330
    1,476,038
    4
    Chelsea
    95%
    70,664
    82,545
    88,880
    135,552
    97,227
    118,879
    146,025
    103,830
    122,111
    333,749
    311,769
    352,702
    1,963,934
    5
    David
    100%
    11,046
    24,694
    45,100
    62,840
    100,954
    99,351
    150,778
    175,877
    187,250
    211,976
    248,145
    342,587
    1,660,597
    6
    Eddie
    100%
    36,264
    63,407
    84,875
    65,394
    59,872
    41,142
    145,429
    208,413
    182,187
    217,042
    311,396
    305,047
    1,720,469
    7
    Fran
    95%
    11,105
    18,840
    26,023
    49,966
    76,306
    45,359
    161,152
    175,454
    188,380
    243,908
    217,123
    186,828
    1,400,445
    8
    Glenn
    100%
    3,682
    25,302
    40,199
    59,949
    58,454
    55,160
    145,494
    196,868
    217,364
    247,151
    326,777
    330,624
    1,707,025
    9
    Helen
    85%
    0
    0
    0
    14,582
    29,911
    14,708
    62,068
    136,461
    134,097
    267,324
    278,558
    227,284
    1,164,995
    10
    Irwin
    95%
    29,714
    55,708
    48,875
    98,093
    84,747
    116,007
    155,003
    216,548
    226,587
    253,227
    387,351
    346,623
    2,018,484
    11
    Julie
    100%
    19,776
    41,048
    35,535
    65,716
    72,336
    45,781
    111,183
    80,141
    67,480
    141,027
    197,589
    168,677
    1,046,290
    12
    Ken
    110%
    0
    0
    0
    46,133
    47,811
    28,459
    84,393
    89,523
    100,222
    183,420
    172,030
    278,282
    1,030,272
    13
    Linda
    100%
    20,344
    18,867
    23,774
    81,926
    49,163
    50,668
    71,249
    85,131
    134,599
    122,411
    172,323
    192,398
    1,022,854
    Dave

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Summarize Data by Person, Month and Percentages

    I dont get anything like what your image shows...
    A
    B
    C
    D
    E
    F
    G
    1
    Contractor Pct Jan Feb Mar Apr May
    2
    Amy
    95%
    27,899
    21,702
    18,444
    19,299
    50,200
    3
    Bill
    110%
    15,520
    14,158
    32,204
    53,728
    74,065
    4
    Chelsea
    95%
    70,664
    82,545
    88,880
    135,552
    97,227
    5
    David
    100%
    11,046
    24,694
    45,100
    62,840
    100,954
    6
    Eddie
    100%
    36,264
    63,407
    84,875
    65,394
    59,872
    7
    Fran
    95%
    11,105
    18,840
    26,023
    49,966
    76,306
    8
    Glenn
    100%
    3,682
    25,302
    40,199
    59,949
    58,454
    9
    Helen
    85%
    0
    0
    0
    14,582
    29,911
    10
    Irwin
    95%
    29,714
    55,708
    48,875
    98,093
    84,747
    11
    Julie
    100%
    19,776
    41,048
    35,535
    65,716
    72,336
    12
    Ken
    110%
    0
    0
    0
    46,133
    47,811
    13
    Linda
    100%
    20,344
    18,867
    23,774
    81,926
    49,163
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Summarize Data by Person, Month and Percentages

    @ snapfade
    .... i confess the formula is a bit beyond me.
    See if this article helps.

    http://xldynamic.com/source/xld.SUMPRODUCT.html

  8. #8
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Re: Summarize Data by Person, Month and Percentages

    When I copied the formula from Jan to Feb through Dec, "[Odds] was treated as relative. I changed the reference to [[Odds]:[Odds]], thereby making Odds absolute. That seems to have done the trick.

    Thanks, Flame for the link; I will take a close look.

    And special thanks to bebo for doing the heavy lifting.

    This forum is truly awesome.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Summarize Data by Person, Month and Percentages

    You bet, and you're right. bebo did the heavy lifting.

    Thanks for the feedback, rep and marking your thread Solved.

  10. #10
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Re: Summarize Data by Person, Month and Percentages

    The formula presented by Bebo works perfectly:

    Please Login or Register  to view this content.
    Can anybody explain to me how it works?

    Thanks,
    tom

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Summarize Data by Person, Month and Percentages

    Quote Originally Posted by snapfade View Post
    Can anybody explain to me how it works?
    Nice to hear from you.
    Working in cell C2, sheet Summary, we have conditions:
    Untitled1.png

    SUMPRODUCT work like this:
    Step1: (ConditionRange1*ConditionRange2*...COnditionRangeN)*(ValueRange1*...*ValueRangeN) for each row
    Step2: Sum all values found from all rows

    Untitled1.png

    In which,
    ConditionRange1: INDIRECT("tblData["&$A2&"]")
    ConditionRange2: (tblData[[#Headers],[Jan]:[Dec]]=C$1)* tblData[[Jan]:[Dec]]
    ValueRange1:$B2
    ValueRange2: tblData[Odds]

    SUMPRODUCT will go thru each row, multifly each row, then sum
    row 1: 95%*0*..*50% =0
    row 2: 75%*0*..*50% =0
    row 3: 100%*23739*..*50%=11689
    ...
    row n
    ........................

    Finally:
    =SUMPRODUCT(tblData[Odds] * INDIRECT("tblData["&$A2&"]") * (tblData[[#Headers],[Jan]:[Dec]]=C$1) * tblData[[Jan]:[Dec]] * $B2)

    Hope this helps.

+ 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] Summarize data into occurrences per month
    By onelifestyle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-30-2018, 04:03 PM
  2. Charts to show percentages for each person
    By andy_tap in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-04-2017, 10:38 AM
  3. Summarize Data by Month by Person
    By mason736 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2016, 04:35 PM
  4. [SOLVED] Trying to Pull Data by keyword for each month and use for percentages for each month (Y/N)
    By Shrad013 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-20-2013, 11:37 AM
  5. [SOLVED] Trying to Pull Data by keyword for each month and use for percentages for each month (Y/N)
    By Shrad013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 08:55 AM
  6. Replies: 6
    Last Post: 03-03-2013, 01:41 AM
  7. Best way to summarize into month
    By bluerog in forum Excel General
    Replies: 4
    Last Post: 02-22-2011, 05:21 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