Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Move one cell to another

I need to copy the content of one cell to another when a different cell is
greater than 239.
Example: if N20 is greater than R20(value 239) then copy the content of B20
to S20.

OR

A method to delete all records that have a value less than 240 in column N.

Any help would be appreciated.

Thanks,

Mike

--
Mike
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 563
Default Move one cell to another

Formula in S20: =IF(N20R20,B20,"")
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme


"Mike" wrote in message
...
I need to copy the content of one cell to another when a different cell is
greater than 239.
Example: if N20 is greater than R20(value 239) then copy the content of
B20
to S20.

OR

A method to delete all records that have a value less than 240 in column
N.

Any help would be appreciated.

Thanks,

Mike

--
Mike


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 563
Default Move one cell to another

VBA Subroutine

Sub TryMe()
'Deletes rows where the value in column N is less than 240
Dim RowNdx As Long
Dim LastRow As Long

LastRow = Cells(Rows.Count, "N").End(xlUp).Row

For RowNdx = LastRow To 1 Step -1
If Cells(RowNdx, "N").Value < 240 Then
Rows(RowNdx).Delete
End If
Next RowNdx

End Sub


best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Mike" wrote in message
...
I need to copy the content of one cell to another when a different cell is
greater than 239.
Example: if N20 is greater than R20(value 239) then copy the content of
B20
to S20.

OR

A method to delete all records that have a value less than 240 in column
N.

Any help would be appreciated.

Thanks,

Mike

--
Mike


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Move one cell to another

Thanks, this worked great..........................
--
Mike


"Bernard Liengme" wrote:

Formula in S20: =IF(N20R20,B20,"")
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme


"Mike" wrote in message
...
I need to copy the content of one cell to another when a different cell is
greater than 239.
Example: if N20 is greater than R20(value 239) then copy the content of
B20
to S20.

OR

A method to delete all records that have a value less than 240 in column
N.

Any help would be appreciated.

Thanks,

Mike

--
Mike


.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Move one cell to another

This also worked great,,,,,,,,,,,,,,thanks again
--
Mike


"Bernard Liengme" wrote:

VBA Subroutine

Sub TryMe()
'Deletes rows where the value in column N is less than 240
Dim RowNdx As Long
Dim LastRow As Long

LastRow = Cells(Rows.Count, "N").End(xlUp).Row

For RowNdx = LastRow To 1 Step -1
If Cells(RowNdx, "N").Value < 240 Then
Rows(RowNdx).Delete
End If
Next RowNdx

End Sub


best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Mike" wrote in message
...
I need to copy the content of one cell to another when a different cell is
greater than 239.
Example: if N20 is greater than R20(value 239) then copy the content of
B20
to S20.

OR

A method to delete all records that have a value less than 240 in column
N.

Any help would be appreciated.

Thanks,

Mike

--
Mike


.

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
How do I move from cell A 10 to cell B1 with one move or click chipsdad Excel Worksheet Functions 3 June 6th 09 03:43 AM
Arrow keys move screen instead of moving from cell to cell LuisGe Excel Discussion (Misc queries) 3 May 22nd 09 11:17 PM
formula, move to previous cell when the current cell=0 or empty osama amer Excel Discussion (Misc queries) 0 May 29th 06 12:18 PM
The absolute referenced cell does not move when source cell moves johnc Excel Worksheet Functions 2 May 8th 06 06:33 PM
Arrow keys move screen instead of moving from cell to cell. JaJay777 Setting up and Configuration of Excel 1 January 17th 05 06:48 PM


All times are GMT +1. The time now is 11:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"