+ Reply to Thread
Results 1 to 34 of 34

NETWORKDAYS + SUMPRODUCT Formula

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    NETWORKDAYS + SUMPRODUCT Formula

    Hello guys,

    Thanks in advance for your help, I'm learning a lot through this forum.

    I already have this formula that counts how many cells I have that meet these 2 criterias.

    =SUMPRODUCT(--(Table2[Milestones]="blabla"),--((Table2[Date]>0)))

    But I want to have the Average number of days between all the dates that meet the criteria "blabla" and are not empty and all the dates that meet the criteria "lolo" and are not empty.

    It has to be an Array formula because I have multiple times the Milestone "blabla" and the milestone "lolo".


    Hope it'S clear, thanks a lot for your input.

    Cheers.


    Guillaume

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Can you attach a sample workbook?
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    work template 2.xlsx

    Here you go. Usually the partners names are auto populated through another sheet that has the contacts.

    So I want to evaluate the average number of days between each SAlt in a box sign up and Nexus survey.


    Thanks a lot for the help.

    -Guillaume

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: NETWORKDAYS + SUMPRODUCT Formula

    The average number of days can be derived by using this calculation:

    =(Max_date-Min_date)/(Total signups-1)

    In excel terms you can do that with this formula

    =SUM(AGGREGATE({14,15},6,C3:C1000/(B3:B1000="SALT-in-a-Box sign up")/(C3:C1000<>""),1)*{1,-1})/(COUNTIFS(B3:B1000,"SALT-in-a-Box sign up",C3:C1000,">0")-1)
    Audere est facere

  5. #5
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Hi Daddylonglegs,

    Thank you really much for the formula ! I couldn't have found that on my own.

    Is there a way that you can modify it to Evaluate the Average Number of Days between Salt-in-a-box sign up and The Nexus survey Milestone ? It is actually the repeated difference between those 2 days that I want to know. Not so much the average # of days between each Salt-in-a-box sign up.

    Million thanks for your help.

    -Guillaume

  6. #6
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Hi guys,


    Does anyone has an idea ?

    The formula from DaddyLonglegs is good but has to be adapted a little bit I guess. The average # of days between SALT-in-a-Box sign up and the The nexus survey on a repetitive basis.

    Thank you for your help.

    -Guillaume

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Hi.

    Did you include a few manually-calculated expected results based on this new requirement in your attachment?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  8. #8
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    What do you mean by that ?

    If I enter some fields manually ? => I'll put the date for each step manually. BUT the field Partner Name is a formula linked to another sheet and the Milestones are also a Formula based on the cell right next to it in the column before.


    I don't know if that answers your question so please don't hesitate if you want further explanations...

    Thanks a lot!!

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    No. I meant: can you tell us a few expected results, just so that we have something to use for verifying potential solutions.

    Regards

  10. #10
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Yes of course!

    So by calculating the average Number of days between the Milestone 1 (SALT-in-a-Box sign-up) and the Milestone 3 ( The nexus survey), I want to be able with that formula, to evaluate on average how many days does a partner take to go from Milestone 1 to Milestone 3.

    I will have multiple partners and thus I want the formula to consider every difference between those milestones.

    The date will be put manually once the Milestone is completed by the partner.

    So fort example by a quick look at the answer from the formula, I'll be able to say : On average, Partners take 40 days between those 2 steps.

    Hope that helps, thanks a lot for your time.

    -Guillaume

  11. #11
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Ah, sorry. I meant rather whether you could give me an actual value, so that I can test a formula against it.

    Of course, this doesn't have to be the result for the whole dataset: simply a reduced version so that you yourself are able to calculate it manually.

    Once I know that I have a working solution which matches your expected result for a small dataset, then I can simply extend the ranges, etc. and make sure that it also works on your real, larger dataset.

    Regards

  12. #12
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    work template 3.xlsx

    Please see attached for an example. It may just have 3 partners but you'll see the different step to get the final results... So I cannot use the same process for a whole table.

    The result in that case is 164 days. Average Number of days between SALT in a Box sign up and the Nexus survey.


    Hope that's the thing you needed, if it's not let me know, I'll try to put up another example.

    Thanks a lot I've been struggling a lot on that one.


    -Guillaume

  13. #13
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Do you need more information XOR LX ?

    I can try to provide more info.

    Thanks a lot.

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Sincere apologies. I'd somehow forgotten about this post.

    Will take a look now.

    Regards

  15. #15
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Your dates in column C appear to be in strictly ascending order. Is this always the case?

    Regards

  16. #16
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Yes it will be always the same. It's a pipeline process.

    Thank you really much

  17. #17
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Yes it is. It's a pipeline process.

    Thank you really much

  18. #18
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    I have a solution, along the lines of daddylonglegs'. However, I've just noticed that your manual calculations in this workbook are using NETWORKDAYS, which has me a bit confused.

    Since daddylonglegs' solution did not consider working days only, and since you appeared happy with the solution he offered you, I'm not quite sure why your new query is asking for that to be a factor.

    Can you clarify?

    Regards

  19. #19
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Actually, I'll be happy with the average # of working days or the average # of days between the 2 Milestones.

    I used Networkingdays just because I thought about this formula and I also thought that it was easier...

    Whatever you have, I'll take it

    Thanks !

  20. #20
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Ok, but now I've just been checking my results and I see that it's not actually true that the dates in column C are in strictly ascending order, which I thought you'd confirmed was the case?

    Regards

  21. #21
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Yes they are... For each partner...

    It's like the dates start over when it's a new partner. Each Partner will complete the Milestones in a different Timeline. One can go from step 1 to 5 in 1 month ( september to october), the other one could go from step 1 to step 5 in 6 month ( June to November).

    So they go in ascending order but for each partner and NOT when we compare a partner to the other one.

    Hope that's clear for you, I know that you are trying to help me and I appreciate that a lot.

    Thanks !

  22. #22
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Quote Originally Posted by guibro View Post
    Yes they are... For each partner...
    Ah - that's a different matter.

    Will have to re-think...

    Regards

  23. #23
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    I understand...

    Thanks for your help ! I thought that Daddylongsleg had it but it was comparing the SALT-in-a-Box together.

  24. #24
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Ok, not that big an amendment required.

    Try this array formula**:

    =AVERAGE(MMULT(INDEX(C:C,N(IF(1,SMALL(IF(B3:B20={"SALT-in-a-Box sign up","Nexus Survey"},ROW(B3:B20)),{0,1}+2*ROW(INDEX(B:B,1):INDEX(B:B,COUNTIF(B3:B20,"SALT-in-a-Box sign up")))-1)))),{-1;1}))

    Obviously you can amend the upper range reference (20 here) as required, though be careful not to make it too large, since every cell referenced will add to the calculation required, whether technically beyond the last-used cells in those ranges or not.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

  25. #25
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    XOR LX, I guess you're almost done ! lol sometimes I can manipulate a little bit the formula if it shows an error but this I can't...

    I have the #NUM! error. I've look and the references look good...

    Sorry for that, I believe it's a really tough one. I wasn't expected that.


    Million thanks !

  26. #26
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Are you referring to the file you posted? I received no such errors when I tested my formula in that file.

    Regards

  27. #27
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Indeed yes.. I made sure by re-opening the document, copy-pasting, but it still says #NUM!

  28. #28
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    And you followed the instructions re array formulas ok?

    Regards

  29. #29
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Yep.

    Do you mind posting your document ? I'll take a look real quick and I'll let you know if it works on my side.

    Thanks thanks !

  30. #30
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Can you not re-post your attachment with your attempt at entering my formula in?

    Regards

  31. #31
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    work template 4.xlsx

    Here you go.

    I look forward to seeing what's wrong.

    Thanks !

  32. #32
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Apologies. I forgot that I cleaned your data prior to developing my solution. It's something I always do out of habit.

    All of your entries in column B for "Nexus Survey" have an additional space at the end, which of course I removed. I made a note to tell you about this but then simply forgot.

    Regards

  33. #33
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Thank you really much for your help for this formula. I couldn't imagine finding that on my own.

    Is there a way that if the date for the Nexus Survey is not put, it doesn't consider it and just calculate the difference between SALT in a box sign up and Nexus survey for the partners before ?

    Because right now, it says #Value if I don't put a date into the last Nexus survey and thus I have to adapt the formula all the time with the precise range.


    So to be more precise, I don't want to calculate the difference if the Nexus Survey is not put. I don't want the formula to consider the partners that don't have completed the Nexus Survey.

    Maybe that's impossible with the formula up there. In any case, thanks a lot !

    Guillaume

  34. #34
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: NETWORKDAYS + SUMPRODUCT Formula

    Maybe I can combine it with something like that : =IF(MOD(ROWS($1:9)-1,7)=0

    What do you think ?

    Best regards.

+ 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] Networkdays in sumproduct
    By katosh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2012, 10:20 AM
  2. Networkdays formula
    By JezLisle in forum Excel General
    Replies: 5
    Last Post: 11-04-2010, 06:00 AM
  3. Excel 2007 : NETWORKDAYS formula
    By Mikev078 in forum Excel General
    Replies: 5
    Last Post: 08-31-2010, 01:45 PM
  4. Using sumproduct to sum networkdays between dates with criteria?
    By cheesysocks in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-28-2008, 01:51 PM
  5. NETWORKDAYS FORMULA
    By Lichase in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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