Note: The other languages of the website are Google-translated. Back to English
Mewngofnodi  \/ 
x
or
x
Cofrestru  \/ 
x

or

Sut i ychwanegu testun at ddechrau neu ddiwedd pob cell yn Excel?

Weithiau efallai y bydd angen i chi ychwanegu'r un testun penodol at ddechrau neu ddiwedd pob cell mewn detholiad. Os gwnaethoch ychwanegu'r testun at bob cell â llaw fesul un, rhaid iddo gymryd llawer o amser. A oes ffyrdd haws? Oes, mae yna lawer o driciau hawdd i ychwanegu'r un testun at ddechrau neu ddiwedd pob cell mewn detholiad.

Ychwanegwch destun penodedig at ddechrau / diwedd pob cell â fformwlâu

Ychwanegwch destun penodedig at ddechrau / diwedd pob cell â VBA

Ychwanegwch destun penodol i ddechrau / diwedd pob ells gyda Kutools ar gyfer Excel syniad da3

Ychwanegwch destun penodedig i safle penodedig pob cell gyda Kutools ar gyfer Excel syniad da3


Ychwanegwch destun penodedig at ddechrau / diwedd pob cell â fformwlâu

Mae dau fformiwla i ychwanegu testun penodol at ddechrau neu ddiwedd pob cell a ddewiswyd yn Microsoft Excel.

Dull 1: & fformiwla

Nodwch y = "Dosbarth A:" & A2 yng Nghell C2, ac yna llusgwch y ddolen llenwi i lawr i'r celloedd rydych chi am eu defnyddio yn y fformiwla hon. Ac mae'r testun penodol wedi'i ychwanegu cyn pob un o'r celloedd, gweler y screenshot:

doc ychwanegu testun penodol 1

Dull 2: Fformiwla concatenate

Nodwch y = Concatenate ("Dosbarth A:", A2) yng Nghell C2, ac yna llusgo a chopïo'r fformiwla hon i'r celloedd rydych chi am eu defnyddio, gweler y screenshot:

doc ychwanegu testun penodol 2

Nodiadau:

1. Os ydych chi am ychwanegu testun penodedig arall ym mhob cell, dim ond disodli'r Dosbarth A: gyda'ch testun yn y ddau fformiwla.

2. Fformiwlâu = A2 & ": Dosbarth A" a = Concatenate (A2, ": Dosbarth A") yn ychwanegu : Dosbarth A. ar ddiwedd y celloedd.

3. Ni fydd y ddau fformiwla yn addasu'r cynnwys wrth ei ddewis yn uniongyrchol.


ychwanegwch yr un testun i leoliad penodol o bob cell yn Excel

Sut allech chi ychwanegu testun neu gymeriadau at ddechrau celloedd lluosog, neu ychwanegu testun neu gymeriadau at ddiwedd celloedd neu fewnosod testun neu gymeriadau rhwng testun sy'n bodoli eisoes? Gyda Ychwanegu Testun cyfleustodau Kutools ar gyfer Excel, gallwch gymhwyso'r gweithrediadau canlynol yn gyflym :. Cliciwch am dreial llawn am ddim mewn 30 diwrnod!
doc ychwanegu testun 6
 
Kutools for Excel: gyda mwy na 300 o ychwanegion Excel defnyddiol, am ddim i geisio heb unrhyw gyfyngiad yn y 30 diwrnod yn y dyfodol llawn.

Ychwanegwch destun penodedig at ddechrau / diwedd pob cell â VBA

Os ydych chi am ychwanegu testun penodol ym mhob cell o ddetholiad yn uniongyrchol, bydd y Macro VBA canlynol yn lleddfu'ch gwaith.

1. Dewiswch yr ystod y byddwch chi'n ychwanegu testun penodol ynddo;

2. Daliwch i lawr y Alt + F11 allweddi yn Excel, ac mae'n agor y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

3. Cliciwch Mewnosod > Modiwlau, a gludwch y cod VBA canlynol yn Ffenestr y Modiwl.

VBA: Ychwanegu testun penodedig ar ddechrau pob cell:

Sub AppendToExistingOnLeft()
Dim c As Range
For Each c In Selection
If c.Value <> "" Then c.Value = "CN- " & c.Value 
Next
End Sub

4. Gwasgwch F5 allwedd i redeg y macro hwn. A bydd y gwerth yn cael ei ychwanegu at bob un o'r celloedd CN- cyn cynnwys y gell.

doc ychwanegu testun penodol 3

Nodiadau: 1. I ychwanegu rhywfaint o destun penodol ar ddiwedd pob cell, defnyddiwch y cod VBA canlynol.

VBA: Ychwanegu testun penodedig ar ddiwedd pob cell:

Sub AppendToExistingOnRight()
Dim c as range
For each c in Selection
If c.value <> "" Then c.value = c.value & "-CN" 
Next
End Sub

A byddwch yn cael y canlyniad canlynol:

doc ychwanegu testun penodol 4

2. gallwch chi newid y newidyn "CN-" neu "-CN"o'r codau uchod.


Ychwanegwch destun penodedig at ddechrau / diwedd pob cell gyda Kutools ar gyfer Excel

Kutools ar gyfer Excel's Add Text bydd offeryn yn eich helpu i ychwanegu testun penodedig yn gyflym at ddechrau neu ddiwedd pob cell mewn detholiad.

Kutools ar gyfer Excel, gyda mwy na 300 swyddogaethau defnyddiol, yn gwneud eich swyddi yn haws. 

