+ Reply to Thread
Results 1 to 3 of 3

Help with tidal data - computing daily max and min of sin curve

Hybrid View

  1. #1
    Registered User
    Join Date
    02-05-2014
    Location
    SF
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help with tidal data - computing daily max and min of sin curve

    Hi. I'm trying to calculate tidal datums for a semi-diurnal tide. The data is essentially a sin curve with each day having 2 highs and 2 lows but they are at different elevations (but separated by a fairly consistent time frame approx 6-7 hrs). I need to find each peak and trough value (4 a day). For example I need to calculate the mean high water (MHW) which is the average of every high tide (i.e. every peak of the sin curve).

    I know NOAA does this somehow, but I'm sure you can do it in excel too. I used pivot tables to find the max and min each day, but they don't get me the secondary max/min's.

    Here's a spreadsheet with some simplified data (1 week). Thanks for any assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Help with tidal data - computing daily max and min of sin curve

    Try these array formulas:

    In cell G5
    =MAX(IF($A$2:$A$673=$F5,$C$2:$C$673,""))
    In cell H5
    =MIN(IF($A$2:$A$673=$F5,$C$2:$C$673,""))
    Confirm the array formulas with Ctrl-Shift-Enter.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    02-05-2014
    Location
    SF
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help with tidal data - computing daily max and min of sin curve

    Not sure I follow this. Cells G5 and H5 are in the pivot table so I can't enter any formula's in those cells. If I enter it in cell D2, it does not get the desired effect.

+ 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. Graph a curve, then enter data to generate new similar curve
    By denphi03 in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 11-03-2013, 05:33 PM
  2. Convert Hourly Tidal Data Matrix to Column Data
    By ral8088 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2011, 09:42 PM
  3. Help with tidal data
    By aesopclimber in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-15-2009, 04:32 PM
  4. codifying/simplifying tidal data
    By aesopclimber in forum Excel General
    Replies: 0
    Last Post: 10-12-2009, 11:17 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