Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find and Replace only values in Excel (not within formulas)

I have a spreadsheet pictured below that I'm trying to do a find and replace. For example, I'd like to replace any value in the Last column tht's (4.2800) with a different value.

When I just try and do a search for that value, it will correctly find all the values: enter image description here

However, every time I try to replace the value - it only gives me the option to search within the formulas:

enter image description here

I was wondering if anyone had any insight onto why this was happening? An image of my spreadsheet is below.

enter image description here

Example data:
+-----------+--------------+
|   Last    |  Settlement  |
+-----------+--------------+
|           |              |
|           |              |
|           |              |
|           |              |
|  (0.0062) |  (0.0075)    |
|           |              |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|           |              |
|           |              |
|           |              |
|           |              |
|           |              |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  (4.2700) |  (4.4200)    |
|           |              |
|           |              |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  59.8800  |  59.3400     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
|  54.9100  |  54.1700     |
like image 462
novawaly Avatar asked Dec 21 '25 04:12

novawaly


1 Answers

As far as I know, the Replace option has always had only the Formula option. Unfortunately, if you just select that option, you will not only replace the values (which are equivalent to formulas), but also any value that happens to be a part of a formula (as, for example, part of a cell reference).

One work-around:

  • Select the Find option with values and Find All
  • Switch to the Replace tab
    • The found references should still be listed
  • Enter your replace with value
  • Select the locations listed in the find all box
    • This limits the Replace option to those cells only
  • Replace all

Note If the values you are replacing are numbers, and not text strings, be sure to change the Find what: in the Replace dialog with the unformatted version of those numbers (what you would see in the formula bar or with the General format type).

So in your second screenshot, you can probably just hit Replace All but in other circumstances, you might want to select all those cells found (select a cell in the range and then ctrl+A)

Given your example data, you can just Replace with formulas and it will work, provided you use the non-formatted value:

Before

enter image description here

After

enter image description here

like image 69
Ron Rosenfeld Avatar answered Dec 24 '25 03:12

Ron Rosenfeld



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!