Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Deleting Rows on the basis of cell comment

Hi,

i need to delete the rows where the comment in the column A contains some
charaters...for example below are the comment in column A...and i need to
delete the rows where the comment in column A is BE, IE and AT. Is there any
formula by which the rows with BE, IE and AT in column A can be deleted...

DE
DE
IT
IT
PT
PT
IE
BE
IT
BE
AT

rgds
radha
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Deleting Rows on the basis of cell comment

First, there are no formulas that delete rows.

Second, do you really mean comments (like Insert|Comment stuff) or do you mean
values in the cell?

If you really meant comments, then you'll have to use code to inspect those
comments.

But if you meant values, you could:
Insert a new column B
Add headers to row 1 if you don't have them.
Put this in B2:
=or(a2={"be","ie","at"})

Now drag this down as far as you need.

Apply data|filter|autofilter to column B.
Show the Rows that have TRUE in column B.
Delete those visible rows.
Remove the filter (data|filter)
delete column B
Delete the header row if you added it.



Radhakant Panigrahi wrote:

Hi,

i need to delete the rows where the comment in the column A contains some
charaters...for example below are the comment in column A...and i need to
delete the rows where the comment in column A is BE, IE and AT. Is there any
formula by which the rows with BE, IE and AT in column A can be deleted...

DE
DE
IT
IT
PT
PT
IE
BE
IT
BE
AT

rgds
radha


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default Deleting Rows on the basis of cell comment

You can do a auto filter, then select those comments that you want to delete.
If the data is huge, you might need to do a macro.

"Radhakant Panigrahi" wrote:

Hi,

i need to delete the rows where the comment in the column A contains some
charaters...for example below are the comment in column A...and i need to
delete the rows where the comment in column A is BE, IE and AT. Is there any
formula by which the rows with BE, IE and AT in column A can be deleted...

DE
DE
IT
IT
PT
PT
IE
BE
IT
BE
AT

rgds
radha

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Deleting Rows on the basis of cell comment

A formula cannot delete rows..If you are looking for a macro try the below

Sub DeleteRows()
Dim lngRow As Long
For lngRow = Cells(Rows.Count, 1).End(xlUp).Row To 1 Step -1
Select Case UCase(Range("A" & lngRow))
Case "BE", "IE", "AT"
Rows(lngRow).Delete
End Select
Next
End Sub

--
Jacob (MVP - Excel)


"Radhakant Panigrahi" wrote:

Hi,

i need to delete the rows where the comment in the column A contains some
charaters...for example below are the comment in column A...and i need to
delete the rows where the comment in column A is BE, IE and AT. Is there any
formula by which the rows with BE, IE and AT in column A can be deleted...

DE
DE
IT
IT
PT
PT
IE
BE
IT
BE
AT

rgds
radha

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
Deleting rows based on values in a a cell in the row Martin New Users to Excel 1 January 25th 09 11:46 AM
Retain cell reference after deleting rows Otto Moehrbach[_2_] Excel Worksheet Functions 2 November 18th 08 06:48 PM
excel should allow me to filter rows on basis of the cell color heramb Excel Worksheet Functions 0 March 22nd 06 05:18 PM
deleting entire rows with the same cell value in the first column Pedro F. Excel Discussion (Misc queries) 3 January 11th 06 07:10 PM
Deleting rows based on a cell value JPriest Excel Worksheet Functions 3 August 12th 05 05:44 PM


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