[英]How to add decimals to dropdown lists from a cell range in Google Sheets
I have created a cost calculator on Google Sheets with data validation to display the values in columns Cost 1, Cost 2, Cost 3, etc. The only issue is, that when I click in the cell to display the dropdown list, it does 2 things:我在 Google 表格上创建了一个成本计算器,并进行数据验证,以显示成本 1、成本 2、成本 3 等列中的值。唯一的问题是,当我单击单元格以显示下拉列表时,它会显示 2事物:
How can I:我怎样才能:
(1) is not essential, but (2) is preferred. (1) 不是必需的,但 (2) 是优选的。
It's worth mentioning that when an option is selected from the dropdown list, both A and B is displayed in the cell, this is about what's displayed in the dropdown.值得一提的是,当从下拉列表中选择一个选项时,单元格中会同时显示 A 和 B,这与下拉列表中显示的内容有关。
Thank you.谢谢你。
Cost 1![]() |
Cost 2![]() |
Cost 3![]() |
Selected Cost![]() |
---|---|---|---|
$20.00 ![]() |
$35.50 ![]() |
$50 ![]() |
$20.00 ![]() |
format your range F6:H6 as Text.将您的范围 F6:H6 格式化为文本。 this way you can add $ symbol and decimals and if your dropdown is used in further calculation you can regex-out the symbol and convert it back into value
这样您可以添加 $ 符号和小数,如果您的下拉列表用于进一步计算,您可以正则表达式输出符号并将其转换回值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.