Excel: replace based on whole cell value

风格不统一 提交于 2020-02-07 03:23:51

问题


I would love to replace all cells that is 0 with blank. Normally I would use the Excel find & replace function (Ctrl + R):

Find what: 0
Replace with: 

But it would replace all 0s in all cells, so that 60 will become 0.

Is there a way to only replace the 0s if the cell is indeed 0?

Many thanks


回答1:


There is a function built into Find & Replace that will only edit a cell if the entire cell value matches your parameter.

Ex.

ex1

1) There is my starting data where you only want to replace the cells where the value = 0

2) Open up your find and replace and select the "Find entire cells only" option. Keep in mind that I took these screenshots on a Mac. On a PC I believe you will have to hit the Option button to open a dialogue box where you can make the selection.

ex2

3) After that you can just hit Replace all and you should be good to go!

ex3



来源:https://stackoverflow.com/questions/52952592/excel-replace-based-on-whole-cell-value

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!