+ Reply to Thread
Results 1 to 3 of 3

Advanced function to remove specific rows

  1. #1
    nemadrias
    Guest

    Advanced function to remove specific rows

    Hi -
    I am looking for a function (or at least a push in the right direction)
    to help me achieve the following.

    I have a spreadsheet which has several columns of data. The three
    columns I care about all involve dates, but they are not stored as
    dates, but as strings in this format:

    Jun Wk 1
    Jun Wk 2
    Jul Wk 1
    Jul Wk 2
    July Wk 5
    Aug Wk 1

    Etc...

    What I need to be able to do is (IF the "date" in the column, ie Jun Wk
    1, is before today's date, delete that row) so that today the column
    would read: July Wk 2 (and the following dates) since that would be the
    most recent date. Can anyone help with this? Thanks in advance,
    Steve


  2. #2
    Tom Hutchins
    Guest

    RE: Advanced function to remove specific rows

    How are your weeks defined? Are they always 7 days, do they always begin on
    Sunday (or Monday), do you use ISO week numbers, etc. For example, July 2006
    began on a Saturday. Is that a 1-day Week 1?

    I can almost certainly write this function for you, but I must know how to
    figure out which days are in Week 1 vs. Week2 for any month.

    Hutch

    "nemadrias" wrote:

    > Hi -
    > I am looking for a function (or at least a push in the right direction)
    > to help me achieve the following.
    >
    > I have a spreadsheet which has several columns of data. The three
    > columns I care about all involve dates, but they are not stored as
    > dates, but as strings in this format:
    >
    > Jun Wk 1
    > Jun Wk 2
    > Jul Wk 1
    > Jul Wk 2
    > July Wk 5
    > Aug Wk 1
    >
    > Etc...
    >
    > What I need to be able to do is (IF the "date" in the column, ie Jun Wk
    > 1, is before today's date, delete that row) so that today the column
    > would read: July Wk 2 (and the following dates) since that would be the
    > most recent date. Can anyone help with this? Thanks in advance,
    > Steve
    >
    >


  3. #3
    nemadrias
    Guest

    Re: Advanced function to remove specific rows

    Tom -
    Thanks for your reply, I was actually able to figure this out. I
    simply assigned an integer to each week of each month, and then
    compared that to an integer assigned to the current month. If x < y
    kind of a thing, and it seems to work fine. Thanks anyways,
    Steve

    Tom Hutchins wrote:
    > How are your weeks defined? Are they always 7 days, do they always begin on
    > Sunday (or Monday), do you use ISO week numbers, etc. For example, July 2006
    > began on a Saturday. Is that a 1-day Week 1?
    >
    > I can almost certainly write this function for you, but I must know how to
    > figure out which days are in Week 1 vs. Week2 for any month.
    >
    > Hutch
    >
    > "nemadrias" wrote:
    >
    > > Hi -
    > > I am looking for a function (or at least a push in the right direction)
    > > to help me achieve the following.
    > >
    > > I have a spreadsheet which has several columns of data. The three
    > > columns I care about all involve dates, but they are not stored as
    > > dates, but as strings in this format:
    > >
    > > Jun Wk 1
    > > Jun Wk 2
    > > Jul Wk 1
    > > Jul Wk 2
    > > July Wk 5
    > > Aug Wk 1
    > >
    > > Etc...
    > >
    > > What I need to be able to do is (IF the "date" in the column, ie Jun Wk
    > > 1, is before today's date, delete that row) so that today the column
    > > would read: July Wk 2 (and the following dates) since that would be the
    > > most recent date. Can anyone help with this? Thanks in advance,
    > > Steve
    > >
    > >



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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