货币根据货币符号匹配格式_货币符号的条件格式

在Excel 2010及以上版本中,你可以使用条件格式来根据选定的国家/地区的货币符号自动调整价格显示。本文介绍了如何设置国家列表、调整价格、应用条件格式,并提供了测试和下载样本文件的资源。
摘要由CSDN通过智能技术生成

货币根据货币符号匹配格式

If you sell products in several countries, you might want to show the prices in different currencies. In Excel 2010 and later, you can use conditional formatting for currency symbol changes. See how to use those settings, you can change the number format based on a cell's value, to show a specific currency for the country that's selected.

如果您在多个国家/地区销售产品,则可能需要以其他货币显示价格。 在Excel 2010和更高版本中,可以对货币符号更改使用条件格式 。 了解如何使用这些设置,您可以根据单元格的值更改数字格式,以显示所选国家/地区的特定货币。

Excel 2010及更高版本 (Excel 2010 and Later)

The technique show here will only work in Excel 2010 and later versions. Conditional Formatting for numbers was available in Excel 2007, but didn't work correctly. (Thanks Oli!)

此处显示的技术仅在Excel 2010和更高版本中有效。 Excel 2007中提供了数字的条件格式设置,但无法正常工作。 (谢谢奥莉!)

CondFormatNum05

设置国家列表 (Set up the Country List)

On a separate worksheet, create a list of countries, with each country's exchange rate and currency. Use a VLOOKUP formula to return the exchange rate and currency for the selected country.

在单独的工作表上,创建国家/地区列表,以及每个国家/地区的汇率和货币。 使用VLOOKUP公式返回所选国家/地区的汇率和货币。

Cell G1 is named ExchRate and G2 is named CurrSel.

单元格G1命名为ExchRate,单元格G2命名为CurrSel。

CondFormatNum03

调整价格 (Adjust the Prices)

In the price list, multiply the base price by the selected country's exchange rate, to get the adjusted price for each product. The adjusted price will show up in the order sheet.

在价格表中,将基本价格乘以所选国家/地区的汇率,以获取每种产品的调整后价格。 调整后的价格将显示在订单中。

CondFormatNum04

应用条件格式 (Apply the Conditional Formatting)

Next, you'll format the cells on the order form, so the currency symbol changes, depending on the country selected.

接下来,您将格式化订单上的单元格,因此货币符号会根据所选国家/地区发生变化。

  • On the Order sheet, select the currency cells -- D4:E10 in this example.

    在订单表上,选择货币单元格-在此示例中为D4:E10。
  • On the Ribbon's Home tab, click Conditional Formatting, then click New Rule

    在功能区的“主页”选项卡上,单击“条件格式”,然后单击“新规则”。
  • In the New Formatting Rule dialog box, select 'Use a formula to determine which cells to format'

    在“新格式设置规则”对话框中,选择“使用公式确定要格式化的单元格”
  • In the 'Format values where this formula is true' box, type a formula that checks the selected currency (CurrSel).

    在“设置此公式为真的值的格式”框中,键入一个检查所选货币的公式(CurrSel)。
CondFormatNum02
  • Click Format, and in the Format Cells dialog box, select the Currency format, and the applicable symbol.

    单击格式,然后在设置单元格格式对话框中,选择货币格式和适用的符号。
CondFormatNum01
  • Click OK to close the dialog boxes.

    单击“确定”关闭对话框。

测试条件格式 (Test the Conditional Formatting)

To test the conditional formatting, select a different country from the data validation drop down list.

要测试条件格式,请从数据验证下拉列表中选择其他国家。

The pricing and currency symbol for the selected country will be displayed.

将显示所选国家/地区的价格和货币符号。

CondFormatNum06

下载样本文件 (Download the Sample File)

To see the formulas and conditional formatting, you can download the sample file from the Contextures website.

若要查看公式和条件格式,可以从Contextures网站下载示例文件

In the Conditional Formatting section, look for: CF0003 - Conditional Formatting for Currency Symbol

在“条件格式”部分中,查找: CF0003-货币符号的条件格式

NOTE: Although you can open the file in some earlier versions of Excel, the conditional formatting will only work correctly in Excel 2010.

注意:尽管您可以在某些早期版本的Excel中打开文件,但条件格式仅在Excel 2010中可以正常使用。

观看视频 (Watch the Video)

To see the steps for applying conditional formatting for currency, watch this shortvideo.

要查看对货币应用条件格式的步骤,请观看此短片。

演示地址

翻译自: https://contexturesblog.com/archives/2010/06/23/conditional-formatting-for-currency-symbol/

货币根据货币符号匹配格式

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值