Loop and concatenate 2 cell value between specific range The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceExcel VBA - read cell value from codeExcel VBA to loop and copy paste on variable ranges to variable rangesTranspose static range in a loopHow to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loopsExcel Macro multiple range concatenationHow to get range of cells into a specific array dimensionTake the date in one worksheet and find the same date in another worksheet column and return the cell reference for that date to use in a loopGroup specific rangeExcel VBA macro to send emails to unique users in rangeVBA Find value in range and change cell value
Did the new image of black hole confirm the general theory of relativity?
1960s short story making fun of James Bond-style spy fiction
Simulating Exploding Dice
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
What happens to a Warlock's expended Spell Slots when they gain a Level?
Does Parliament hold absolute power in the UK?
Are there continuous functions who are the same in an interval but differ in at least one other point?
What is the padding with red substance inside of steak packaging?
Python - Fishing Simulator
What do I do when my TA workload is more than expected?
What information about me do stores get via my credit card?
Can the Right Ascension and Argument of Perigee of a spacecraft's orbit keep varying by themselves with time?
Is 'stolen' appropriate word?
How did passengers keep warm on sail ships?
Word for: a synonym with a positive connotation?
Mortgage adviser recommends a longer term than necessary combined with overpayments
Do warforged have souls?
Do I have Disadvantage attacking with an off-hand weapon?
Sub-subscripts in strings cause different spacings than subscripts
Is every episode of "Where are my Pants?" identical?
Is an up-to-date browser secure on an out-of-date OS?
Variable with quotation marks "$()"
Can the DM override racial traits?
Loop and concatenate 2 cell value between specific range
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceExcel VBA - read cell value from codeExcel VBA to loop and copy paste on variable ranges to variable rangesTranspose static range in a loopHow to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loopsExcel Macro multiple range concatenationHow to get range of cells into a specific array dimensionTake the date in one worksheet and find the same date in another worksheet column and return the cell reference for that date to use in a loopGroup specific rangeExcel VBA macro to send emails to unique users in rangeVBA Find value in range and change cell value
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am trying to identify a specific range in column-A and concatenate two cells within the specific range and delete the empty cell. I have been successful in putting a code together and it does the job very well. But, I don't know how to loop it to identify next range. Any help would be appreciated.
As per below image and code, First, I am finding and selecting a range between two (MCS) in column-A with a condition that, if the rows are more than 8 between two MCS. Then I am concatenating first 2 cells immediately after MCS and delete the empty row.
The below code works well for first range but I am unable to loop to identify next range from row 22 to 32 and perform concatenations. I want to loop in column-A as there will be more MCS.
Sub MergeStem()
Dim findMCS1 As Long
Dim findMCS2 As Long
Dim myCount As Integer
Dim myStems As Long
Dim mySelect As Range
Dim c As Range
findMCS1 = Range("A:A").Find("MCS", Range("A1")).Row
findMCS2 = Range("A:A").Find("MCS", Range("A" & findMCS1)).Row
myCount = Range("A" & findMCS1 + 1 & ":A" & findMCS2 - 1).Cells.Count
Range("B1").Value = myCount
MsgBox "Number of rows =" & myCount
Set mySelect = Selection
If myCount > 8 Then
myStems = Range("A" & findMCS1 + 2 & ":A" & findMCS2 - 9).Select
Set mySelect = Selection
For Each c In mySelect.Cells
If firstcell = "" Then firstcell = c.Address(bRow, bCol)
sArgs = sArgs + c.Text + " "
c.Value = ""
Next
Range(firstcell).Value = sArgs
End If
Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub
excel vba
|
show 3 more comments
I am trying to identify a specific range in column-A and concatenate two cells within the specific range and delete the empty cell. I have been successful in putting a code together and it does the job very well. But, I don't know how to loop it to identify next range. Any help would be appreciated.
As per below image and code, First, I am finding and selecting a range between two (MCS) in column-A with a condition that, if the rows are more than 8 between two MCS. Then I am concatenating first 2 cells immediately after MCS and delete the empty row.
The below code works well for first range but I am unable to loop to identify next range from row 22 to 32 and perform concatenations. I want to loop in column-A as there will be more MCS.
Sub MergeStem()
Dim findMCS1 As Long
Dim findMCS2 As Long
Dim myCount As Integer
Dim myStems As Long
Dim mySelect As Range
Dim c As Range
findMCS1 = Range("A:A").Find("MCS", Range("A1")).Row
findMCS2 = Range("A:A").Find("MCS", Range("A" & findMCS1)).Row
myCount = Range("A" & findMCS1 + 1 & ":A" & findMCS2 - 1).Cells.Count
Range("B1").Value = myCount
MsgBox "Number of rows =" & myCount
Set mySelect = Selection
If myCount > 8 Then
myStems = Range("A" & findMCS1 + 2 & ":A" & findMCS2 - 9).Select
Set mySelect = Selection
For Each c In mySelect.Cells
If firstcell = "" Then firstcell = c.Address(bRow, bCol)
sArgs = sArgs + c.Text + " "
c.Value = ""
Next
Range(firstcell).Value = sArgs
End If
Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub
excel vba
You only do the Find once, so you need to build in a loop. There are many examples online - looks like you should be able to have a go.
– SJR
Mar 8 at 12:20
I am not a programmer but i tried the help of stackoverflow to assemble some code. But unable to loop. Any help would be wonderful. Thanks
– Siraj
Mar 8 at 12:24
Why do you leave out rows 13-22?
– SJR
Mar 8 at 12:29
The row count between 13 and 22 is 8, so only if it is more than 8 I need to find and select that range.
– Siraj
Mar 8 at 12:33
So the number of rows in between needs to be more than 8. I'll take a look later today if it hasn't already been answered.
– SJR
Mar 8 at 12:34
|
show 3 more comments
I am trying to identify a specific range in column-A and concatenate two cells within the specific range and delete the empty cell. I have been successful in putting a code together and it does the job very well. But, I don't know how to loop it to identify next range. Any help would be appreciated.
As per below image and code, First, I am finding and selecting a range between two (MCS) in column-A with a condition that, if the rows are more than 8 between two MCS. Then I am concatenating first 2 cells immediately after MCS and delete the empty row.
The below code works well for first range but I am unable to loop to identify next range from row 22 to 32 and perform concatenations. I want to loop in column-A as there will be more MCS.
Sub MergeStem()
Dim findMCS1 As Long
Dim findMCS2 As Long
Dim myCount As Integer
Dim myStems As Long
Dim mySelect As Range
Dim c As Range
findMCS1 = Range("A:A").Find("MCS", Range("A1")).Row
findMCS2 = Range("A:A").Find("MCS", Range("A" & findMCS1)).Row
myCount = Range("A" & findMCS1 + 1 & ":A" & findMCS2 - 1).Cells.Count
Range("B1").Value = myCount
MsgBox "Number of rows =" & myCount
Set mySelect = Selection
If myCount > 8 Then
myStems = Range("A" & findMCS1 + 2 & ":A" & findMCS2 - 9).Select
Set mySelect = Selection
For Each c In mySelect.Cells
If firstcell = "" Then firstcell = c.Address(bRow, bCol)
sArgs = sArgs + c.Text + " "
c.Value = ""
Next
Range(firstcell).Value = sArgs
End If
Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub
excel vba
I am trying to identify a specific range in column-A and concatenate two cells within the specific range and delete the empty cell. I have been successful in putting a code together and it does the job very well. But, I don't know how to loop it to identify next range. Any help would be appreciated.
As per below image and code, First, I am finding and selecting a range between two (MCS) in column-A with a condition that, if the rows are more than 8 between two MCS. Then I am concatenating first 2 cells immediately after MCS and delete the empty row.
The below code works well for first range but I am unable to loop to identify next range from row 22 to 32 and perform concatenations. I want to loop in column-A as there will be more MCS.
Sub MergeStem()
Dim findMCS1 As Long
Dim findMCS2 As Long
Dim myCount As Integer
Dim myStems As Long
Dim mySelect As Range
Dim c As Range
findMCS1 = Range("A:A").Find("MCS", Range("A1")).Row
findMCS2 = Range("A:A").Find("MCS", Range("A" & findMCS1)).Row
myCount = Range("A" & findMCS1 + 1 & ":A" & findMCS2 - 1).Cells.Count
Range("B1").Value = myCount
MsgBox "Number of rows =" & myCount
Set mySelect = Selection
If myCount > 8 Then
myStems = Range("A" & findMCS1 + 2 & ":A" & findMCS2 - 9).Select
Set mySelect = Selection
For Each c In mySelect.Cells
If firstcell = "" Then firstcell = c.Address(bRow, bCol)
sArgs = sArgs + c.Text + " "
c.Value = ""
Next
Range(firstcell).Value = sArgs
End If
Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub
excel vba
excel vba
edited Mar 8 at 12:39
Pᴇʜ
25.2k63052
25.2k63052
asked Mar 8 at 12:12
SirajSiraj
621211
621211
You only do the Find once, so you need to build in a loop. There are many examples online - looks like you should be able to have a go.
– SJR
Mar 8 at 12:20
I am not a programmer but i tried the help of stackoverflow to assemble some code. But unable to loop. Any help would be wonderful. Thanks
– Siraj
Mar 8 at 12:24
Why do you leave out rows 13-22?
– SJR
Mar 8 at 12:29
The row count between 13 and 22 is 8, so only if it is more than 8 I need to find and select that range.
– Siraj
Mar 8 at 12:33
So the number of rows in between needs to be more than 8. I'll take a look later today if it hasn't already been answered.
– SJR
Mar 8 at 12:34
|
show 3 more comments
You only do the Find once, so you need to build in a loop. There are many examples online - looks like you should be able to have a go.
– SJR
Mar 8 at 12:20
I am not a programmer but i tried the help of stackoverflow to assemble some code. But unable to loop. Any help would be wonderful. Thanks
– Siraj
Mar 8 at 12:24
Why do you leave out rows 13-22?
– SJR
Mar 8 at 12:29
The row count between 13 and 22 is 8, so only if it is more than 8 I need to find and select that range.
– Siraj
Mar 8 at 12:33
So the number of rows in between needs to be more than 8. I'll take a look later today if it hasn't already been answered.
– SJR
Mar 8 at 12:34
You only do the Find once, so you need to build in a loop. There are many examples online - looks like you should be able to have a go.
– SJR
Mar 8 at 12:20
You only do the Find once, so you need to build in a loop. There are many examples online - looks like you should be able to have a go.
– SJR
Mar 8 at 12:20
I am not a programmer but i tried the help of stackoverflow to assemble some code. But unable to loop. Any help would be wonderful. Thanks
– Siraj
Mar 8 at 12:24
I am not a programmer but i tried the help of stackoverflow to assemble some code. But unable to loop. Any help would be wonderful. Thanks
– Siraj
Mar 8 at 12:24
Why do you leave out rows 13-22?
– SJR
Mar 8 at 12:29
Why do you leave out rows 13-22?
– SJR
Mar 8 at 12:29
The row count between 13 and 22 is 8, so only if it is more than 8 I need to find and select that range.
– Siraj
Mar 8 at 12:33
The row count between 13 and 22 is 8, so only if it is more than 8 I need to find and select that range.
– Siraj
Mar 8 at 12:33
So the number of rows in between needs to be more than 8. I'll take a look later today if it hasn't already been answered.
– SJR
Mar 8 at 12:34
So the number of rows in between needs to be more than 8. I'll take a look later today if it hasn't already been answered.
– SJR
Mar 8 at 12:34
|
show 3 more comments
1 Answer
1
active
oldest
votes
You could try:
Option Explicit
Sub test()
Dim i As Long, Lastrow As Long, Startpoint As Long, Endpoint As Long, Diff As Long
Dim str As String
With ThisWorkbook.Worksheets("Sheet1")
Lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
Startpoint = 0
Endpoint = 0
For i = Lastrow To 2 Step -1
str = .Range("A" & i).Value
If str = "MCS" And Startpoint = 0 Then
Startpoint = i
ElseIf str = "MCS" And Startpoint <> 0 Then
Endpoint = i
End If
If Startpoint > 0 And Endpoint > 0 Then
Diff = Startpoint - Endpoint
If Diff > 8 Then
.Range("A" & Endpoint + 1).Value = .Range("A" & Endpoint + 1).Value & " " & .Range("A" & Endpoint + 2).Value
.Rows(Endpoint + 2).EntireRow.Delete
Startpoint = 0
Endpoint = 0
End If
End If
Next i
End With
End Sub
Wonderful 1004. It works fine and many thanks.
– Siraj
Mar 8 at 14:45
Hi Error 1104, I am surprised that your seems to worked initially, but now it is picking the ranges randomly. Not all range between MCS with more than 8 rows are picked. Any help would be much appreciated.
– Siraj
Mar 12 at 12:54
@Siraj sorry to hear that. please debug the code using break points & immediate window, and check carefully what values each variable get and try to investigate the problem. As soon as you arrived in a conclusion and manage to find something let me know in order to help you.
– Error 1004
Mar 12 at 15:59
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55062999%2floop-and-concatenate-2-cell-value-between-specific-range%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You could try:
Option Explicit
Sub test()
Dim i As Long, Lastrow As Long, Startpoint As Long, Endpoint As Long, Diff As Long
Dim str As String
With ThisWorkbook.Worksheets("Sheet1")
Lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
Startpoint = 0
Endpoint = 0
For i = Lastrow To 2 Step -1
str = .Range("A" & i).Value
If str = "MCS" And Startpoint = 0 Then
Startpoint = i
ElseIf str = "MCS" And Startpoint <> 0 Then
Endpoint = i
End If
If Startpoint > 0 And Endpoint > 0 Then
Diff = Startpoint - Endpoint
If Diff > 8 Then
.Range("A" & Endpoint + 1).Value = .Range("A" & Endpoint + 1).Value & " " & .Range("A" & Endpoint + 2).Value
.Rows(Endpoint + 2).EntireRow.Delete
Startpoint = 0
Endpoint = 0
End If
End If
Next i
End With
End Sub
Wonderful 1004. It works fine and many thanks.
– Siraj
Mar 8 at 14:45
Hi Error 1104, I am surprised that your seems to worked initially, but now it is picking the ranges randomly. Not all range between MCS with more than 8 rows are picked. Any help would be much appreciated.
– Siraj
Mar 12 at 12:54
@Siraj sorry to hear that. please debug the code using break points & immediate window, and check carefully what values each variable get and try to investigate the problem. As soon as you arrived in a conclusion and manage to find something let me know in order to help you.
– Error 1004
Mar 12 at 15:59
add a comment |
You could try:
Option Explicit
Sub test()
Dim i As Long, Lastrow As Long, Startpoint As Long, Endpoint As Long, Diff As Long
Dim str As String
With ThisWorkbook.Worksheets("Sheet1")
Lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
Startpoint = 0
Endpoint = 0
For i = Lastrow To 2 Step -1
str = .Range("A" & i).Value
If str = "MCS" And Startpoint = 0 Then
Startpoint = i
ElseIf str = "MCS" And Startpoint <> 0 Then
Endpoint = i
End If
If Startpoint > 0 And Endpoint > 0 Then
Diff = Startpoint - Endpoint
If Diff > 8 Then
.Range("A" & Endpoint + 1).Value = .Range("A" & Endpoint + 1).Value & " " & .Range("A" & Endpoint + 2).Value
.Rows(Endpoint + 2).EntireRow.Delete
Startpoint = 0
Endpoint = 0
End If
End If
Next i
End With
End Sub
Wonderful 1004. It works fine and many thanks.
– Siraj
Mar 8 at 14:45
Hi Error 1104, I am surprised that your seems to worked initially, but now it is picking the ranges randomly. Not all range between MCS with more than 8 rows are picked. Any help would be much appreciated.
– Siraj
Mar 12 at 12:54
@Siraj sorry to hear that. please debug the code using break points & immediate window, and check carefully what values each variable get and try to investigate the problem. As soon as you arrived in a conclusion and manage to find something let me know in order to help you.
– Error 1004
Mar 12 at 15:59
add a comment |
You could try:
Option Explicit
Sub test()
Dim i As Long, Lastrow As Long, Startpoint As Long, Endpoint As Long, Diff As Long
Dim str As String
With ThisWorkbook.Worksheets("Sheet1")
Lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
Startpoint = 0
Endpoint = 0
For i = Lastrow To 2 Step -1
str = .Range("A" & i).Value
If str = "MCS" And Startpoint = 0 Then
Startpoint = i
ElseIf str = "MCS" And Startpoint <> 0 Then
Endpoint = i
End If
If Startpoint > 0 And Endpoint > 0 Then
Diff = Startpoint - Endpoint
If Diff > 8 Then
.Range("A" & Endpoint + 1).Value = .Range("A" & Endpoint + 1).Value & " " & .Range("A" & Endpoint + 2).Value
.Rows(Endpoint + 2).EntireRow.Delete
Startpoint = 0
Endpoint = 0
End If
End If
Next i
End With
End Sub
You could try:
Option Explicit
Sub test()
Dim i As Long, Lastrow As Long, Startpoint As Long, Endpoint As Long, Diff As Long
Dim str As String
With ThisWorkbook.Worksheets("Sheet1")
Lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
Startpoint = 0
Endpoint = 0
For i = Lastrow To 2 Step -1
str = .Range("A" & i).Value
If str = "MCS" And Startpoint = 0 Then
Startpoint = i
ElseIf str = "MCS" And Startpoint <> 0 Then
Endpoint = i
End If
If Startpoint > 0 And Endpoint > 0 Then
Diff = Startpoint - Endpoint
If Diff > 8 Then
.Range("A" & Endpoint + 1).Value = .Range("A" & Endpoint + 1).Value & " " & .Range("A" & Endpoint + 2).Value
.Rows(Endpoint + 2).EntireRow.Delete
Startpoint = 0
Endpoint = 0
End If
End If
Next i
End With
End Sub
answered Mar 8 at 14:25
Error 1004Error 1004
3,4251518
3,4251518
Wonderful 1004. It works fine and many thanks.
– Siraj
Mar 8 at 14:45
Hi Error 1104, I am surprised that your seems to worked initially, but now it is picking the ranges randomly. Not all range between MCS with more than 8 rows are picked. Any help would be much appreciated.
– Siraj
Mar 12 at 12:54
@Siraj sorry to hear that. please debug the code using break points & immediate window, and check carefully what values each variable get and try to investigate the problem. As soon as you arrived in a conclusion and manage to find something let me know in order to help you.
– Error 1004
Mar 12 at 15:59
add a comment |
Wonderful 1004. It works fine and many thanks.
– Siraj
Mar 8 at 14:45
Hi Error 1104, I am surprised that your seems to worked initially, but now it is picking the ranges randomly. Not all range between MCS with more than 8 rows are picked. Any help would be much appreciated.
– Siraj
Mar 12 at 12:54
@Siraj sorry to hear that. please debug the code using break points & immediate window, and check carefully what values each variable get and try to investigate the problem. As soon as you arrived in a conclusion and manage to find something let me know in order to help you.
– Error 1004
Mar 12 at 15:59
Wonderful 1004. It works fine and many thanks.
– Siraj
Mar 8 at 14:45
Wonderful 1004. It works fine and many thanks.
– Siraj
Mar 8 at 14:45
Hi Error 1104, I am surprised that your seems to worked initially, but now it is picking the ranges randomly. Not all range between MCS with more than 8 rows are picked. Any help would be much appreciated.
– Siraj
Mar 12 at 12:54
Hi Error 1104, I am surprised that your seems to worked initially, but now it is picking the ranges randomly. Not all range between MCS with more than 8 rows are picked. Any help would be much appreciated.
– Siraj
Mar 12 at 12:54
@Siraj sorry to hear that. please debug the code using break points & immediate window, and check carefully what values each variable get and try to investigate the problem. As soon as you arrived in a conclusion and manage to find something let me know in order to help you.
– Error 1004
Mar 12 at 15:59
@Siraj sorry to hear that. please debug the code using break points & immediate window, and check carefully what values each variable get and try to investigate the problem. As soon as you arrived in a conclusion and manage to find something let me know in order to help you.
– Error 1004
Mar 12 at 15:59
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55062999%2floop-and-concatenate-2-cell-value-between-specific-range%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You only do the Find once, so you need to build in a loop. There are many examples online - looks like you should be able to have a go.
– SJR
Mar 8 at 12:20
I am not a programmer but i tried the help of stackoverflow to assemble some code. But unable to loop. Any help would be wonderful. Thanks
– Siraj
Mar 8 at 12:24
Why do you leave out rows 13-22?
– SJR
Mar 8 at 12:29
The row count between 13 and 22 is 8, so only if it is more than 8 I need to find and select that range.
– Siraj
Mar 8 at 12:33
So the number of rows in between needs to be more than 8. I'll take a look later today if it hasn't already been answered.
– SJR
Mar 8 at 12:34