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

or

Hoe formule omzetten in tekstreeks in Excel?

Normaal gesproken toont Microsoft Excel de berekende resultaten wanneer u formules in cellen invoert. Soms moet u echter alleen de formule in een cel weergeven, zoals = CONCATENATE ("000", "- 2"), hoe ga je ermee om? Er zijn verschillende manieren om dit probleem op te lossen:

Converteer formule naar tekstreeks met de functie Zoeken en vervangen

Converteer formule naar tekstreeks met door de gebruiker gedefinieerde functie

Converteer formule naar tekstreeks of vice versa met slechts één klik


Stel dat u een reeks formules in kolom C heeft en u de kolom met originele formules moet weergeven, maar niet de berekende resultaten ervan, zoals in de volgende schermafbeeldingen:

doc-convert-formule-tekst-1-1 2 doc-convert-formule-tekst-2-2

Om deze klus op te lossen, de Zoeken en vervangen functie kan u helpen, doe dan het volgende:

1. Selecteer de berekende resultaatcellen die u naar een tekstreeks wilt converteren.

2. Druk vervolgens op Ctrl + H sleutels samen om de te openen Zoeken en vervangen dialoogvenster, in het dialoogvenster, onder het vervangen tab, voer gelijk in = log in op het Zoeken naar tekstvak en voer in '= in de Vervangen door tekstvak, zie screenshot:

doc-convert-formule-tekst-3-3

3. Dan klikken Alles vervangen knop, kunt u zien dat alle berekende resultaten zijn vervangen door de originele tekstreeksen van de formule, zie screenshot:

doc-convert-formule-tekst-4-4


De volgende VBA-code kan u ook helpen er gemakkelijk mee om te gaan.

1. Houd de anders + F11 toetsen in Excel, en het opent het Microsoft Visual Basic for Applications-venster.

2. Klikken Invoegen > Moduleen plak de volgende macro in het Module Venster.

Function ShowF(Rng As Range)
ShowF = Rng.Formula
End Function

3. Typ een formule in een lege cel, zoals Cell D2 = ShowF (C2).

doc-convert-formule-tekst-5-5

4. Klik vervolgens op de cel D2 en sleep de vulhendel tot het bereik dat u nodig heeft.

doc-convert-formule-tekst-6-6


Als je Kutools for Excel, Met Converteer formule naar tekst functie, kunt u met slechts één klik meerdere formules in tekstreeksen veranderen.

Kutools for Excel : met meer dan 300 handige Excel-invoegtoepassingen, gratis te proberen zonder beperking in 30 dagen. 

Na het installeren van Kutools for Excel, doe dit als volgt:

1. Selecteer de formules die u wilt converteren.

2. Klikken Kutools > Content > Converteer formule naar tekst, en uw geselecteerde formules zijn in één keer geconverteerd naar tekstreeksen, zie screenshot:

Tips: als u de tekstreeksen van de formule terug wilt converteren naar de berekende resultaten, past u het hulpprogramma Tekst naar formule converteren toe zoals in de volgende schermafbeelding wordt getoond:

Ga naar als je meer wilt weten over deze functie Converteer formule naar tekst.

Download en gratis proef Kutools voor Excel nu!


Kutools for Excel: met meer dan 300 handige Excel-invoegtoepassingen, gratis te proberen zonder beperking in 30 dagen. Download en probeer nu gratis!

De beste tools voor kantoorproductiviteit

