PC Review


Reply
Thread Tools Rate Thread

Advanced function to remove specific rows

 
 
nemadrias
Guest
Posts: n/a
 
      6th Jul 2006
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 With Quote
 
 
 
 
=?Utf-8?B?VG9tIEh1dGNoaW5z?=
Guest
Posts: n/a
 
      7th Jul 2006
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 With Quote
 
nemadrias
Guest
Posts: n/a
 
      10th Jul 2006
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced transpose (columns to rows) function? mcmilja Microsoft Excel Misc 3 27th Sep 2008 03:31 PM
remove duplicate rows from specific data in a column; excel 2007 DS Microsoft Excel Worksheet Functions 1 6th Aug 2008 08:16 PM
Remove rows where specific field contains string value Ahmad Microsoft Access 2 11th May 2008 04:21 PM
Remove duplicate rows based on 1 specific criterion =?Utf-8?B?U3dlZXBlYQ==?= Microsoft Excel Misc 5 30th Aug 2006 04:28 PM
Function to Count Number of Consecutive Rows with a Specific Criteria? Templee1 Microsoft Excel Worksheet Functions 2 10th Jul 2005 10:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 AM.