PC Review


Reply
Thread Tools Rate Thread

Delete cell value in ColE based on value is ColA

 
 
Steve
Guest
Posts: n/a
 
      25th Apr 2008
All,
I have a work sheet with data like this

Col A___________Col B___________Col C___________Col D___________Col E
9812___________ Joe____________________________________________125.00
*blank*__________
____________________________________________125.00
*blank*__________
____________________________________________125.00
Total __________ ____________________________________________
375.00

What I want to do is delete value in Col E if the value in Col A of
the same row IS NOT = Total


Thanks
Steve
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      25th Apr 2008

Dim LastRow As Long
Dim i As Long

With ActiveSheet

LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = 1 To LastRow

If .Cells(i, "A").Value <> "Total" Then .Cells(i,
"E").ClearContents
Next i
End With


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Steve" <(E-Mail Removed)> wrote in message
news:c3acddd3-d196-4055-a362-(E-Mail Removed)...
> All,
> I have a work sheet with data like this
>
> Col A___________Col B___________Col C___________Col D___________Col E
> 9812___________ Joe____________________________________________125.00
> *blank*__________
> ____________________________________________125.00
> *blank*__________
> ____________________________________________125.00
> Total __________ ____________________________________________
> 375.00
>
> What I want to do is delete value in Col E if the value in Col A of
> the same row IS NOT = Total
>
>
> Thanks
> Steve



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xlFillDefault, based on values in ColA to ColZ ryguy7272 Microsoft Excel Programming 6 11th May 2010 02:27 AM
Delete row based on cell value stantune Microsoft Excel Misc 1 2nd Feb 2008 06:43 PM
delete row on based on cell value =?Utf-8?B?R0tXIGluIEdB?= Microsoft Excel Misc 1 18th Sep 2007 09:53 PM
delete row based on value of cell in row AD108 Microsoft Excel Programming 4 30th Jul 2006 03:55 AM
Delete Row based on cell contents Steph Microsoft Excel Programming 6 1st Nov 2005 07:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:01 PM.