+ Reply to Thread
Results 1 to 4 of 4

Selecting needed grid points data

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    Norman,USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Selecting needed grid points data

    Hi guys. I have gridded daily climatic data(prep, tmax and tmin)running tons of thousands. I want to pick few gridded points to form a time series data for my analysis. Each worksheet contains gridded data for just a day of the year. For example, worksheet 1 contains gridded data for 2000 jan 1 and worksheet2 for 2000 jan 2.... and the data is for more than 30 years. I want to pick for example year 2000 jan1...31, feb1-28,...to december1-31 on grid points 4.5/9.5(lat/long). see attached for the data format and example.Thanks for the help
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Selecting needed grid points data

    Try this in cell D3 of your format_example sheet:
    =OFFSET(INDIRECT("'"&A3&"_"&B3&C3&"'!B2"),MATCH(4.75,'2000_jan1'!$A$3:$A$42,0),MATCH(-7.25,'2000_jan1'!$C$2:$AZ$2,0))
    Then drag down.

    Note, it threw me off that your 'sample' point was 4.5/9.5 which does not exist on your data sheets, so I changed the values to 4.75 and -7.25. If you need to interpolate for points not on the grid, that adds a new wrinkle...

    This also assumes your grids are consistent for each day. If not, you'll have to use the same INDIRECT method for the arrays in the MATCH functions.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    07-26-2013
    Location
    Norman,USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Selecting needed grid points data

    Hi Pauley,
    Thank you for your support. I tried the formula on my real data which is larger than the one I have attached earlier and it refused to work when I changed the grid points. Please can you still help me out? Iam not good in excel so I tried to follow your example to adjust the formula but I couldn't. Thanks

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Selecting needed grid points data

    Well, I don't really know what is different between your example and the real data. If your sheets are laid out the same and you use the same naming convention, then it should work.
    One thing you should try is the 'Evaluate Formula' feature in the Formulas ribbon. Use that on the formula I provided so you can better understand how it works. But, basically, I'm using the OFFSET function. The first input is cell B2 of each sheet. INDIRECT was used to build the sheet name from your dates. Then the next two inputs to OFFSET are the row and column offsets from B2. I used MATCH and the lat/long values in the data sheets to find those offsets. Excel's help can better explain how each function works than I can on this forum, so use that as a reference.
    Then use the Evaluate Formula for your modified formula with the big data set. See what it is doing and you may be able to spot the difference.

+ 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. selecting grid points of data
    By akumagaavese in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2014, 12:53 PM
  2. Selecting data points
    By Xmosis in forum Excel General
    Replies: 2
    Last Post: 03-07-2011, 04:46 AM
  3. Placing a large grid of data points into one column
    By bmccarthy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2010, 05:03 PM
  4. Marking Grid Points
    By SamuelT in forum Excel General
    Replies: 4
    Last Post: 11-18-2008, 12:59 PM
  5. [SOLVED] Selecting Data Points from graph
    By Keith Bramley in forum Excel General
    Replies: 3
    Last Post: 03-03-2005, 01:06 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