Calculating longest time between 'Green' and 'Orange' result groups...

jacketpotato

New Member
Joined
Mar 13, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi experts

Please could you help me to configure this spreadsheet to auto calculate the time between ending and start dates for result groups?

The result groups are on the left, column A. Start dates C, End dates D. Sheet auto generates with most recent dates at the top.

As you can see, I've already calculated overall time spent in green groups which shows at the top right.
But what I need now - is to calculate the times between ending then starting again in a group.

For example - D10 - green result group has finished on 14 Mar, then picks back up again in C6 on 15-Jun. I need the sheet to auto calculate these gaps, for the purpose of determining what has been the longest tine spent 'outside' of a group.
 

Attachments

  • RESULTGROUPS1.PNG
    RESULTGROUPS1.PNG
    34.4 KB · Views: 14

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Something like this maybe? Note that the formula in column G extends to the first blank row below the data. Column G shows the number of days between current and previous for the same group, you could then use maxifs to get the desired results for the individual groups in the same way that you have presumably already used sumifs for the green total.

For future posts it would be helpful to you if you post your examples using XL2BB instead of screen captures so that we can copy and paste them to excel for formula testing instead of having to retype them.

Book1
ABCDEFG
2GroupStartEnd
3Orange Result15-Aug-21Current#VALUE!#VALUE!1.00
4Orange Result11-Aug-2114-Aug-2130.458.00
5Green Result15-Jul-2110-Aug-21263.71.00
6Green Result15-Jun-2114-Jul-21294.193.00
7Orange Result15-May-2114-Jun-21304.31.00
8Orange Result15-Apr-2114-May-21294.11.00
9Orange Result15-Mar-2114-Apr-21304.329.00
10Green Result15-Feb-2114-Mar-21273.932.00
11Orange Result15-Jan-2114-Feb-21304.30.00
12Green Result15-Dec-2014-Jan-21304.30.00
13
Sheet2
Cell Formulas
RangeFormula
E3:E12E3=D3-C3
F3:F12F3=E3/7
G3:G12G3=C3-XLOOKUP(A3,$A4:$A$13,$D4:$D$13,C3)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,941
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top