Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default clear cell based on text in opposing column

I am attempting to clear a cell in column V based on the text of the
same row in column G.
With actual numbers, I can do SUMIF(G9:G123,"5",V9:V123) - but I want
to actually clear the respective cell in V if "payments" is in column
G, and leave it alone if blank or other text exists. How can I do
that?

DLR
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default clear cell based on text in opposing column

Right click sheet tabview codeinsert this. Now if you type in the word
payments into col g col v will CLEAR
Is that what you want?

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("g")) Is Nothing Then Exit Sub
If UCase(Target) = "PAYMENTS" Then Cells(Target.row, "v").ClearContents
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

wrote in message
...
I am attempting to clear a cell in column V based on the text of the
same row in column G.
With actual numbers, I can do SUMIF(G9:G123,"5",V9:V123) - but I want
to actually clear the respective cell in V if "payments" is in column
G, and leave it alone if blank or other text exists. How can I do
that?

DLR


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default clear cell based on text in opposing column

I apologize for posting in two groups.

Not really what I need - column V is a penalty fee automatically added
at month end, but if "payments" have been arranged in column G, the
penalty is deferred... or simply cleared from that cell. I need a
macro, or code of some kind, that will parse at a determined point in
time - and if payments have been arranged, the fee in column V for
that person will be cleared. There may be other annotations in column
G, or none, that will be ignored.
I need a conditional formula - just can't get it figured out.
if (G9:G90,"payments" .... then V9:v90 clears ..... I'm lost. I have
hundreds of lines of code in these sheets, so I have some
understanding of what I'm doing, just not here.


DLR


On Sun, 13 Jul 2008 17:51:28 -0500, "Don Guillett"
wrote:

Right click sheet tabview codeinsert this. Now if you type in the word
payments into col g col v will CLEAR
Is that what you want?

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("g")) Is Nothing Then Exit Sub
If UCase(Target) = "PAYMENTS" Then Cells(Target.row, "v").ClearContents
End Sub

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
Printing opposing pages paulgallanter Excel Discussion (Misc queries) 2 December 4th 14 04:50 PM
Counting a mixed text/number column based on text in another colum Sierra Vista Steve Excel Discussion (Misc queries) 3 December 17th 06 05:30 PM
Clear Cell based on event w/o macro? Paul987 Excel Worksheet Functions 2 October 27th 05 08:44 PM
How do I clear blank space at the top of a word-wrapped text cell? mirage1210 Excel Discussion (Misc queries) 2 February 11th 05 09:19 PM
Putting text in a column based on variable text from another colum Jacky D. Excel Discussion (Misc queries) 1 December 16th 04 06:09 PM


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