Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Betty Csehi
 
Posts: n/a
Default Macro to cut/paste/delete

I have a large database where I need a macro (or something) to find specific
information, cut it from its current row, and then paste it somewhere the
database. For example, the original database now looks like this:
A
1 #N/A
2 #N/A
3 GBA4326
4 #N/A
5 SLGG24

I want to find everything that is NOT #N/A, cut it and paste it below the
current database. So, with my example above the info below the original
database will now look like this:
A
1200 GBA4326
1201 SLGG24

and the original database will now look like this:
A
1 #N/A
2 #N/A
3 #N/A

I hope you get the gist of what I need. If anyone can help, I'd certainly
appreciate it as my database is over 1,000 rows. Thanks!



  #2   Report Post  
Posted to microsoft.public.excel.misc
baxybaxy
 
Posts: n/a
Default Macro to cut/paste/delete


insert a column and add a formula =row() for every record - copy this
data and save as values

set up a filter on the database

select custom filter - is not equal to #N/A

cut the records out you don't want and paste below

remove the filter

sort the original records by original row number


--
baxybaxy
------------------------------------------------------------------------
baxybaxy's Profile: http://www.excelforum.com/member.php...o&userid=35824
View this thread: http://www.excelforum.com/showthread...hreadid=556008

  #3   Report Post  
Posted to microsoft.public.excel.misc
baxybaxy
 
Posts: n/a
Default Macro to cut/paste/delete


insert a column and add a formula =row() for every record - copy this
data and save as values

set up a filter on the database

select custom filter - is not equal to #N/A

cut the records out you don't want and paste below

remove the filter

sort the original records by original row number


--
baxybaxy
------------------------------------------------------------------------
baxybaxy's Profile: http://www.excelforum.com/member.php...o&userid=35824
View this thread: http://www.excelforum.com/showthread...hreadid=556008

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Macro to cut/paste/delete

Maybe you can just apply Data|Filter|autofilter to that column.

Then apply a custom filter of not equal to #n/a and copy the visible cells/rows
to where you want them.

Betty Csehi wrote:

I have a large database where I need a macro (or something) to find specific
information, cut it from its current row, and then paste it somewhere the
database. For example, the original database now looks like this:
A
1 #N/A
2 #N/A
3 GBA4326
4 #N/A
5 SLGG24

I want to find everything that is NOT #N/A, cut it and paste it below the
current database. So, with my example above the info below the original
database will now look like this:
A
1200 GBA4326
1201 SLGG24

and the original database will now look like this:
A
1 #N/A
2 #N/A
3 #N/A

I hope you get the gist of what I need. If anyone can help, I'd certainly
appreciate it as my database is over 1,000 rows. Thanks!


--

Dave Peterson
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
Search, Copy, Paste Macro in Excel [email protected] Excel Worksheet Functions 0 January 3rd 06 06:51 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
macro with F9 Kenny Excel Discussion (Misc queries) 1 August 3rd 05 02:41 PM
Make Alignment options under format cells available as shortcut dforrest Excel Discussion (Misc queries) 1 July 14th 05 10:58 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM


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

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

About Us

"It's about Microsoft Excel"