Replace whole cell with formula if it contains particular string

gladiator

I want to Replace whole cell with a formula if it contains particular string (searchText) , but find and replace is not just replacing searchText with formula and not removing other contents of cell.

Can anyone help.

ttaaoossuu

Use asterisk to mask other cell contents. So you have to search and replace the following line: *searchText*.

enter image description here

In VBA that would look like this:

Cells.Replace What:="*searchText*", Replacement:="=1+1"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

If a cell contains a certain character replace the whole cell in r

From Dev

Replace the whole string if it contains specific letters/character

From Dev

Write rows to a CSV file if a cell contains a particular string value

From Dev

Convert the cell to the formula with replace

From Dev

Replace string with a particular format

From Dev

Replace the particular part of string?

From Dev

replace a particular word in string

From Dev

Excel - Replace cell link in formula with value in cell

From Dev

How to replace a matching string if n+2 line contains a particular string

From Dev

How to delete rows from excel files if a cell in a particular column contains the string of array?

From Dev

Contains a string in a cell

From Dev

Checking if a string contains a particular word

From Dev

Check if a String contains particular characters

From Dev

If particular cell is NOT BLANK copy down FORMULA from above cell

From Dev

Using one cell's value in a formula to look up a particular cell

From Dev

Using "If cell contains #N/A" as a formula condition.

From Dev

How to determine if a cell formula contains Constants?

From Dev

Run formula only If cell contains a value

From Dev

How to determine if a cell formula contains Constants?

From Dev

How to refer within a formula to a cell that contains a wildcard?

From Dev

Reference a cell as a string within a formula

From Dev

Formula to ignore or treat as empty a cell that contains another formula with no result?

From Dev

Excel - Overflow the text of a cell to an adjacent cell that contains a formula

From Dev

Differentiate between an empty cell and a cell which contains a formula

From Dev

Python regex replace whole string

From Dev

Pandas replace not replacing the whole string

From Dev

Excel - replace a formula cell with its result automatically

From Dev

Excel - Replace offset formula with actual cell reference

From Dev

Excel VBA Replace cell with answer from formula

Related Related

  1. 1

    If a cell contains a certain character replace the whole cell in r

  2. 2

    Replace the whole string if it contains specific letters/character

  3. 3

    Write rows to a CSV file if a cell contains a particular string value

  4. 4

    Convert the cell to the formula with replace

  5. 5

    Replace string with a particular format

  6. 6

    Replace the particular part of string?

  7. 7

    replace a particular word in string

  8. 8

    Excel - Replace cell link in formula with value in cell

  9. 9

    How to replace a matching string if n+2 line contains a particular string

  10. 10

    How to delete rows from excel files if a cell in a particular column contains the string of array?

  11. 11

    Contains a string in a cell

  12. 12

    Checking if a string contains a particular word

  13. 13

    Check if a String contains particular characters

  14. 14

    If particular cell is NOT BLANK copy down FORMULA from above cell

  15. 15

    Using one cell's value in a formula to look up a particular cell

  16. 16

    Using "If cell contains #N/A" as a formula condition.

  17. 17

    How to determine if a cell formula contains Constants?

  18. 18

    Run formula only If cell contains a value

  19. 19

    How to determine if a cell formula contains Constants?

  20. 20

    How to refer within a formula to a cell that contains a wildcard?

  21. 21

    Reference a cell as a string within a formula

  22. 22

    Formula to ignore or treat as empty a cell that contains another formula with no result?

  23. 23

    Excel - Overflow the text of a cell to an adjacent cell that contains a formula

  24. 24

    Differentiate between an empty cell and a cell which contains a formula

  25. 25

    Python regex replace whole string

  26. 26

    Pandas replace not replacing the whole string

  27. 27

    Excel - replace a formula cell with its result automatically

  28. 28

    Excel - Replace offset formula with actual cell reference

  29. 29

    Excel VBA Replace cell with answer from formula

HotTag

Archive