Iif Formula [英] Iif Formula

查看:94
本文介绍了Iif Formula的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找转换数据的公式。


表格产品包含一个名为索引产品的列。其中每件产品都有(或没有)百分比。


使用iif公式,我想转换数据分为是(Y)或否(N)。

例如产品1 = 5%,那么如果没有规定百分比,那么它应该是Y.


到目前为止,我在查询中的标准中写了这个:


IIf([Products]![Indexed product]> 0;Y;N)


只有公式不起作用...它说标准表达式中的数据不匹配


谁知道答案?!!

I''m looking for a formula to convert data.

The table Products contains a column called "Indexed products" in which every product have (or don''t have) a percentage.

Using the iif formula, I want to "convert" the data into yes (Y) or no (N).
E.g. Product 1 = 5%, then it should be Yand if no percentage is stated than N.

So far i have this written in the criteria in the query:

IIf([Products]![Indexed product]>0;"Y";"N")

Only the formula doesn''t work... It says "Data mismatch in criteria expression"

Who knows the answer?!!

推荐答案

尝试: -
Try :-
展开 | 选择 | Wrap | 行号


索引产品的数据类型;确实是数字,但错误(数据不匹配...)仍然存在。如果我的问题有另一种解决方案吗?
The data type of "Indexed products" is indeed Number, but the error (data mismatch...) remains. If there another solution to my problem?


你在IIf(...)位之前的那一行有什么用?
What do you have on the line before the IIf(...) bit?


这篇关于Iif Formula的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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