<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: formula to add one to previous dependent on another column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/formula-to-add-one-to-previous-dependent-on-another-column/m-p/713655#M89711</link>
    <description>&lt;P&gt;Thank you!&amp;nbsp; This worked great and has saved me lots of time!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 21:55:56 GMT</pubDate>
    <dc:creator>EmilyT</dc:creator>
    <dc:date>2024-01-04T21:55:56Z</dc:date>
    <item>
      <title>formula to add one to previous dependent on another column</title>
      <link>https://community.jmp.com/t5/Discussions/formula-to-add-one-to-previous-dependent-on-another-column/m-p/713496#M89694</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know my subject is a little convoluted sounding, but I'm thinking this must be something fairly simple to do and I'm just not knowledgeable enough to know how...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached an example of my data. I would like to write a formula for my "Daynight consecutive" column to have it populate the field with a unique number according to the date (in the "date" column) and whether it is day or night (in the "day or night" column). (This is for me to use in the calculations of "Average Day Temperature" and "Average Night Temperature"). The actual number that is in there doesn't actually matter.&amp;nbsp; I just want a unique identifier for the the period of day or night for each date. But it isn't as simple as combining the "date" and "day or night" columns because the night period spans over two dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that makes sense....the example file hopefully illustrates it.&amp;nbsp; I've manually entered the values in "Daynight consecutive" but would be really helpful if I could use a formula to create that column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 23:30:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/formula-to-add-one-to-previous-dependent-on-another-column/m-p/713496#M89694</guid>
      <dc:creator>EmilyT</dc:creator>
      <dc:date>2024-01-03T23:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: formula to add one to previous dependent on another column</title>
      <link>https://community.jmp.com/t5/Discussions/formula-to-add-one-to-previous-dependent-on-another-column/m-p/713510#M89695</link>
      <description>&lt;P&gt;If you can rely on the row order always being sorted by time, this would work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2024-01-03 155123.png" style="width: 638px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60167i288D467069AE4A13/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-01-03 155123.png" alt="Screenshot 2024-01-03 155123.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Modified dataset attached.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 23:55:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/formula-to-add-one-to-previous-dependent-on-another-column/m-p/713510#M89695</guid>
      <dc:creator>Jordan_Hiller</dc:creator>
      <dc:date>2024-01-03T23:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: formula to add one to previous dependent on another column</title>
      <link>https://community.jmp.com/t5/Discussions/formula-to-add-one-to-previous-dependent-on-another-column/m-p/713655#M89711</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; This worked great and has saved me lots of time!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 21:55:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/formula-to-add-one-to-previous-dependent-on-another-column/m-p/713655#M89711</guid>
      <dc:creator>EmilyT</dc:creator>
      <dc:date>2024-01-04T21:55:56Z</dc:date>
    </item>
  </channel>
</rss>

