Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Looking forMacro to do this Sheet to Sheet copy &sort

Hoping just like the previous time you experts on here can help me.
I'm assuming a Macro is the way to do this

If Sheet1 column F starting at F2 has a y entered, then copy data in cells
A2, B2,G2 to Sheet2 to the first available empty row below the headers in
row 1.
At the same time as it looks for a y I need it to also look at column H
starting at H2 and if its contains ch then copy G2 from sheet1 to C2 Sheet 2
or if its ca then copy to D2 Sheet2

Sheet 1 (has 29 columns with data but A B G F H are the relevant ones and at
the moment around 1000 rows and any of about 250 -300 of the rows/records
will have a y but below i have just used 2,3,4 as an example)

A B C D E F G H
1 Name Name blah blah blah card amt. ch/ca
2 Jane Doe blah blah blah y 15 ch
3 Jim Doe blah blah blah y 35 ch
4 Jo Doe blah blah blah y 20 ca

Sheet2 would end up like this

A B C D
1 Name Name ch ca
2 Jane Doe 15
3 Jim Doe 35
4 Jo Doe 20

Each time it checks Sheet1 it would need to add any new y records below the
previous ones its copied to Sheet2, no erasing or deleting from anywhere
just copy and sort

I hope this makes sense and if so I would be most grateful for any help
recieved.





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
Microsoft Excel 2007 - VBA To Sort Table And Copy To Another Sheet Currently Challenged ... Excel Discussion (Misc queries) 2 October 8th 09 03:46 PM
Sort by Date and Copy results to another sheet Pat-UK New Users to Excel 6 March 17th 08 12:02 PM
way to automaitic sort sheet one numerical, sheet two alpha? wichita6 Excel Worksheet Functions 3 February 11th 05 03:43 PM
relative sheet references ala sheet(-1)!B11 so I can copy a sheet. RonMc5 Excel Discussion (Misc queries) 9 February 3rd 05 12:51 AM
vba to sort group copy paste to another sheet mango Excel Worksheet Functions 0 November 5th 04 04:27 AM


All times are GMT +1. The time now is 07:28 PM.

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"