How do I append to multiple cells in Excel?
up vote
0
down vote
favorite
For example:
If the cell's value is "ABC", I want to append "D" to it.
Suppose I have a huge list and this cell with this exact value is random throughout the list. How do I reliably append to this list?
microsoft-excel microsoft-excel-2016
add a comment |
up vote
0
down vote
favorite
For example:
If the cell's value is "ABC", I want to append "D" to it.
Suppose I have a huge list and this cell with this exact value is random throughout the list. How do I reliably append to this list?
microsoft-excel microsoft-excel-2016
Do want the cell currently with a value ofABC
to have the valueABCD
? If yes, you will need VBA. If theCONCATENATE
d value can be in another cell, then you can use a formula
– cybernetic.nomad
Nov 15 at 17:29
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
For example:
If the cell's value is "ABC", I want to append "D" to it.
Suppose I have a huge list and this cell with this exact value is random throughout the list. How do I reliably append to this list?
microsoft-excel microsoft-excel-2016
For example:
If the cell's value is "ABC", I want to append "D" to it.
Suppose I have a huge list and this cell with this exact value is random throughout the list. How do I reliably append to this list?
microsoft-excel microsoft-excel-2016
microsoft-excel microsoft-excel-2016
asked Nov 15 at 17:19
Nabeel Parkar
334
334
Do want the cell currently with a value ofABC
to have the valueABCD
? If yes, you will need VBA. If theCONCATENATE
d value can be in another cell, then you can use a formula
– cybernetic.nomad
Nov 15 at 17:29
add a comment |
Do want the cell currently with a value ofABC
to have the valueABCD
? If yes, you will need VBA. If theCONCATENATE
d value can be in another cell, then you can use a formula
– cybernetic.nomad
Nov 15 at 17:29
Do want the cell currently with a value of
ABC
to have the value ABCD
? If yes, you will need VBA. If the CONCATENATE
d value can be in another cell, then you can use a formula– cybernetic.nomad
Nov 15 at 17:29
Do want the cell currently with a value of
ABC
to have the value ABCD
? If yes, you will need VBA. If the CONCATENATE
d value can be in another cell, then you can use a formula– cybernetic.nomad
Nov 15 at 17:29
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
Try this short VBA macro:
Sub Macro1()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
EDIT#1:
If you want to restrict the change to those cells whose value is exactly
ABC
then use:
Sub Macro2()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
Macro2()
will ignore a cell like:
Easy as ABC
I think OP wants to consider cells with only exact value ABC. I guess your macro is generic. It will even replace ABCF with ABCDF if I am not wrong. Do comment/confirm. Thanks
– pat2015
Nov 15 at 18:53
@pat2015 See my EDIT#1
– Gary's Student
Nov 15 at 19:04
add a comment |
up vote
-1
down vote
How about the Find and Replace option (I'm looking in Excel 2016) ?
https://support.office.com/en-us/article/find-or-replace-text-and-numbers-on-a-worksheet-0e304ca5-ecef-4808-b90f-fdb42f892e90
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Try this short VBA macro:
Sub Macro1()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
EDIT#1:
If you want to restrict the change to those cells whose value is exactly
ABC
then use:
Sub Macro2()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
Macro2()
will ignore a cell like:
Easy as ABC
I think OP wants to consider cells with only exact value ABC. I guess your macro is generic. It will even replace ABCF with ABCDF if I am not wrong. Do comment/confirm. Thanks
– pat2015
Nov 15 at 18:53
@pat2015 See my EDIT#1
– Gary's Student
Nov 15 at 19:04
add a comment |
up vote
1
down vote
accepted
Try this short VBA macro:
Sub Macro1()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
EDIT#1:
If you want to restrict the change to those cells whose value is exactly
ABC
then use:
Sub Macro2()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
Macro2()
will ignore a cell like:
Easy as ABC
I think OP wants to consider cells with only exact value ABC. I guess your macro is generic. It will even replace ABCF with ABCDF if I am not wrong. Do comment/confirm. Thanks
– pat2015
Nov 15 at 18:53
@pat2015 See my EDIT#1
– Gary's Student
Nov 15 at 19:04
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Try this short VBA macro:
Sub Macro1()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
EDIT#1:
If you want to restrict the change to those cells whose value is exactly
ABC
then use:
Sub Macro2()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
Macro2()
will ignore a cell like:
Easy as ABC
Try this short VBA macro:
Sub Macro1()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
EDIT#1:
If you want to restrict the change to those cells whose value is exactly
ABC
then use:
Sub Macro2()
Cells.Replace What:="ABC", Replacement:="ABCD", LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
Macro2()
will ignore a cell like:
Easy as ABC
edited Nov 15 at 21:18
answered Nov 15 at 18:48
Gary's Student
13.2k31729
13.2k31729
I think OP wants to consider cells with only exact value ABC. I guess your macro is generic. It will even replace ABCF with ABCDF if I am not wrong. Do comment/confirm. Thanks
– pat2015
Nov 15 at 18:53
@pat2015 See my EDIT#1
– Gary's Student
Nov 15 at 19:04
add a comment |
I think OP wants to consider cells with only exact value ABC. I guess your macro is generic. It will even replace ABCF with ABCDF if I am not wrong. Do comment/confirm. Thanks
– pat2015
Nov 15 at 18:53
@pat2015 See my EDIT#1
– Gary's Student
Nov 15 at 19:04
I think OP wants to consider cells with only exact value ABC. I guess your macro is generic. It will even replace ABCF with ABCDF if I am not wrong. Do comment/confirm. Thanks
– pat2015
Nov 15 at 18:53
I think OP wants to consider cells with only exact value ABC. I guess your macro is generic. It will even replace ABCF with ABCDF if I am not wrong. Do comment/confirm. Thanks
– pat2015
Nov 15 at 18:53
@pat2015 See my EDIT#1
– Gary's Student
Nov 15 at 19:04
@pat2015 See my EDIT#1
– Gary's Student
Nov 15 at 19:04
add a comment |
up vote
-1
down vote
How about the Find and Replace option (I'm looking in Excel 2016) ?
https://support.office.com/en-us/article/find-or-replace-text-and-numbers-on-a-worksheet-0e304ca5-ecef-4808-b90f-fdb42f892e90
add a comment |
up vote
-1
down vote
How about the Find and Replace option (I'm looking in Excel 2016) ?
https://support.office.com/en-us/article/find-or-replace-text-and-numbers-on-a-worksheet-0e304ca5-ecef-4808-b90f-fdb42f892e90
add a comment |
up vote
-1
down vote
up vote
-1
down vote
How about the Find and Replace option (I'm looking in Excel 2016) ?
https://support.office.com/en-us/article/find-or-replace-text-and-numbers-on-a-worksheet-0e304ca5-ecef-4808-b90f-fdb42f892e90
How about the Find and Replace option (I'm looking in Excel 2016) ?
https://support.office.com/en-us/article/find-or-replace-text-and-numbers-on-a-worksheet-0e304ca5-ecef-4808-b90f-fdb42f892e90
answered Nov 15 at 18:10
JohnC
12
12
add a comment |
add a comment |
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%2fsuperuser.com%2fquestions%2f1375753%2fhow-do-i-append-to-multiple-cells-in-excel%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
Do want the cell currently with a value of
ABC
to have the valueABCD
? If yes, you will need VBA. If theCONCATENATE
d value can be in another cell, then you can use a formula– cybernetic.nomad
Nov 15 at 17:29