+ Reply to Thread
Results 1 to 11 of 11

SUMPRODUCT function help max value

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    SUMPRODUCT function help max value

    POST UPDATE LOOK POST #4 attach file:

    ok.. first off all i upload the workbook example. now


    Night Work Hours HELP: if add in cells value 6 or 5 system sum all this values to Night Work Hours. I want to sum only to 48 (<=48)

    Weekend Pay HELP : i want help if user add to Sat or Sun Employee cells P or A or B then sum by 1 to Weekend Pay

    Day OFF count HELP : i want help if user add to holidays cells (Employee cells) P or A or B then sum by 1 to Day OFF, if add R then day off sum -1


    note: if my employee work (P or A or B ) Sat and Sun i give him 1 Weekend Day and 1 Day Off
    Last edited by hackertom; 09-12-2018 at 04:52 AM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: SUMPRODUCT function help max value

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    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,053

    Re: SUMPRODUCT function help max value

    Also explain what you WANT the formula to do. It's pretty much impossible (for me...) to visualise what this monster is trying to do.
    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

  4. #4
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: SUMPRODUCT function help calendar

    ok.. first off all i upload the workbook example. now

    Night Work Hours HELP: if add in cells value 6 or 5 system sum all this values to Night Work Hours. I want to sum only to 48 (<=48)

    Weekend Pay HELP : i want help if user add to Sat or Sun Employee cells P or A or B then sum by 1 to Weekend Pay

    Day OFF count HELP : i want help if user add to holidays cells (Employee cells) P or A or B then sum by 1 to Day OFF, if add R then day off sum -1


    note: if my employee work (P or A or B ) Sat and Sun i give him 1 Weekend Day and 1 Day Off
    Attached Files Attached Files
    Last edited by hackertom; 09-12-2018 at 04:52 AM.

  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,053

    Re: SUMPRODUCT function help max value

    So... You have edited out your original formula, so I have no idea what you want... or where you want it, AND there are no manually calculated results, as requested at Post 2...

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: SUMPRODUCT function help max value

    It would be helpful if you returned some after values and populated the sheet with data

    =SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)=6)*(OFFSET($A8,0,31*($A$3-1)+1,1,31)))+SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)=5)*(OFFSET($A8,0,31*($A$3-1)+1,1,31)))

    might be the formula for night hours

    The whole sheet would have been much more straightforward if the numbers for the days had been dates and not numbers as discussed in an earlier post.
    Then you could have looked between the dates in the sumproduct

  7. #7
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: SUMPRODUCT function help max value

    Quote Originally Posted by davsth View Post
    It would be helpful if you returned some after values and populated the sheet with data

    =SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)=6)*(OFFSET($A8,0,31*($A$3-1)+1,1,31)))+SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)=5)*(OFFSET($A8,0,31*($A$3-1)+1,1,31)))

    might be the formula for night hours

    The whole sheet would have been much more straightforward if the numbers for the days had been dates and not numbers as discussed in an earlier post.
    Then you could have looked between the dates in the sumproduct
    Friend if you check my file i have formula for night hours work and sum 5 or 6, my problem is how to stop sum to number 48...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: SUMPRODUCT function help max value

    Quote Originally Posted by Glenn Kennedy View Post
    So... You have edited out your original formula, so I have no idea what you want... or where you want it, AND there are no manually calculated results, as requested at Post 2...
    i example in post #4 what i want, and upload my file, if you can help you there

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: SUMPRODUCT function help max value

    That is the minimum of your formula and 48

    =min(your formula, 48)

    =MIN(SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)=6)*(OFFSET($A8,0,31*($A$3-1)+1,1,31)))+SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)=5)*(OFFSET($A8,0,31*($A$3-1)+1,1,31))),48)

    however your sheets does not contain any data, so does not show the problem you are having and so doesn't point people how to fix it. If you had shown the problem, with the answer say of 60 in your formula and said you wanted it to never be above 48 you would have got a quicker answer, the same holds for the other parts of your question you are asking. You more effort you put in in the question the quicker you get an answer. Glen is much smarter than me, but if both of us were confused, I am sure others were.

    I would suggest some manual answers for your second 2 questions, with some dummy data, will expedite a quicker result.
    Last edited by davsth; 09-12-2018 at 06:01 AM.

  10. #10
    Registered User
    Join Date
    08-29-2018
    Location
    Greece
    MS-Off Ver
    MS Office 2017
    Posts
    47

    Re: SUMPRODUCT function help max value

    Quote Originally Posted by davsth View Post
    That is the minimum of your formula and 48

    =min(your formula, 48)

    =MIN(SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)=6)*(OFFSET($A8,0,31*($A$3-1)+1,1,31)))+SUMPRODUCT((OFFSET($A8,0,31*($A$3-1)+1,1,31)=5)*(OFFSET($A8,0,31*($A$3-1)+1,1,31))),48)

    however your sheets does not contain any data, so does not show the problem you are having and so doesn't point people how to fix it. If you had shown the problem, with the answer say of 60 in your formula and said you wanted it to never be above 48 you would have got a quicker answer, the same holds for the other parts of your question you are asking. You more effort you put in in the question the quicker you get an answer. Glen is much smarter than me, but if both of us were confused, I am sure others were.

    I would suggest some manual answers for your second 2 questions, with some dummy data, will expedite a quicker result.
    Thank you for your answer my firend and sorry about that but my English is not so good.... and i try to I make a proposal without mistakes, but some thoughts do not know how to translate it as it should...

    you can help me if add this function to my workbook and upload it again? because i dont know how to add =MIN to my formula because i open SUMPRODUCT formula.... :/

  11. #11
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: SUMPRODUCT function help max value

    Nice touch - cross-posted on a site that doesn't allow uploads, so put the file on here and point them to it!


    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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 function instead of vlookup with sum function
    By geniusufo007 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2018, 11:17 AM
  2. [SOLVED] Sumproduct Function with Other Function References
    By T86157 in forum Outlook Formatting & Functions
    Replies: 4
    Last Post: 07-30-2012, 04:56 PM
  3. Replies: 9
    Last Post: 07-02-2012, 07:02 PM
  4. Please Help - Sumproduct function
    By Sebski in forum Excel General
    Replies: 2
    Last Post: 05-03-2012, 05:11 AM
  5. Replies: 10
    Last Post: 11-11-2010, 03:49 PM
  6. Sumproduct with contains (IN) function
    By jchambers00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2009, 10:13 AM
  7. [SOLVED] SUMIF Function Inside SUMPRODUCT Function
    By Abdul Waheed in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-19-2005, 12:05 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