Kutools voor Excel lost de meeste van uw problemen op en verhoogt uw productiviteit met 80%

  • visfuik: Snel invoegen complexe formules, grafieken en alles wat je eerder hebt gebruikt; Versleutel cellen met wachtwoord; Maak een mailinglijst en stuur e-mails ...
  • Super Formula-balk (bewerk eenvoudig meerdere regels tekst en formule); Lay-out lezen (gemakkelijk grote aantallen cellen lezen en bewerken); Plakken in gefilterd bereik...
  • Voeg cellen / rijen / kolommen samen zonder gegevens te verliezen; Gespleten cellen inhoud; Combineer dubbele rijen / kolommen... Voorkom dubbele cellen; Vergelijk Ranges...
  • Selecteer Dupliceren of Uniek Rijen; Selecteer lege rijen (alle cellen zijn leeg); Super zoeken en fuzzy zoeken in veel werkboeken; Willekeurige selectie ...
  • Exacte kopie Meerdere cellen zonder de formuleverwijzing te wijzigen; Maak automatisch verwijzingen naar meerdere bladen; Plaats kogels, Selectievakjes en meer ...
  • Extraheer tekst, Tekst toevoegen, Verwijderen op positie, Ruimte verwijderen; Paging-subtotalen maken en afdrukken; Converteren tussen celinhoud en opmerkingen...
  • Super filter (bewaar en pas filterschema's toe op andere bladen); Geavanceerd sorteren per maand / week / dag, frequentie en meer; Speciaal filter door vet, cursief ...
  • Combineer werkmappen en werkbladen; Tabellen samenvoegen op basis van sleutelkolommen; Gegevens splitsen in meerdere bladen; Batch Converteer xls, xlsx en PDF...
  • Meer dan 300 krachtige functies. Ondersteunt Office / Excel 2007-2019 en 365. Ondersteunt alle talen. Eenvoudig te implementeren in uw onderneming of organisatie. Gratis proefperiode van 30 dagen met volledige functies. 60 dagen geld-terug-garantie.
kte tabblad 201905

Office-tabblad Brengt een interface met tabbladen naar Office en maakt uw werk veel gemakkelijker

  • Schakel bewerken en lezen met tabbladen in Word, Excel, PowerPoint in, Publisher, Access, Visio en Project.
  • Open en maak meerdere documenten in nieuwe tabbladen van hetzelfde venster in plaats van in nieuwe vensters.
  • Verhoogt uw productiviteit met 50% en vermindert elke dag honderden muisklikken voor u!
officetab onderkant
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.
    Siffiee · 2 years ago
    How do I convert the non matched value retrieved from vlookup into text??
  • To post as a guest, your comment is unpublished.
    Mark McC · 4 years ago
    The find and replace facility is extremely useful, I didn't expect it to work when showing formulae instead of result. Thanks
  • To post as a guest, your comment is unpublished.
    Ashok · 4 years ago
    [quote name="Jennifer"]Hi, is there a short cut method to concatenate 230 cells in excel to and text string, or do I have to add each cell to the concatenate formula with at divider? Thanks so much!

    Converting the range of data into Table (Insert>Table) may help you.
    As and when a row of data is appended to and inserted in to an existing table, formulas and format of number in columns are applied to the new data also.
    File size may increase in Table mode. The Table may be changed to Range mode later (Table tools>Tools>convert to range to reduce file size if needed.
    Maintaining data in Table mode has advantages.
  • To post as a guest, your comment is unpublished.
    Jenny T · 4 years ago
    The Visual Basic editor option didn't work for me - kept returning errors about it needing to be the first row?
  • To post as a guest, your comment is unpublished.
    Jennifer · 4 years ago
    Hi, is there a short cut method to concatenate 230 cells in excel to and text string, or do I have to add each cell to the concatenate formula with at divider? Thanks so much!
    • To post as a guest, your comment is unpublished.
      Ashok · 4 years ago
      Inserting the “concatenation operator” (& or &” “&) among 230 Excel cells can be done in MS Word. This method is good enough if the task is not repetitive and if a Procedure is not available.
      (1) Arrange all the 230 cell-references (the text of which is to be merged in to one cell) in single column or single row in a Table in the merging order (use Excel worksheet and paste in Word).
      (2) Select the table and merge cells (Table Tools > Layout > Merge Cells) to get multi-line single-column Table with paragraph mark at the end of each line except last line.
      (3) Replaces all paragraph marks with commas (Editing > Replace; Find what = ^p and Replace with = ,).
      (4) Convert table to text to get content of each cell separated by a comma in a single paragraph.
      (5) Replaces all commas with concatenation-operator or operators, & or &” “& as required (Editing > Replace; Find what = , and Replace with = & or &” “&).
      (6) Prefix “=” to the paragraph. Required formula is ready in text form. Copy and paste in Excel; it becomes a formula.
      (7) The same result can be achieved in MS Excel also through Editing > Fill > Justify but with limitations. (a) Width of merged text that can be displayed is equal to the width of cell where Justify is applied. Superfluous text is written in cells below as separate text. (b) Numbers are to be converted to text (Formulas > Text > TEXT(Value, Format_text).
      I am an Excel user only and I am sorry for my earlier inappropriate suggestion.
  • To post as a guest, your comment is unpublished.
    Ahmed · 5 years ago
    i need to change my text which in column 115 gm to 115. how it is possible. need to change text in to value like 115 in next column.
    • To post as a guest, your comment is unpublished.
      Jennifer · 4 years ago
      Hi, if you use the text to column feature you can do this. highlight the column in question, click on text to column, step through the process. It will ask you what your delimiter is, if there is a space between the quantity and the measurement (115 gm) you can use the space as your delimiter. PS... add a column to the right of your data column just incase it does something wonky on you.
  • To post as a guest, your comment is unpublished.
    Ahmed · 5 years ago
    I need to convert text from value to sort a large data. please help.

    For Example

    115 gm (this is in shown as text) I need only 115 in next column to sort.


    Please reply help in this regards
    • To post as a guest, your comment is unpublished.
      César · 4 years ago
      [quote name="Ahmed"]I need to convert text from value to sort a large data. please help.

      For Example

      115 gm (this is in shown as text) I need only 115 in next column to sort.


      Please reply help in this regards[/quote]

      897/5000
      Hi, if the numbers inside the text string are in correlative form, try this, in the formula bar type B1 (if the data column is in A1):
      = MID (A1, MIN (IFERROR (FIND ({0; 1; 2; 3; 4; 5; 6; 7; 8; 9}, A1), "")), COUNT (1: $ 98), 1)))
      And then press Ctrl + Shift + Enter because it is a matrix formula, ie at the beginning and end of the formula will appear {y}.
      Note that I use the comma (,), but it is likely that you must use the semicolon (;) to create both the array of digits and to separate the arguments of the function.
      I apologize if there is something wrong with the translation from Spanish, if it gives you an error in case I copy the formula in that language:
      = EXTRACT (A1, MIN (IF YOU FIND ({0; 1; 2; 3; 4; 5; 6; 7; 8; 9}, A1) , FILA ($ 1: $ 98), 1)))
      Original by Moisés Ortíz (https://exceltotal.com/extraer-numeros-de-una-celda-en-excel/)
  • To post as a guest, your comment is unpublished.
    Laura · 5 years ago
    I need to copy the results from a column with a formula to another column but I want just the results copied not the formula. In other words, I have a column with addresses. I have created another column and using a formula I have removed the house number and now just see the street name. Now I need to copy those results (street names only) to another column in a different spreadsheet, but when I try to do this it only copies the formula which of course then gives me the #ref error because the starting data isn't available.

    Any suggestions?
  • To post as a guest, your comment is unpublished.
    Jim Bradshaw · 5 years ago
    I am here because I have been trying to resolve a problem with file names. I have some 40 files with identical names except for the year 2 digits.
    I simply need to construct the file name (eg C:Docs\Research\...\[Year72.xlsx]Test!$B$10 ro retrieve the data out of that particular file cell B10. I can build the file name in the working workbook,and create the address (using Address), but cannot extract the data in that file cell using Indirect, as Indirect does not access closed files, and opening so many files is not an option. Have we got Microsoft or is there a workaround? as this requirement must be common.
    :
  • To post as a guest, your comment is unpublished.
    Andre · 6 years ago
    Assuming your text function is in A1;

    1. Create a text string elsewhere which includes the equals sign eg.
    =CONCATENATE("@=",A1)
    2. This will give you @=10+20, which you can now copy (paste values) to wherever you want it.
    3. Finally, simply replace the @= with = using Ctrl+H as above.

    It's three steps, but it avoids VBA and doesn't take long.
  • To post as a guest, your comment is unpublished.
    rjdv · 6 years ago
    =VALUE(LEFT(A33;2))+VALUE(RIGHT(A33;2))
  • To post as a guest, your comment is unpublished.
    Hui · 6 years ago
    thanks ! It helps me a lot ! but i also want to know the inverse one !
    if there is a cell (text) '10+20'
    I want a cell to show the result 30
    I tried Rng.value or Rng.calcultate but don't work ,
    what should i do ?
  • To post as a guest, your comment is unpublished.
    César Vega · 6 years ago
    From Peru, is exactly what I needed, thank you very much
  • To post as a guest, your comment is unpublished.
    Andre · 7 years ago
    A quick way to convert a bunch of cell formulas to text is using the Find/Replace dialogue box.

    1. Select the cells containing the formulas.
    2. Press Ctrl+H
    3. Find what: =
    Replace with: '=
    4. Replace all

    This same trick is also quite useful when you need to work with formulas and not have them change relatively when you're moving them around or transposing them.
    • To post as a guest, your comment is unpublished.
      Malcolm · 5 years ago
      This is almost perfect, but I suggest using a different character, not the single quote.
      Turns out Excel has no simple way to change the '= back to = (kb/124739 explains this surprising fact).
      Almost any other character will do, a double quote appears to work, i.e. " , or any string, e.g. XXX=

      Also, notice that repeatedly pressing CtrlZ and CtrlY after the replace all will toggle the formulas on and off (so to speak) making it easy to confirm you notice all the formulas. ($0.10)
    • To post as a guest, your comment is unpublished.
      Malcolm · 5 years ago
      I Replace-All = to '=, works well to show the formulas, Ctrl Z (UNDO) then undoes the change, and repeating CtrlZ CtrlY toggles the change back and forth, making it easy to confirm I notice all the formulas.
      My question is, how do I change them back later? When I try to replace '= with = then I get the message "...cannot find any data to replace."
  • To post as a guest, your comment is unpublished.
    commet · 7 years ago
    Hello, could you please advise if it is possible to edit the text that is returned from formula? Is it even possible or rather ridiculous? :)
    e.g. I have VLOOKUP formula in column B, that returns text string based on value chosen in column A. I need to be able to edit the returned value in column B - have visible the returned text, not the formula, when I click on the cell.