Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
to replace a value in each cell of the column
Dear All,
In an excel have a column with a name 'TRANTYPE' ie in B1 cell in which contain the value 'I' and 'C'. 'I' for Invoice and 'C' for credit. I want to replace all the values in a cell as follows if the value is 'I' it should be replaced with 'Invoice' if the value is 'C' it should be replaced with 'Credit' in all the cell of that column. Please help . Pol |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
to replace a value in each cell of the column
Hi,
I don't know if I understand you want to replace the I for Invoice and the C with the word Credit if yes hit CTRL H , where it says find what enter I and in replace with enter Invoice and then do it again to change the C if I misunderstood you please give me an example thanks If this was helpful please click yes, thanks "pol" wrote: Dear All, In an excel have a column with a name 'TRANTYPE' ie in B1 cell in which contain the value 'I' and 'C'. 'I' for Invoice and 'C' for credit. I want to replace all the values in a cell as follows if the value is 'I' it should be replaced with 'Invoice' if the value is 'C' it should be replaced with 'Credit' in all the cell of that column. Please help . Pol |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
to replace a value in each cell of the column
Select the range, then use Edit Replace
-- Max Singapore http://savefile.com/projects/236895 Downloads:25,000 Files:300 Subscribers:70 xdemechanik --- "pol" wrote: In an excel have a column with a name 'TRANTYPE' ie in B1 cell in which contain the value 'I' and 'C'. 'I' for Invoice and 'C' for credit. I want to replace all the values in a cell as follows if the value is 'I' it should be replaced with 'Invoice' if the value is 'C' it should be replaced with 'Credit' in all the cell of that column. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
to replace a value in each cell of the column
Select ColumnEditReplace
From optioncheck 'Match Entire cell contents' Enter your criteria -- If this post helps click Yes --------------- Jacob Skaria "pol" wrote: Dear All, In an excel have a column with a name 'TRANTYPE' ie in B1 cell in which contain the value 'I' and 'C'. 'I' for Invoice and 'C' for credit. I want to replace all the values in a cell as follows if the value is 'I' it should be replaced with 'Invoice' if the value is 'C' it should be replaced with 'Credit' in all the cell of that column. Please help . Pol |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
to replace a value in each cell of the column
Thanks for the reply. I want to use a macro to find and replace
I - replace with Invoice C - Replaced with Credit I cannot use menu option edit- find and replace. I have to use macro to find I and C in all the cells of the column C "Eduardo" wrote: Hi, I don't know if I understand you want to replace the I for Invoice and the C with the word Credit if yes hit CTRL H , where it says find what enter I and in replace with enter Invoice and then do it again to change the C if I misunderstood you please give me an example thanks If this was helpful please click yes, thanks "pol" wrote: Dear All, In an excel have a column with a name 'TRANTYPE' ie in B1 cell in which contain the value 'I' and 'C'. 'I' for Invoice and 'C' for credit. I want to replace all the values in a cell as follows if the value is 'I' it should be replaced with 'Invoice' if the value is 'C' it should be replaced with 'Credit' in all the cell of that column. Please help . Pol |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
to replace a value in each cell of the column
If you need a macro, then record one when you do it manually.
pol wrote: Thanks for the reply. I want to use a macro to find and replace I - replace with Invoice C - Replaced with Credit I cannot use menu option edit- find and replace. I have to use macro to find I and C in all the cells of the column C "Eduardo" wrote: Hi, I don't know if I understand you want to replace the I for Invoice and the C with the word Credit if yes hit CTRL H , where it says find what enter I and in replace with enter Invoice and then do it again to change the C if I misunderstood you please give me an example thanks If this was helpful please click yes, thanks "pol" wrote: Dear All, In an excel have a column with a name 'TRANTYPE' ie in B1 cell in which contain the value 'I' and 'C'. 'I' for Invoice and 'C' for credit. I want to replace all the values in a cell as follows if the value is 'I' it should be replaced with 'Invoice' if the value is 'C' it should be replaced with 'Credit' in all the cell of that column. Please help . Pol -- Dave Peterson |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
to replace a value in each cell of the column
Hi Pol,
Sub Replace() ' ' MacroReplace Macro ' ' Columns("C:C").Select Range("c1").Activate Selection.Replace What:="I", Replacement:="Invoice", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False End Sub "pol" wrote: Thanks for the reply. I want to use a macro to find and replace I - replace with Invoice C - Replaced with Credit I cannot use menu option edit- find and replace. I have to use macro to find I and C in all the cells of the column C "Eduardo" wrote: Hi, I don't know if I understand you want to replace the I for Invoice and the C with the word Credit if yes hit CTRL H , where it says find what enter I and in replace with enter Invoice and then do it again to change the C if I misunderstood you please give me an example thanks If this was helpful please click yes, thanks "pol" wrote: Dear All, In an excel have a column with a name 'TRANTYPE' ie in B1 cell in which contain the value 'I' and 'C'. 'I' for Invoice and 'C' for credit. I want to replace all the values in a cell as follows if the value is 'I' it should be replaced with 'Invoice' if the value is 'C' it should be replaced with 'Credit' in all the cell of that column. Please help . Pol |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to search in one column, and replace in the other column if fo | Excel Discussion (Misc queries) | |||
Can I replace a ' at the beginning of a text cell using Replace | Excel Discussion (Misc queries) | |||
Find and Replace on just One Column | Excel Discussion (Misc queries) | |||
Replace all non blanks in a column with column header | Excel Discussion (Misc queries) | |||
Find and Replace in a column | New Users to Excel |