LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
JCP
 
Posts: n/a
Default Selecting rows based on criteria

Hi,

I am relatively new to macros, and need help with regard to selecting rows
in Excel.

1. I currently have a macro which sorts a pre-defined range of 100 rows.
However there is only data in about 50 of these rows (although this exact
figure varies. On certain days there will be 60 rows, but never more than 100
rows).

2. The macro then copies the sort range and pastes the values elsewhere.

The problem is that one of the sort criteria is a field that contains both
numbers and text. So the result of the macro is (e.g.) 25 rows of numbers,
then 50 rows of blank space, and then 25 rows of text.

What I need the macro to do is (in step 2. above) only select rows that
contain data, so that the pasted values data will only contain 50 rows of
data, rather than 100.

I am sure there is an easy way to do this using countloop or something, but
I am not experienced to know how to use this.

Any suggestions would be much appreciated.

Thanks

 
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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Selecting rows based on cell entries m.cain Excel Worksheet Functions 3 March 24th 06 04:56 PM
Selecting rows based on cell entries m.cain Excel Discussion (Misc queries) 2 March 24th 06 10:46 AM
hide rows based on cell value dummster New Users to Excel 1 February 15th 06 11:37 PM
format group of rows based on condition Aaron Excel Discussion (Misc queries) 0 January 10th 06 12:29 AM


All times are GMT +1. The time now is 02:26 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"