+ Reply to Thread
Results 1 to 8 of 8

Sumproduct for qtrly data

  1. #1
    Registered User
    Join Date
    03-17-2015
    Location
    Sydney
    MS-Off Ver
    Win O365; O for Mac V16
    Posts
    8

    Sumproduct for qtrly data

    Hi there,

    I have a table that essentially has a few naming columns and then:

    *Col A-K = customer, KPI, location......etc.
    * Col L = monthly target column
    * Col M-Y = monthly actual columns
    * rows are different KPI, customers etc.

    I want to calculate how many KPI in a month or qtr or YTD are >= target and summarise as a % achievement.

    I got the above working for monthly calculations as follows:

    How many targets: = 121 =SUMPRODUCT(--(TRIM(INDEX(KPIRawDataCL!A5:Y125,,MATCH($B$5,KPIRawDataCL!A2:Y2,0)))<>"")) // $B$5 user selects month
    For a month >= target: = 91 =SUMPRODUCT(--(INDEX(KPIRawDataCL!A5:Y125,,MATCH($B$5,KPIRawDataCL!A2:Y2,0))>=KPIRawDataCL!$L$5:$L$125),--NOT(ISBLANK(INDEX(KPIRawDataCL!A5:Y125,,MATCH($B$5,KPIRawDataCL!A2:Y2,0)))))
    Achievement = 91/121 = 75%

    Qtrly calcs I'm getting stuck:

    How many targets: 363 = SUMPRODUCT(--(TRIM(INDEX(KPIRawDataCL!A5:Y125,,MATCH($B$5,KPIRawDataCL!A2:Y2,0)))<>""))*$B$10 // $B$5 user selects month ; $B$10 = 1,2,3 depending which month in qtr
    For qtr how many are >= target = ???? I dont know how to adjust above formula to calculate for the quarter. I think the problem is that it stops at the first col for the quarter. For a quarter I use a row at the top to indicate which qtr a selected month falls in.

    Screenshot below shows the data (have hidden clients and location hence KPI# repeats)

    1650592823921.png

    Thank You so much for any help.....

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Sumproduct for qtrly data

    is there any chance that you can attach a workbook with anonymised sample data?
    (as has also been requested in your other enquiries, but to which you have not responded)
    Last edited by janmorris; 04-21-2022 at 11:25 PM.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Registered User
    Join Date
    03-17-2015
    Location
    Sydney
    MS-Off Ver
    Win O365; O for Mac V16
    Posts
    8

    Re: Sumproduct for qtrly data

    Hi Jan,

    sorry about that. I'm obviously not very good at these matters. Please see attached a sample file with the yellow cells showing where I'm stuck. Any help would be awesome.

    Rgds
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Sumproduct for qtrly data

    try the following formulas:

    in T3:
    Please Login or Register  to view this content.
    in T6:
    Please Login or Register  to view this content.
    in T7:
    Please Login or Register  to view this content.
    in T10:
    Please Login or Register  to view this content.
    in T11:
    Please Login or Register  to view this content.
    in T14:
    Please Login or Register  to view this content.
    in T15:
    Please Login or Register  to view this content.
    sample file attached

    EDIT:
    tip for your Profile office version, try something like: Mac 2019 & Win 365, or something short like that
    Attached Files Attached Files
    Last edited by janmorris; 04-22-2022 at 05:35 AM.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sumproduct for qtrly data

    In T11

    =SUMPRODUCT(($C$5:$N$20>=$B$5:$B$20)*($C$3:$N$3=T3))

    In T15

    =SUMPRODUCT(($C$5:$N$20>=$B$5:$B$20)*($C$3:$N$3=T3))
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 04-22-2022 at 10:19 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    03-17-2015
    Location
    Sydney
    MS-Off Ver
    Win O365; O for Mac V16
    Posts
    8

    Re: Sumproduct for qtrly data

    Thank You so much janmorris and kvsrinivasamurthy for your help. Really appreciate it. Have been trying to solve this for days. If I look at the formula it looks straight forward and I guess the challenge for me is, that I need to better understand how arrays really work .

    Will transport data to my file and hopefully get it sorted.

    Thanks again

  7. #7
    Registered User
    Join Date
    03-17-2015
    Location
    Sydney
    MS-Off Ver
    Win O365; O for Mac V16
    Posts
    8

    Smile Re: Sumproduct for qtrly data

    Hi guys,

    celebrations were too early. I could transport info into my LIVE data but once completed I could see, that the qtrly and YTD achievement values do not update if the month is changed. Ie if month in qtr is 1 instead of 3, it does not udpate the achievement. It did however correctly did so for goal. The same applies to YTD. I have attached a new file where I changed month to 10 and it shows the incorrect Qtr and YTD achievement. Any help would be great.

    I feel we are close.

    Thank you so much again.
    Attached Files Attached Files
    Last edited by TheRockHolger; 04-22-2022 at 08:12 PM.

  8. #8
    Registered User
    Join Date
    03-17-2015
    Location
    Sydney
    MS-Off Ver
    Win O365; O for Mac V16
    Posts
    8

    Cool Re: Sumproduct for qtrly data

    Hi Guys,

    I think I have figured it out so thought I share the result in the attached file. I added another array in the formula so that for QTR and YTD the range looks for from...to.... .

    Have tested it in my data and it looks to work.

    Thanks everyone for the help and hope this helps others too.

    Cheers for now
    Attached Files Attached Files

+ 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 Help Request: Changing Text Data to Numeric Data Based on Three Criteria
    By GreganDunn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2018, 07:20 PM
  2. [SOLVED] Sumproduct and Multiple Data (Daily, Weekly Data)
    By JohnMee in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-03-2014, 06:54 AM
  3. Sumif or Sumproduct Data in month when data is represented in mmddyyyyy format
    By ankurkhandelwal1978 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2012, 05:00 PM
  4. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  5. Sumproduct for 2 different data in different row
    By seanyeap in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2011, 06:44 PM
  6. Replies: 6
    Last Post: 06-03-2011, 09:09 PM
  7. Sumproduct, Data drop down box
    By Henry c in forum Excel General
    Replies: 3
    Last Post: 11-12-2009, 07:48 AM

Tags for this Thread

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