PC Review


Reply
Thread Tools Rate Thread

Copy rows based on specific criteria

 
 
Alvin
Guest
Posts: n/a
 
      8th Aug 2008

Hello,
I have a workbook with multiple projectsheets, one for each project I'm
working on.
One of the things I have on the projct sheets is my personal action list.
This list includes several rows. Per Row I have information like: nr., action
item, date raised and date due.
In addition to the project sheets I have one MAIN sheet. On this main sheet
I want to see a list of all action items (= copy the whole row) that are due
within e.g. 3(working) days from today. This way I don't have to go through
all tabs to see what action items needs my immediate attention.
Can anyone help me start out on this?

Thanks,
Alvin
 
Reply With Quote
 
 
 
 
JP
Guest
Posts: n/a
 
      8th Aug 2008
You could add a named cell "TodaysDate" to the workbook, which refers
to =TODAY().

Then add a helper column to each worksheet with a formula like: =A1-
TodaysDate , where A1 is the due date.

Fill down the formula so it calculates the number of days each action
item is due.

Then apply autofilter to the entire list, and filter the new formula
you column you just created: Custom, Is Less Than, 3

Then copy and paste those rows into the main sheet.

Does that help?

--JP


On Aug 8, 9:40*am, Alvin <Al...@discussions.microsoft.com> wrote:
> Hello,
> I have a workbook with multiple projectsheets, one for each project I'm
> working on.
> One of the things I have on the projct sheets is my personal action list.
> This list includes several rows. Per Row I have information like: nr., action
> item, date raised and date due.
> In addition to the project sheets I have one MAIN sheet. On this main sheet
> I want to see a list of all action items (= copy the whole row) that are due
> within e.g. 3(working) days from today. This way I don't have to go through
> all tabs to see what action items needs my immediate attention.
> Can anyone help me start out on this?
>
> Thanks,
> Alvin


 
Reply With Quote
 
Alvin
Guest
Posts: n/a
 
      11th Aug 2008
Hi JP,
thanks for your reply.
Regardint he auto-filter is that something I can automate? Or do I manually
need to select the filter?
And what about copying? How do I copy from all sheets, all lines where
difference in days <3 ?
Thanks.

"JP" wrote:

> You could add a named cell "TodaysDate" to the workbook, which refers
> to =TODAY().
>
> Then add a helper column to each worksheet with a formula like: =A1-
> TodaysDate , where A1 is the due date.
>
> Fill down the formula so it calculates the number of days each action
> item is due.
>
> Then apply autofilter to the entire list, and filter the new formula
> you column you just created: Custom, Is Less Than, 3
>
> Then copy and paste those rows into the main sheet.
>
> Does that help?
>
> --JP
>
>
> On Aug 8, 9:40 am, Alvin <Al...@discussions.microsoft.com> wrote:
> > Hello,
> > I have a workbook with multiple projectsheets, one for each project I'm
> > working on.
> > One of the things I have on the projct sheets is my personal action list.
> > This list includes several rows. Per Row I have information like: nr., action
> > item, date raised and date due.
> > In addition to the project sheets I have one MAIN sheet. On this main sheet
> > I want to see a list of all action items (= copy the whole row) that are due
> > within e.g. 3(working) days from today. This way I don't have to go through
> > all tabs to see what action items needs my immediate attention.
> > Can anyone help me start out on this?
> >
> > Thanks,
> > Alvin

>
>

 
Reply With Quote
 
JP
Guest
Posts: n/a
 
      11th Aug 2008
You could automate the whole process, really.

To filter a range, use the Autofilter Method of the Range object, for
example

Dim rng as Excel.Range
Set rng = Range(Range("A1"), Range("E1"))

rng.Autofilter


After you filter the rows based on the formula condition, all you need
to do is highlight and copy those rows to the other worksheet.


HTH,
JP

On Aug 11, 3:51*am, Alvin <Al...@discussions.microsoft.com> wrote:
> Hi JP,
> thanks for your reply.
> Regardint he auto-filter is that something I can automate? Or do I manually
> need to select the filter?
> And what about copying? How do I copy from all sheets, all lines where
> difference in days <3 ?
> Thanks.
>
>
>
> "JP" wrote:
> > You could add a named cell "TodaysDate" to the workbook, which refers
> > to =TODAY().

>
> > Then add a helper column to each worksheet with a formula like: =A1-
> > TodaysDate , where A1 is the due date.

>
> > Fill down the formula so it calculates the number of days each action
> > item is due.

>
> > Then apply autofilter to the entire list, and filter the new formula
> > you column you just created: Custom, Is Less Than, 3

>
> > Then copy and paste those rows into the main sheet.

>
> > Does that help?

>
> > --JP

>
> > On Aug 8, 9:40 am, Alvin <Al...@discussions.microsoft.com> wrote:
> > > Hello,
> > > I have a workbook with multiple projectsheets, one for each project I'm
> > > working on.
> > > One of the things I have on the projct sheets is my personal action list.
> > > This list includes several rows. Per Row I have information like: nr., action
> > > item, date raised and date due.
> > > In addition to the project sheets I have one MAIN sheet. On this mainsheet
> > > I want to see a list of all action items (= copy the whole row) that are due
> > > within e.g. 3(working) days from today. This way I don't have to go through
> > > all tabs to see what action items needs my immediate attention.
> > > Can anyone help me start out on this?

>
> > > Thanks,
> > > Alvin- Hide quoted text -

>
> - Show quoted text -


 
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
Copy Rows Based On Criteria Sean Microsoft Excel Programming 3 23rd Mar 2010 10:03 PM
How do I find and copy rows based on specific criteria? Georgew Microsoft Excel New Users 3 29th May 2009 11:07 AM
Copy data to another wb based on specific criteria. =?Utf-8?B?a3No?= Microsoft Excel Programming 1 29th Oct 2007 08:41 PM
Copy data to another wb based on specific criteria =?Utf-8?B?a3No?= Microsoft Excel Misc 1 29th Oct 2007 01:30 PM
I want to delete certain rows based on specific criteria =?Utf-8?B?QWxhcGhhcw==?= Microsoft Excel Programming 2 18th May 2005 11:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:23 AM.