Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need to replace those numbers duplicate so that it follow in sequence for example: In Column A I have these number 2,1,5,3,3,6,8,8 (Before) 2,1,5,3,4,6,8,9 (after) Anyone got idea how to do it with macro? Please.Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See if this suit your needs:
Sub SequenseFill() Col = "A" FirstRow = 1 LastRow = Cells(FirstRow, Col).End(xlDown).Row For r = FirstRow + 1 To LastRow If Cells(r - 1, Col) = Cells(r, Col) Then Cells(r, Col) = Cells(r, Col) + 1 End If Next End Sub Regards, Per On 20 Jul., 15:48, geniusideas wrote: Hi, I need to replace those numbers duplicate so that it follow in sequence for example: In Column A I have these number 2,1,5,3,3,6,8,8 (Before) 2,1,5,3,4,6,8,9 (after) Anyone got idea how to do it with macro? Please.Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Replace one number in a sequence in a group of cells | Excel Worksheet Functions | |||
replace dash in a number sequence | Excel Worksheet Functions | |||
How to find & replace a formula sequence with * in it? | Excel Discussion (Misc queries) | |||
Sequence of numbers | Excel Programming | |||
sequence of numbers | Excel Worksheet Functions |