简体   繁体   English

excel-隐藏公式以便于输入

[英]excel - hide formula for easier input

I have a cell formula that's working mixing both text and an If statement, example: 我有一个单元格公式正在混合文本和If语句,例如:
="USER_INPUT" & IF(F2="Asia/Singapore","+08:00","+02:00")
output: USER_INPUT+8:00 输出: USER_INPUT+8:00
I'm not the one that will use this formula so I'd like to avoid having the user to search for the "USER_INPUT" in the whole formula in order to prevent mistakes. 我不是会使用此公式的人,因此我想避免让用户在整个公式中搜索"USER_INPUT"以防止出错。

Is it possible for the user just to type whatever he want in the cell wihout having the whole formula behind? 用户是否可以在不包含整个公式的情况下在单元格中键入他想要的任何内容? example of cell input I want: 我想要的单元格输入示例:

="USER_INPUT" & formula

Is there any reason why the cell containing this formula cannot be in another location which the user does not need to edit? 是否有任何原因导致包含该公式的单元格不能位于用户不需要编辑的其他位置? So I am suggesting that you have a highlighted cell somewhere for user input (say G2 for the sake of argument), and then in another cell you have the following formula: 因此,我建议您在某处有一个突出显示的单元格供用户输入(例如,为论证而使用G2 ),然后在另一个单元格中具有以下公式:

=G2 & IF(F2="Asia/Singapore","+08:00","+02:00")

Your display cell can then refer to the cell containing the above formula. 然后,您的显示单元格可以引用包含上述公式的单元格。 You could even take things a step further and lock the cells which contain the actual formulas, to make sure your users don't accidentally change them. 您甚至可以更进一步,并锁定包含实际公式的单元格,以确保您的用户不会意外更改它们。 Follow the link below for information on how to do that. 请点击下面的链接以获取有关操作方法的信息。

https://support.microsoft.com/en-sg/help/214081/xl-how-to-lock-individual-cells-in-a-worksheet https://support.microsoft.com/zh-CN/help/214081/xl-how-to-lock-individual-cells-in-a-worksheet

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM