+ Reply to Thread
Results 1 to 5 of 5

stream gage data need a seasonal column filled based on the date (macro)

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    Alpine,Texas
    MS-Off Ver
    Excel 2010
    Posts
    24

    stream gage data need a seasonal column filled based on the date (macro)

    Hi Excel Forum,

    I am working with surface water data along a river that contains (date and discharge in CMS). One way to look at this data is seasonally. the data is recorded per day for 50 years. Id like to make a column that is seasons based on the month.

    so when you use the macro it will look at the stream gage date then fill the season column (winter, spring, or Monsoon).

    winter = 11/1/xxxx to 2/xxxx
    spring = 3/1/xxxx to 6/30/xxxx
    monsoon = 7/1/xxxx to 10/30/xxxx

    any help towards this would be great.

    ive attached the data and have filled the first year seasons manually for an example.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: stream gage data need a seasonal column filled based on the date (macro)

    hi , same result but using vlookup.
    Attached Files Attached Files
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: stream gage data need a seasonal column filled based on the date (macro)

    I realize you said you wanted a macro, but a simple formula could do the same.

    =LOOKUP(MONTH(M9),{1,3,7,11},{"Winter","Spring","Monsoon","Winter"})
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: stream gage data need a seasonal column filled based on the date (macro)

    I don't think you will need a macro, this formula should do.
    Please Login or Register  to view this content.
    Greg
    Just a guy trying to make work stuff easier.

  5. #5
    Registered User
    Join Date
    03-08-2013
    Location
    Alpine,Texas
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: stream gage data need a seasonal column filled based on the date (macro)

    thanks for the replies! xlbiznes and alphafrog! this is all i needed, thanks for the time!

+ 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. [SOLVED] AutoFill the first emty column based on the values of the last filled column
    By runneer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2013, 01:04 PM
  2. [SOLVED] Macro to Sum Data in Multiple Columns based off Date in Column A
    By bdt99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2013, 06:13 PM
  3. [SOLVED] Find last filled row in column where column description is date
    By Risto85 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2013, 08:02 AM
  4. Replies: 4
    Last Post: 12-04-2012, 02:24 AM
  5. Replies: 11
    Last Post: 06-05-2011, 11:30 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