如何实现在Excel中:如果A1单元格为0,单元格A2 ="富&QUOT ;.否则,让用户指定输入 [英] How to implement in Excel: If cell A1 is 0, cell A2 = "foo". Else, let the user specify an input

查看:244
本文介绍了如何实现在Excel中:如果A1单元格为0,单元格A2 ="富&QUOT ;.否则,让用户指定输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是pretty的直线前进。如果某一个小区,例如A1,是值0,我想A2至包含任意值。否则,我希望用户能够进入自己的价值。第一部分是简单的:

It's pretty straight forward. If a certain cell, such as A1, is the value "0", I would like A2 to contain an arbitrary value. Otherwise, I would like the user to be able to enter their own value. The first part is easy:

A2 = IF(A1 =0,价值,)

然而,如果A 2是空的,并且用户编辑该值时,Excel presents公式本身进行编辑。

However, if A2 is empty, and the user goes to edit the value, Excel presents the formula itself to be edited.

有没有解决这个办法吗?

Is there any way around this?

推荐答案

您需要创建的 自定义数字格式 ,而不是一个公式。使用这样的事情#0;#0;值然后从A1复制的价值,A2和使用自定义数字格式的A2

A little different approach you need to create custom number format instead of a formula. Use something like this #.0;#.0;"Value" then copy the value from A1 to A2 and use the custom number format on A2.

这篇关于如何实现在Excel中:如果A1单元格为0,单元格A2 ="富&QUOT ;.否则,让用户指定输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