Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 172
Default Copying rows with specific criteria

I have a worksheet that has a list of all my open orders. Column G has the
due date of these orders. What I want to do is copy all the orders that are
past due as of today's date and paste them into another worksheet. This will
change daily since orders will ship and no longer be past due. I want to be
able to run this daily and have it overwrite the rows I copied the previous
day. How would I go about setting this up? I'm not very familiar with VBA.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Copying rows with specific criteria

One simple non-array formulas play which might appeal to you ..

Assume source data in Sheet1's cols A to G, data from row2 down
Col G is the key col, with real dates

In Sheet1,
Put in H2: =IF(G2="","",IF(G2<TODAY(),ROW(),""))
Copy H2 down to cover the max expected extent of data in col G, eg down to
F2000? Leave H1 blank. This is the criteria col.

Then in another sheet,
Put in A2:
=IF(ROWS($1:1)COUNT(Sheet1!$H:$H),"",INDEX(Sheet1 !A:A,SMALL(Sheet1!$H:$H,ROWS($1:1))))
Copy A2 across to G2, fill down to cover the same extent as done in Sheet1's
col F. Cols A to G will auto-return the required results* from Sheet1, with
all lines neatly bunched at the top. *all orders that are past due as of
today's date
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,200 Files:354 Subscribers:53
xdemechanik
---
"Secret Squirrel" wrote:
I have a worksheet that has a list of all my open orders. Column G has the
due date of these orders. What I want to do is copy all the orders that are
past due as of today's date and paste them into another worksheet. This will
change daily since orders will ship and no longer be past due. I want to be
able to run this daily and have it overwrite the rows I copied the previous
day. How would I go about setting this up? I'm not very familiar with VBA.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Copying rows with specific criteria

Typo, Sheet1's col F should read as Sheet1's col H in this line:
Copy A2 across to G2,
fill down to cover the same extent as done in Sheet1's col F.

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,200 Files:354 Subscribers:53
xdemechanik
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting characters in multiple rows when rows meet specific criteria news.virginmedia.com Excel Worksheet Functions 3 June 28th 08 09:03 PM
Deleting Rows w/ Specific Criteria MCSHMCH Excel Discussion (Misc queries) 2 September 28th 07 01:05 PM
Delete rows if specific criteria not met. SITCFanTN Excel Worksheet Functions 3 July 5th 06 12:20 AM
Copying specific rows Eric Montelongo Excel Worksheet Functions 1 June 20th 06 08:08 PM
Sum rows if two columns = specific criteria. Jeff Excel Worksheet Functions 2 February 2nd 06 12:29 AM


All times are GMT +1. The time now is 12:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"