Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default excel macro needed - find and move data

I want a Marco that will search for numbers ending in CR see below and then
shift the amounts ending with CR from col J to Col K.

Thanking you in advacne for your assistance



J K

1,619.53
2,195.00
242,483.15
302.61
721,171.17CR
425,093.66CR
39,354.94
180.00CR
5,201.34CR
834.60CR
16,968.80
17,577.92
44,204.32
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default excel macro needed - find and move data

hi
something like this.....
Sub moveit()
Dim r As Range
Dim lr As Long

lr = Cells(Rows.Count, "J").End(xlUp).Row
Set r = Range("J2:J" & lr)

For Each cell In r
If Right(cell, 2) = "CR" Then
cell.Offset(0, 1) = cell.Value
cell.ClearContents
End If
Next cell

End Sub

regards
FSt1

"The Kid" wrote:

I want a Marco that will search for numbers ending in CR see below and then
shift the amounts ending with CR from col J to Col K.

Thanking you in advacne for your assistance



J K

1,619.53
2,195.00
242,483.15
302.61
721,171.17CR
425,093.66CR
39,354.94
180.00CR
5,201.34CR
834.60CR
16,968.80
17,577.92
44,204.32

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
Macro to find and move column andrea Excel Discussion (Misc queries) 1 October 9th 08 02:22 PM
Find account, move them to different sheet MACRO brodiemac Excel Discussion (Misc queries) 3 July 24th 08 07:49 PM
Macro needed (like find) doral Excel Discussion (Misc queries) 2 August 23rd 07 02:02 PM
Find and Move Data Stan Excel Discussion (Misc queries) 8 April 23rd 07 09:50 PM
Macro - Find a value and then move down Phil Osman Excel Discussion (Misc queries) 4 August 10th 05 01:20 PM


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