Discussion Betreff: Continuous Date in Excel
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150397#M90165
<P><LI-USER uid="722750"></LI-USER> I would like the formula to use a specific linking factor and analyze the start and end dates and if they are concurrent and don't have a day gap. For instance, JANE DOE's end date is 12/31/2020 and her new start date is 01/01/2021, therefore the date is continuous and the old end date of 12/31/2020 is null and void and the new end date is 09/30/2021. The example for Jill Doe has a break after 11/30/2020, therefore I know it's not consecutive, but the next dates are in the realm of the aforementioned scenario.</P>Fri, 19 Feb 2021 20:44:34 GMTmclovings2021-02-19T20:44:34ZContinuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150235#M90151
<P>I would like to use a formula that could use a specific linking factor such as a SSN/Name and would be able to dictate whether or not the dates are continuous without a break and give me a consolidated date. Any assistance is greatly appreciated.</P>Fri, 19 Feb 2021 20:27:10 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150235#M90151mclovings2021-02-19T20:27:10ZRe: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150290#M90157
<P><LI-USER uid="972659"></LI-USER> </P><P> </P><P>You can do date math quite easily. (By the way, the term "continuous date" isn't one I recognize...you use it as if it's common speech).</P><P> </P><P>From what you're showing, if it's the '16 days" you want to have calculated, you could simply enter the formula =D1-C1 (assuming columns begin in your layout with A)</P><P> </P><P>If, on the other hand, you want to know what date is 16 days after 12/15/2020 (and that latter date is in cell C1), just enter the formula =C1+16</P><P> </P><P>Your second sentence doesn't really make sense. Oh, maybe you're saying you want a field to read</P><P>12/15/2020--9/30/2021</P><P> </P><P>Now if that's the case, that gets a little tricky but here's how to do it.</P><P><STRONG>=CONCATENATE(TEXT(C3,"mm/dd/yyyy"),"--",TEXT(D3,"mm/dd/yyyy")) </STRONG></P><P>assuming the first date is in C3, the second in D3.</P><P> </P>Fri, 19 Feb 2021 20:17:54 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150290#M90157mathetes2021-02-19T20:17:54ZBetreff: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150296#M90158
<P><LI-USER uid="972659"></LI-USER> </P><P>I didn't understand what exactly you were trying to do.</P><P>It would be advantageous if you insert a file (without sensitive data) and explain your plans in detail with regard to this file.</P><P> </P><P>Perhaps these examples will help you solve your problem.</P><P> </P>Fri, 19 Feb 2021 20:18:39 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150296#M90158NikolinoDE2021-02-19T20:18:39ZBetreff: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150319#M90159
<P><LI-USER uid="722750"></LI-USER> I would like to use a formula that could use a specific linking factor such as a SSN and would be able to dictate whether or not the dates are continuous without a break and give me a consolidated date. Does this make sense?</P>Fri, 19 Feb 2021 20:25:06 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150319#M90159mclovings2021-02-19T20:25:06ZRe: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150325#M90160
<P><LI-USER uid="425987"></LI-USER> I would like to use a formula that could use a specific linking factor such as a SSN and would be able to dictate whether or not the dates are continuous without a break and give me a consolidated date. Does this make sense?</P>Fri, 19 Feb 2021 20:25:59 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150325#M90160mclovings2021-02-19T20:25:59ZBetreff: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150347#M90161
Excuse me, but I'm not a specialist in Social Security Nummbers (SSN).<BR />In the file, please explain in detail what exactly and in which cell what you want to accomplish.<BR />Please keep in mind that we too are ignorant of the knowledge of others.<BR /><BR />Should only the days be calculated. from start and end date?<BR />If it is to be linked to SSN, then how?<BR /><BR />Thank you for your understanding and patience<BR /><BR />Nikolino<BR />I know I don't know anything (Socrates)Fri, 19 Feb 2021 20:35:05 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150347#M90161NikolinoDE2021-02-19T20:35:05ZRe: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150351#M90162
<P><LI-USER uid="972659"></LI-USER> </P><P> </P><P>Not totally. Your spreadsheet gives data, but what would really be helpful is to take that raw data and use it to illustrate what you mean by "continuous without a break" --illustrating it both ways --</P><P> </P><P>The consolidated date is, I'm going to presume unless you correct me, is what I gave you in my first answer. Not really what I'd call a "consolidated date" (it is, after all, <STRONG>two</STRONG> date<U><STRONG>s</STRONG>)</U> but a single text field that has concatenated (strung together) two separate texts, each of which is a date, with a separator. If that's what you mean, then you have that formula. If it's not what you mean, what do you mean?</P>Fri, 19 Feb 2021 20:35:15 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150351#M90162mathetes2021-02-19T20:35:15ZRe: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150378#M90164
<P><LI-USER uid="425987"></LI-USER> I attached an update with what I'm seeking to accomplish in column E (showing continuous data). If the previous end date is 02/17/2021 and the new start date is 02/19/2021, then it's not continuous. A gap, or a break is there and it shouldn't calculate. However, if it's continuous, then the new end date replaces the old end date.</P>Fri, 19 Feb 2021 20:40:54 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150378#M90164mclovings2021-02-19T20:40:54ZBetreff: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150397#M90165
<P><LI-USER uid="722750"></LI-USER> I would like the formula to use a specific linking factor and analyze the start and end dates and if they are concurrent and don't have a day gap. For instance, JANE DOE's end date is 12/31/2020 and her new start date is 01/01/2021, therefore the date is continuous and the old end date of 12/31/2020 is null and void and the new end date is 09/30/2021. The example for Jill Doe has a break after 11/30/2020, therefore I know it's not consecutive, but the next dates are in the realm of the aforementioned scenario.</P>Fri, 19 Feb 2021 20:44:34 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150397#M90165mclovings2021-02-19T20:44:34ZRe: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150415#M90167
<P><LI-USER uid="972659"></LI-USER> </P><P>a) I know the meaning of the word continuous</P><P>b) 1/1/21 is not continuous with 12/31/21 (in the Doe, Jane data)</P><P> </P><P>Now, I realize that was a typo on your part; I'm a human who can interpret and discern what was meant from the larger context. A computer, however (until AI gets more developed and implemented in Excel) would NOT know that it was a typo.</P><P> </P><P>Anyway, another question before answering (which will have to come later; I'm going into another meeting in just a few minutes): you show Doe, Jane in contiguous lines. same with doe, Jill. Is that line-by-line alphabetical sort (or sort by SSN) something that your real database will reflect, or will the rows in fact get mixed, so that it could be something like:</P><P>Doe, Jill</P><P>Doe, Jane</P><P>Doe, Jill</P><P>Doe, Jil</P><P>Doe Jane</P><P>Doe, John</P>Fri, 19 Feb 2021 20:52:10 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150415#M90167mathetes2021-02-19T20:52:10ZRe: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150434#M90170
<P><LI-USER uid="425987"></LI-USER> the data is hard data from a system, so I won't be manipulating any numbers. I can sort by name or SSN, but at the moment, I have it sorted by SSN. I won't be mixing them.</P>Fri, 19 Feb 2021 20:57:28 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150434#M90170mclovings2021-02-19T20:57:28ZRe: Continuous Date
https://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150846#M90174
<P><LI-USER uid="972659"></LI-USER> </P><P> </P><P>Here, first, is a very simple solution that will work if the example you've given is universally true. Which is to say, <STRONG>this will work so long as there are never more than two rows in a row that should be considered continuous dates.</STRONG></P><P> </P><P>If that's not valid, then we'll have to get potentially a lot more complicated, but I didn't see any reason to do that yet. We'd have to start testing rows for such things as</P><UL><LI>count the number of rows where SSN stays consistent<UL><LI>(what's the maximum of rows for any given SSN in your data; is there a limit?)</LI></UL></LI><LI>test each sequence of dates for any given SSN for continuity<BR /><UL><LI>(are they always in date sequence or could continuity be there be rows for the same SSN but separated by an intervening row?)</LI></UL></LI></UL><P>So I need to ask: do we need to get more sophisticated in potential complications hinted at by those questions? What, if any, limits are there to numbers of rows per SSN, especially to numbers of rows per SSN that could be continuous?</P><P> </P>Sat, 20 Feb 2021 00:07:39 GMThttps://techcommunity.microsoft.com/t5/excel/continuous-date/m-p/2150846#M90174mathetes2021-02-20T00:07:39Z