LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Delete Entire Row in Excel if specific column does not contain a 7-digit number

Dear Excel Gurus
I would appreciate your help in composing a macro command that will do
the following:
Imagine that I have a worksheet that contains in column "C" various
7-digit numbers such as for example "2314566"(but in a text format).
Apart from these 7-digit numbers column C contains various other
strings ranging from empty cells to words or a mixture of words and
numbers such as for example "word123" type of strings.
What I would like the macro to do, is to read through the worksheet
(of variable data range each time) and delete entire rows that do not
have in column "C" a pure 7-digit number.Therefore at the end I will
be left with a clean worksheet that will contain only rows that have
7-digit numbers at column C.

Your prompt repsonse will be highly appreciated
 
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
How to delete fist 6 digit of all contents in a column? capxc Excel Discussion (Misc queries) 8 July 18th 08 05:14 PM
Sum specific cells only not entire column Mary Excel Discussion (Misc queries) 4 March 14th 07 03:06 PM
Macro - delete entire row which contain a specific text Dileep Chandran Excel Worksheet Functions 1 December 6th 06 01:08 PM
Display entire 19 digit number michelle Excel Discussion (Misc queries) 2 November 16th 06 08:04 PM
How do I add the same number/value for an entire column in Excel? Gregorio Excel Worksheet Functions 3 May 25th 06 10:12 PM


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