Ar ôl gosod Kutools ar gyfer Excel, gwnewch fel y nodir isod:(Kutools i'w lawrlwytho am ddim ar gyfer Excel Nawr!)

1. Dewiswch yr ystod y byddwch chi'n ychwanegu testun penodol ynddo.

2. Cliciwch y Kutools > Text > Add Text…. Gweler y screenshot:

doc ychwanegu testun penodol 11

3. . In Yn Add Text blwch deialog, nodwch y testun y mae angen i chi ei ychwanegu yn y Text blwch.

(1.) Os gwiriwch Before first character oddi wrth y Position adran, a bydd y testun penodol yn cael ei ychwanegu o flaen yr holl werthoedd celloedd, gweler y screenshot:

doc ychwanegu testun penodol 6

(2.) Os gwiriwch After last character oddi wrth y Position adran, a bydd y testun penodol yn cael ei ychwanegu ar ddiwedd y gwerthoedd celloedd, gweler y screenshot:

doc ychwanegu testun penodol 7

Nodiadau:

1. Kutools ar gyfer Excel's Add Text offeryn yn caniatáu ichi gael rhagolwg o'r newidiadau yn y dewis yn yr adran Rhagolwg.

2. Os gwiriwch y Skip non-text cells opsiwn, ni fydd yr offeryn hwn yn ychwanegu'r testun penodedig mewn celloedd sydd â chynnwys heblaw testun.


Ychwanegwch destun penodedig i safle penodedig pob cell gyda Kutools ar gyfer Excel

Gwneud cais Kutools for Excel's Add Text swyddogaeth, gallwch nid yn unig ychwanegu'r testun penodedig at ddechrau neu ddiwedd y celloedd, ond hefyd gallwch ychwanegu'r testun penodedig i safle penodedig y celloedd.

Ar ôl gosod Kutools ar gyfer Excel, gwnewch fel y nodir isod:(Kutools i'w lawrlwytho am ddim ar gyfer Excel Nawr!)

1. Dewiswch ystod rydych chi am ychwanegu testun ati, ac yna cliciwch Kutools > Text > Add Text.

2. y Add Text bydd dialog yn cael ei arddangos, ac yn nodi'r testun penodedig ac yn nodi'r safle benodol rydych chi am fewnosod y testun yn y blychau. Gweler y screenshot:

Dyma fi'n teipio 3 i mewn i'r Specify mae blwch testun yn golygu ychwanegu testun ar ôl trydydd cymeriad y llinyn.

doc ychwanegu testun penodol 8

3. Cliciwch Ok or Apply. Mae'r testun penodedig wedi'i ychwanegu at safle penodedig y celloedd. Gweler y screenshot:

doc ychwanegu testun penodol 9

Tip:

(1) Yn Specify blwch testun, gallwch deipio rhifau gyda choma ar wahân i ychwanegu testun mewn safle lluosog ar yr un pryd.
doc ychwanegu testun penodol 12

(2) Os ydych chi am ychwanegu testun cyn pob llythyr uchaf, bydd y 1st letter is uppercase opsiwn i mewn Add Text gall cyfleustodau eich helpu chi.
doc ychwanegu testun penodol 10

Hefyd, gallwch ychwanegu testun cyn pob llythyren fach, neu bob llythyr rhif.

Cliciwch Lawrlwytho a threial am ddim Kutools ar gyfer Excel Now!


Demo: Ychwanegu testun at ddechrau neu ddiwedd pob cell


Erthyglau cymharol:


Yr Offer Cynhyrchedd Swyddfa Gorau

Mae Kutools for Excel yn Datrys y rhan fwyaf o'ch Problemau, ac yn Cynyddu Eich Cynhyrchedd 80%

  • Ailddefnyddio: Mewnosod yn gyflym fformwlâu cymhleth, siartiau ac unrhyw beth rydych chi wedi'i ddefnyddio o'r blaen; Amgryptio Celloedd gyda chyfrinair; Creu Rhestr Bostio ac anfon e-byst ...
  • Bar Fformiwla Gwych (golygu llinellau lluosog o destun a fformiwla yn hawdd); Cynllun Darllen (darllen a golygu nifer fawr o gelloedd yn hawdd); Gludo i'r Ystod Hidlo...
  • Uno Celloedd / Rhesi / Colofnau heb golli Data; Cynnwys Celloedd Hollt; Cyfuno Rhesi / Colofnau Dyblyg... Atal Celloedd Dyblyg; Cymharwch y Meysydd...
  • Dewiswch Dyblyg neu Unigryw Rhesi; Dewiswch Blank Rows (mae pob cell yn wag); Darganfyddiad Gwych a Darganfyddiad Niwlog mewn Llawer o Lyfrau Gwaith; Dewis ar Hap ...
  • Copi Union Celloedd Lluosog heb newid cyfeirnod fformiwla; Auto Creu Cyfeiriadau i Daflenni Lluosog; Mewnosod Bwledi, Blychau Gwirio a mwy ...
  • Testun Detholiad, Ychwanegu Testun, Tynnu yn ôl Swydd, Tynnwch y Gofod; Creu ac Argraffu Subtotals Paging; Trosi rhwng Cynnwys a Sylwadau Celloedd...
  • Hidlo Super (arbed a chymhwyso cynlluniau hidlo i ddalenni eraill); Trefnu Uwch yn ôl mis / wythnos / dydd, amlder a mwy; Hidlo Arbennig gan feiddgar, italig ...
  • Cyfuno Llyfrau Gwaith a Thaflenni Gwaith; Uno Tablau yn seiliedig ar golofnau allweddol; Rhannwch Ddata yn Daflenni Lluosog; Trosi Swp xls, xlsx a PDF...
  • Mwy na 300 o nodweddion pwerus. Yn cefnogi Swyddfa / Excel 2007-2019 a 365. Yn cefnogi pob iaith. Defnydd hawdd yn eich menter neu sefydliad. Nodweddion llawn treial am ddim 30 diwrnod. Gwarant arian yn ôl 60 diwrnod.
tab kte 201905

Mae Tab Office yn Dod â rhyngwyneb Tabbed i'r Swyddfa, a Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
gwaelod officetab
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    zach · 1 years ago
    Thank you!
  • To post as a guest, your comment is unpublished.
    Salar · 1 years ago
    the VBA code worked perfectly on Office for Mac
  • To post as a guest, your comment is unpublished.
    Marco · 2 years ago
    Me has quitado varias horas de trabajo de encima, mil gracias!!!
  • To post as a guest, your comment is unpublished.
    dkbhardwaj · 2 years ago
    thanks a lot dear for sharing information.
  • To post as a guest, your comment is unpublished.
    Courtney · 2 years ago
    Thank you! Apend and pre-pend macro works great
  • To post as a guest, your comment is unpublished.
    Amanda · 2 years ago
    I am trying to change a date formula from mm/dd/yyyy to dd/mm/yyyy. The leading zeros for months and dates less than 10 (two digits) are going away. Anyone have tips on how to easily put them back. I tried using the =month, =day, =year formulas and concatenating them. However, the leading zeros are dropping off. I would manually have to put in the leading zeros. Is there an easy way to do this? We are going to have approximately 1,000 rows of data on our file each month.
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Hi, Amanda, if you want to convert date from mm/dd/yyyy to dd/mm/yyyy, this article https://www.extendoffice.com/documents/excel/4646-excel-convert-dd-mm-yyyy-to-mm-dd-yyyy.html can help you, it list two easiest ways for solving this job.
  • To post as a guest, your comment is unpublished.
    Manik · 2 years ago
    I want to make a formula that show in cell text "Profit" when another cell show +digit, and show in that cell "Loss" when another that cell show -digit
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Hi, Manik, use this =IF(B1>0, "Profit", "Loss")
  • To post as a guest, your comment is unpublished.
    AK · 3 years ago
    Thanks a lot!! I was initially using Access but this is so much easier.
  • To post as a guest, your comment is unpublished.
    m.omarhayat@gmail.com · 3 years ago
    Hello, i want to add text in a formula;

    current cell value: ='DAM91-SVC'!$C$47
    i want to add text: [MHSV Sales Report 2017 (JAN-DEC).xlsx]

    therefore the cell value should read like this in the end: ='[MHSV Sales Report 2017 (JAN-DEC).xlsx]DAM91-SVC'!$C$47

    please tell me how will this be done.
    thank you
    total 1800 cell count need alteration.
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Hello, sorry to read your question so late. Here is a solution but you need to free download Kutools for Excel.

      Using the Convert Formula to Text utility to convert the formula cell to text, then apply Add Text utility to add the text string in the Specify position(1), then click Ok. After all cells have been added text, conver them to formula by click Kutools > Content > Convert Text to Formula.
  • To post as a guest, your comment is unpublished.
    Raghulan · 4 years ago
    Hi I want to add $ symbol to a field value, to even the length of 9 chars.
    Below is my requirement, please help


    FL1000 -- > $$$FL1000
    FL10003 --> $$FL10003
    • To post as a guest, your comment is unpublished.
      deepakksingh90@gmail.com · 3 years ago
      Use if conditation with concadiate like when chek len<9 then concdinate("$$$",FL1000),if(Len(FL1000)>8,concdinate("$$",FL1000) then repetedhte valuse
  • To post as a guest, your comment is unpublished.
    Gaine Faste · 4 years ago
    Sub AppendToExistingOnLeft()
    Dim c As Range
    For Each c In Selection
    If c.Value <> "" Then c.Value = "' " & c.Value
    ActiveCell.Offset(1, 0).Range("A1").Select
    Next

    End Sub


    Great formula, with the addition of the 5th line, it automatically switches to the next cell, providing users with the ability to use a "Ctrl + " ", to populate a large amount of data by just holding down "Ctrl+ "(any common letter of choice) ".
  • To post as a guest, your comment is unpublished.
    Leo · 4 years ago
    Um... I know the basics of Excel, definitely didn't know anything about the Microsoft Visual screen and these steps were so crystal clear to follow. I was able to create my first macro, which made the 400 accounts i needed to do this to, a BILLION times easier.

    Thank you!
  • To post as a guest, your comment is unpublished.
    RBTRIPP · 5 years ago
    Thank you for the VBA. It saved me a ton of time and effort.
  • To post as a guest, your comment is unpublished.
    Shaikh · 5 years ago
    Thank you so much. Thank once again!
  • To post as a guest, your comment is unpublished.
    Qasim · 5 years ago
    I want to display this number in percentage Exp: Volume Achieved-KG 30%

    but all it is coming is Volume Achieved-KG 30 any one can help me on this.

    ="Volume Achieved-KG "&ROUND(SUM($H$20*100),0)
  • To post as a guest, your comment is unpublished.
    VISHNU VASUDEVAN · 5 years ago
    Awesome! I am try this last day, and its works smoothly without any error...thanks for your assist..
  • To post as a guest, your comment is unpublished.
    sania · 5 years ago
    Cool. Thanks!! Works perfectly
  • To post as a guest, your comment is unpublished.
    Tanya · 5 years ago
    thanks it's great code.
    but i need some help.
    How to change this code that the change will takes effect only on cells that contain text and not numbers
  • To post as a guest, your comment is unpublished.
    Tanya · 5 years ago
    hello,
    thanks it's great code.
    but i need some help.
    How to change this code that the change will takes effect only on cells that contain text and not numbers
  • To post as a guest, your comment is unpublished.
    Michael Kane · 5 years ago
    thanks for this. You guys are legeneds
  • To post as a guest, your comment is unpublished.
    rakshitha · 5 years ago
    Thanks, adding specific letters before and after helped !!!!
  • To post as a guest, your comment is unpublished.
    Bill Bond · 5 years ago
    Many Thanks for taking the time to provide this code.
    It added some text to the beginning of every cell in a big selected column.
    It did exactly what I wanted in a few seconds.
    What was REALLY useful as well, was showing me how to actually run the code in a simple manner.
    I always thought you had to add a control then add the code into the Control's event, etc.

    Best Regards, Bill
  • To post as a guest, your comment is unpublished.
    RESHMA · 5 years ago
    i have such data and i want to give them numbers in front of them serially,
    E.G
    data result
    reshma - reshma1
    reshma - reshma2
    ritesh - ritesh1
    ritesh - ritesh2
    ritesh - ritesh 2
    sam - sam 1
    sam - sam 2
    rakesh - rakesh 1
    neha - neha 1
    neha - neha 2
    neha - neha 3
  • To post as a guest, your comment is unpublished.
    vinser · 5 years ago
    thanks a lot

    its was easy to work
  • To post as a guest, your comment is unpublished.
    Ritesh saxena · 5 years ago
    VBA is Awesome. Excellent tip. Saved huge amount of time. Thank you so much..
  • To post as a guest, your comment is unpublished.
    Fabio · 5 years ago
    The VBA trick works like a charm, no wwird formulas hanging around my sheet. Thanks a million!
  • To post as a guest, your comment is unpublished.
    reza · 6 years ago
    hi
    i want have following cells with order number and differnt cell content:

    skdljfkldf 1
    dfkgjfdgkjldkfj2
    lkgj 3
    dkjfdfjkj 4
    kjglkjgkjgrjtgrjtgr 5
  • To post as a guest, your comment is unpublished.
    sameer · 6 years ago
    i need help on below
    1.i want to add specific letters in cell -for eg: below

    in cell A1 i have 111 then after when i click button add AB infront of 111,if already any letters in front of number then no need to add AB

    2.How to restrict use to enter space and restrict length min 5 and max 6
  • To post as a guest, your comment is unpublished.
    Davy · 6 years ago
    Thank you very. It really has helped me very much. Please keep up the good work you are providing
  • To post as a guest, your comment is unpublished.
    Aayush · 6 years ago
    thank you so much. the information given above is very benficial
  • To post as a guest, your comment is unpublished.
    amr · 6 years ago
    thanks that helped a lot
    thanks again :roll:
  • To post as a guest, your comment is unpublished.
    algae · 6 years ago
    hi,
    my workbook has 60 sheets. i want to add a column A in sheets 5 to 56 and insert the name of the worksheet in each cell of col A . Each sheet has 150 rows, so 150 cells A1-A150.

    would greatly appreciate a vba soln

    tnx
  • To post as a guest, your comment is unpublished.
    scott aramaki · 6 years ago
    This was EXTREMELY helpful. And I don't use all caps very often.
  • To post as a guest, your comment is unpublished.
    Deepak Sadanand · 6 years ago
    Thank you. Helped with what I was looking for.
  • To post as a guest, your comment is unpublished.
    Shaun · 7 years ago
    I am trying the VBA, says its running. But its for 63,000 rows. Will this take a ton of time (an hour so far). That normal?
  • To post as a guest, your comment is unpublished.
    Miss Bunny · 7 years ago
    Thanks mch . It helped me a lot :)
  • To post as a guest, your comment is unpublished.
    Niranjan · 7 years ago
    where is the comment i have posted earlier
  • To post as a guest, your comment is unpublished.
    Niranjan · 7 years ago
    Hey,
    this is great. I need something more than this . can I select several rows and perform the same action on alternate cells.
    for example:if I had add hello at the end of each alternate cell
    a
    b
    c
    d
    e
    what I need is

    a hello
    b
    c hello
    d
    e hello
  • To post as a guest, your comment is unpublished.
    Arun Prasad Kumar · 7 years ago
    If you want to add a particular 'word' in all cells in between somewhere in the text, simply we can use "copy & replace" (Ctrl+F) function by selecting all the cells to be replaced in MS Excel.
    For example, if you have to insert "_code" in all the cells in a particular column containing cells having values like Species_Class1, Species_Class2,.....Species_Class100 and change them to Species_code_Class1, Species_code_Class2,.....Species_code_Class100.
    CLick "Crtl+F" --> Use Replace option.
    In 'Find what' give "Species*_Class" and in 'Replace with' give "Species_code_Class".
    Then click "Relace All".
    Cheers.....

    Arun Prasad, India
  • To post as a guest, your comment is unpublished.
    kirsten · 7 years ago
    Hey with the VBA method of adding information to the right of the already entered information, is there a way that you can only do it for selected cells and not ALL cells. I am trying to filter and run the macro on those cells only, and when I do and unfilter it still puts it on all. Thanks!
  • To post as a guest, your comment is unpublished.
    Bharathi · 7 years ago
    Excellent tip. Saved huge amount of time. Thank you so much..
  • To post as a guest, your comment is unpublished.
    handojim · 7 years ago
    Is it possible to change the text string that you're adding to the target cell to be a cell reference, so that instead of adding "LBA " to the start of each cell, you add the contents of a different cell?
    For example if I want to append the contents of cells A1:A10 to the start of the existing text in cells B1:B10??
  • To post as a guest, your comment is unpublished.
    Robert Bollinger · 7 years ago
    KU tools is so cool!! It took me .3 seconds to add the text I needed.

    Robert
  • To post as a guest, your comment is unpublished.
    Joseph kishore · 7 years ago
    Needed Help,


    actually am trying to find all numeric and before that add a paragraph mark..? would you please tell me how to done this this kutools in word or excel...?
  • To post as a guest, your comment is unpublished.
    Steve Watkins · 7 years ago
    VBA is fantastic, so powerful...a great help
  • To post as a guest, your comment is unpublished.
    Sarika Pachlore · 7 years ago
    The VBA tip was very helpful .Thanks aton for saving effort.
  • To post as a guest, your comment is unpublished.
    anurag · 8 years ago
    Thanks really help full
  • To post as a guest, your comment is unpublished.
    Andrew Jensson · 8 years ago
    The VBA trick worked like a charm, thank you!
    • To post as a guest, your comment is unpublished.
      Oladayo Olarewaju · 4 years ago
      This really works. How can i register on this forum?