+ Reply to Thread
Results 1 to 3 of 3

counting the number of wet days followed by wet days and wet days by dry days in rainfall

  1. #1
    Registered User
    Join Date
    09-06-2020
    Location
    Australia
    MS-Off Ver
    office 365
    Posts
    2

    counting the number of wet days followed by wet days and wet days by dry days in rainfall

    Hi, I want to know the excel formula to count the number for
    a) wet days followed by wet days
    b) wet days followed by dry days
    in the long term daily rainfall data.
    please see the attached excel file which explains what I need and expected results.
    assumption: any days (value in column B in example file>0) rainfall is wet days.
    any days (value in column B in example file=0) is dry days.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: counting the number of wet days followed by wet days and wet days by dry days in rainf

    Please try at
    J3
    =LEN(SUBSTITUTE(CONCAT(N(B4:B34>0)),11,119))-COUNT(B4:B34)

    J4
    =LEN(SUBSTITUTE(SUBSTITUTE(CONCAT(N(B4:B34>0)),11,22),10,109))-COUNT(B4:B34)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-06-2020
    Location
    Australia
    MS-Off Ver
    office 365
    Posts
    2

    Re: counting the number of wet days followed by wet days and wet days by dry days in rainf

    Hi Bo_Ry, Thank you so much, The formula works now.

+ 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. Replies: 13
    Last Post: 08-09-2020, 04:53 PM
  2. Replies: 15
    Last Post: 06-17-2016, 01:59 AM
  3. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  4. [SOLVED] How to find Sum of # of days w/o counting overlapping days twice
    By lanksout in forum Excel General
    Replies: 18
    Last Post: 08-11-2015, 02:15 AM
  5. Replies: 0
    Last Post: 06-11-2015, 03:12 AM
  6. [SOLVED] Number of days till.. Formula for counting number of days
    By Saturn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-21-2013, 05:46 AM
  7. 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