Jun 15 2023 02:39 AM
I am trying to use find and replace but the version of the apostrophe that is in the data (I need to get rid of that to do tests) is not recognised by the apostrophe that you type into the Find box. Does anyone know a solution to this challenge? Thank you.
Jun 15 2023 02:45 AM
One way to remove an apostrophe in Excel is to select all the cells with data, then click Ctrl + H or navigate to Home >> Editing >> Find & Select >> Replace.
In the Find what field, insert an apostrophe, and leave the Replace with field empty.
Another approach is to use wildcard characters as comparison criteria for text filters, and when you’re searching and replacing content.
Jun 15 2023 02:51 AM
SolutionDoes it work if you copy the apostrophe that is in the data and paste it into the find box?
=SUBSTITUTE(A2,"'","")
This formula seems to work in my sheet. If the apostrophe that i type didn't work i'd try to copy the apostrophe that is in the data and paste it into the formula.
Jun 15 2023 02:52 AM
Jun 15 2023 02:56 AM
Jun 15 2023 03:17 AM
Jun 15 2023 05:00 AM
=IF(ISTEXT(A2),1,A2)
Does this return the intended result? If you want to return the results in range A2:F12 you can copy range A14:F24 and paste only the values into range A2:F12.
Jun 15 2023 05:15 AM
Jun 15 2023 05:36 AM
=IF(ISTEXT(A2),1,"")
This is the adapted formula since there are empty cells or cells with text. The formula is in cell A14 and filled across the range A14:F24. Filling the formula across this range changes the referenced cell. In the attached file you can select any cell in range A14:F24 and see which cell is referenced.
For example:
In cell A14 the formula is =IF(ISTEXT(A2),1,"")
In cell A15 the formula is =IF(ISTEXT(A3),1,"")
In cell B14 the formula is =IF(ISTEXT(B2),1,"")
Jun 15 2023 06:36 AM
Jun 15 2023 07:16 AM
There is actually an easier solution which i've just come across.
You can select the range which has the empty cells and text cells and within the find and replace screen you can choose:
Find what: *
Replace with: 1
and then click "replace all" ("Alle ersetzen" in the screenshot).
Find what is "Suchen nach" in the screenshot.
Replace with is "Ersetzen durch" in the screenshot.
Jun 15 2023 08:40 AM
Jun 15 2023 02:51 AM
SolutionDoes it work if you copy the apostrophe that is in the data and paste it into the find box?
=SUBSTITUTE(A2,"'","")
This formula seems to work in my sheet. If the apostrophe that i type didn't work i'd try to copy the apostrophe that is in the data and paste it into the formula.