Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TightIsobars
 
Posts: n/a
Default Counting Rainfall Data

I know this has probably been discussed many times...but I need some
help counting rainfall data.

My spreadsheet consists of 50,000+ days worth of rainfall data and I
need to know the maximum number of consecutive days with no rainfall OR
trace rainfall.

For example...my data looks like this from left to right...

0.00 0.00 T 0.15 T T 0.00 0.00 0.27

In this case it would be 4 (T,T,0,0)
Can anyone help?? Thanks in advance...

  #2   Report Post  
Myrna Larson
 
Posts: n/a
Default

Let's say you can change your layout so that data is in a single column, in
cells A2:A50000.

In B2 put this formula

=IF(OR(A2="T",A2=0,1,0)

In B3 put this formula

=IF(OR(A3="T",A3=0,B2+1,0)

and copy it down.

Then =MAX(B2:B50000) will give you the number you want.


On 17 Jan 2005 15:23:52 -0800, "TightIsobars" wrote:

I know this has probably been discussed many times...but I need some
help counting rainfall data.

My spreadsheet consists of 50,000+ days worth of rainfall data and I
need to know the maximum number of consecutive days with no rainfall OR
trace rainfall.

For example...my data looks like this from left to right...

0.00 0.00 T 0.15 T T 0.00 0.00 0.27

In this case it would be 4 (T,T,0,0)
Can anyone help?? Thanks in advance...


  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

Sorry, I missed the closing parentheses in the formulas. They should be

=IF(OR(A2="T",A2=0),1,0)

and

=IF(OR(A3="T",A3=0),B2+1,0)

On Mon, 17 Jan 2005 17:37:46 -0600, Myrna Larson
wrote:

Let's say you can change your layout so that data is in a single column, in
cells A2:A50000.

In B2 put this formula

=IF(OR(A2="T",A2=0,1,0)

In B3 put this formula

=IF(OR(A3="T",A3=0,B2+1,0)

and copy it down.

Then =MAX(B2:B50000) will give you the number you want.


On 17 Jan 2005 15:23:52 -0800, "TightIsobars" wrote:

I know this has probably been discussed many times...but I need some
help counting rainfall data.

My spreadsheet consists of 50,000+ days worth of rainfall data and I
need to know the maximum number of consecutive days with no rainfall OR
trace rainfall.

For example...my data looks like this from left to right...

0.00 0.00 T 0.15 T T 0.00 0.00 0.27

In this case it would be 4 (T,T,0,0)
Can anyone help?? Thanks in advance...


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with data not getting plotted Scott Ehrlich Charts and Charting in Excel 1 January 23rd 05 05:15 PM
Fetching External Data from Excel Sri Excel Discussion (Misc queries) 2 January 3rd 05 11:46 AM
Charting data ranges that change mikelee101 Charts and Charting in Excel 2 December 16th 04 11:07 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM
Data Table - Does it work with DDE links and stock tickers? Post Tenebras Lux Excel Discussion (Misc queries) 0 December 1st 04 05:15 PM


All times are GMT +1. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"