Leaving a value unchanged (IF statement)

jenniesc

New Member
Joined
Jun 17, 2009
Messages
7
Hi!

I have a very simple IF formula but I want the False statement to leave the value in the cell unchanged.

Any one??!

Cheers
 
Not sure exactly what you are asking. Could you provide an example?

This would evaluate to true or else blank, not sure if that's what you mean...


=if(A1="yes",true,"")
 
Upvote 0
Thanks for your reply.
What I am trying to do is have a results page. I am running a LP model in one sheet and I want the results from the model to be inputted into a results sheet.
I then went to make sure those results remain there when I return to the LP model and run for different results. These results will then be picked up by a separate results table and must remain there when the LP model is run again.

=IF($A$2="Season 2",('Diet'!C21),(""))
Season 2 is the name of the results that will change. But if A2 is not season 2 I want the cell to keep it's contents (be it blank or a number) and not return blank"".

Hope this is clear and there is a way somehow!

Many Thanks
 
Upvote 0
Thanks for your reply.
What I am trying to do is have a results page. I am running a LP model in one sheet and I want the results from the model to be inputted into a results sheet.
I then went to make sure those results remain there when I return to the LP model and run for different results. These results will then be picked up by a separate results table and must remain there when the LP model is run again.

=IF($A$2="Season 2",('Diet'!C21),(""))
Season 2 is the name of the results that will change. But if A2 is not season 2 I want the cell to keep it's contents (be it blank or a number) and not return blank"".

Hope this is clear and there is a way somehow!

Many Thanks

Does this work: =IF($A$2="Season 2",'Diet'!C21,A1)
 
Upvote 0
Thanks for your reply.
What I am trying to do is have a results page. I am running a LP model in one sheet and I want the results from the model to be inputted into a results sheet.
I then went to make sure those results remain there when I return to the LP model and run for different results. These results will then be picked up by a separate results table and must remain there when the LP model is run again.

=IF($A$2="Season 2",('Diet'!C21),(""))
Season 2 is the name of the results that will change. But if A2 is not season 2 I want the cell to keep it's contents (be it blank or a number) and not return blank"".

Hope this is clear and there is a way somehow!

Many Thanks

Does this work: =IF($A$2="Season 2",'Diet'!C21,A2)
 
Upvote 0
Hi,

I tried that on a similar cell but my date (which I want to remain unchanged) goes to 1/00/00. Any suggestions?

Thanks
 
Upvote 0
Hi,

I tried that on a similar cell but my date (which I want to remain unchanged) goes to 1/00/00. Any suggestions?

Thanks

The only way I could duplicate what you have is if the IF Statement is referencing a blank cell. Do you have $ signs as above?
 
Upvote 0

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