English 中文(简体)
Excel办法问题
原标题:Excel Formula Question
  • 时间:2010-12-15 16:16:59
  •  标签:
  • excel

我如何写上意味着这一点的公式:如果X<999.00。 然后乘以0%的<代码>X >$100>,但< 1499.00,然后乘以10%的<代码>X > 1499.00但< 1999.00< <>/code>,然后乘以15%的<代码>X > 1999.00,然后乘以20%?

最佳回答

我认为这符合你的问题的规格,但有些内容含糊不清(例如,在99.00至1000.00美元之间,所有条件都包含在内),因此我猜测你的真正意图。

这一公式将回馈:

  • 0 if X < $1000
  • 10% of X if X >= $1000 and X < $1500
  • 15% of X if X >= $1500 and X < $2000
  • 20% of X in all other cases

=IF(X < 1000, 0, IF(X < 1500, X * 0.1, IF(X < 2000, X * 0.15, X * 0.2)))
问题回答

暂无回答




相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签