![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 8
|
If there are 4 cells of data per row:date, time, price and volume and we want to delete all rows except those rows which have a volume cell value of >= 1000, how is the best achieved?
Thanks in advance. ptahl |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
not sure if it's *best*, as some VBA code will do it quicker, but autofiltering on that column should do the trick, leaving you the rows to delete manually
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
To add to Chris's reply. If you autofilter using a custom criteria of <1000. Then highlight all the data and press F5 and then Special. Choose the Visible Cells Only option button. Then click Edit, Delete and choose Entire Row. That will delete all of the rows under 1000 in one go. Remove the autofilter and you'll be left with the data you want.
Regards, Dan. |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Supposing that the data area consists of columns A thru D, in A1 enter: Volume in A2 enter: >=1000 Activate A4. Activate Data|Filter|Advanced Filter. Check Copy to another location. Assure that the List range covers your data area. Enter as Criteria range $A$1:$A$2 Enter as value of Copy to, e.g., $F$1 Click OK. The area starting at $F$1 is what you're looking for. You can ditch everything else if you so desire. [ This Message was edited by: Aladin Akyurek on 2002-03-31 08:01 ] |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
Hi guys
check http://www.mrexcel.com/board/viewtop...3863&forum=2&4 Thiss my VBA i developed.. woth a look edit to delet not hide i guess wil do it... Hope some option....
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|