+ Reply to Thread
Results 1 to 5 of 5

Days since last rain

Hybrid View

ejaeschk Days since last rain 08-20-2013, 10:33 AM
RobertMika Re: Days since last rain 08-20-2013, 10:37 AM
shg Re: Days since last rain 08-20-2013, 10:45 AM
ejaeschk Re: Days since last rain 08-20-2013, 10:54 AM
shg Re: Days since last rain 08-20-2013, 10:57 AM
  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Winchester, VA
    MS-Off Ver
    Mac Office 2011
    Posts
    2

    Days since last rain

    Hi, I am trying to calculate days since last rainfall in excel. I've tried all sorts of IF statements and cannot get it to work, I know it is something simple.

    Thanks!!daysince.xls

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Days since last rain

    try:
    =TODAY()-MAX(IF(G2:G1402<>"",A2:A1402))
    Confirm Control+Shift+Enter
    Last edited by RobertMika; 08-20-2013 at 10:43 AM.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Days since last rain

    In I2 and copy down,

    =ROW() - LOOKUP(9E+307, G$2:G2, ROW(G$2:G2))

           ----G---- ---H---- ---I----
       1   precip_mm rain/dry daysince
       2                    0     #N/A
       3                    0     #N/A
       4                    0     #N/A
       5                    0     #N/A
       6                    0     #N/A
       7        16.2        1        0
       8         0.2        1        0
       9                    0        1
      10                    0        2
      11                    0        3
      12                    0        4
      13         0.2        1        0
      14                    0        1
      15        12.4        1        0
      16         0.2        1        0
      17                    0        1
      18                    0        2
      19                    0        3
      20        28.6        1        0
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    08-20-2013
    Location
    Winchester, VA
    MS-Off Ver
    Mac Office 2011
    Posts
    2

    Re: Days since last rain

    Great thanks shg. Now I want to count days which have rain events more than 2 days apart, is that possible?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Days since last rain

    I don't know what that means.

+ 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. A number of days into weeks and days-How do you convert the decimal part of 0.571429
    By Robert Christie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-25-2020, 09:37 PM
  2. [SOLVED] Adding Total Number of Days Elapsed and Displaying >31 Days
    By cwwazy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2013, 08:18 AM
  3. Convert days -> Years, Months, Days, Hours, Minutes, Seconds
    By brharrii in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2012, 06:44 PM
  4. Replies: 9
    Last Post: 09-03-2007, 08:26 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