Replace cell with "0" value

zaidan

New Member
Joined
Sep 18, 2008
Messages
34
dear all,
I want to replace the cells that contain only 0 with 5000 and the keep the other cell that have 0 (i.e 6000, 7000), example :
Data :
6000
7000
0
9000
0

The result i want : (just replace the cell A3 and A5)
6000
7000
5000
9000
5000

Thank for any help
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Use Excel's Replace function. I'm not sure what version of Excel you are using, so I'll just give you the keyboard shortcut... select your column of values and then press CTRL+H to bring up the Replace dialog box. Type 0 in the "Find what" field and 5000 in the "Replace with" field, then click the "Options>>" button to reveal all the available options (assuming they are not already displayed) and make sure the "Match entire cell contents" checkbox is checked, then click the "Replace All" button.
 
Upvote 0
Dear Rick Rothstein,

Today i learn a new trick in Excel, thanks for this answer
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,865
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top