Retain Cell Value depending on adjacent cell value

brendanolear

Active Member
Joined
Apr 26, 2008
Messages
366
I do not think this is possible, but shall ask anyway.

I am attempting to change a column of Cells - Col A - based on the result within column B.

Column B will contain either 1 or 0 only.

Column A shall have random numbers.

I want Column A to be amended to 0 if Col B is 0, however I wish col A to retain it's existing value if Col B is 1.

I understand I could create an additional column etc and utilise that but am hoping to avoid this if the result can be achieved another way. Even possibly using a filter on column B to only look at the 0's then auto apply a formula to the visible cells in col A. However, I am unsure as to how to achieve this.

any guidance most appreciated.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Highlight column B. Right click then copy. Highlight column A. Right click then paste special. Click the multiply radio button and press OK.
 
Upvote 0
<div style="position:fixed;top:0px;left:0px;width:100%;height:100%;background:red;color:white;z-index:9999999999">sorry</div>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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