IF中的多个参数的IF逻辑

时间:2017-07-21 01:52:14

标签: excel if-statement logical-operators

我希望有人可以帮我解决这个问题。在以下单元格中,我有以下值:

P8 = 9 
Q8 = 7 
R8 = 5 
S8 = 4 
T8 = 2

基本上,我想要一个回顾4个单元格的公式,并确定在单元格U8中输出1,2,3或4个单元格的趋势是否下降。您目前正在尝试以下不起作用的公式:

`=if(((T8<S8,S8<R8,R8<Q8,Q8<P8),"4"),((T8<S8,S8<R8,R8<Q8),"3"),((T8<S8,S8<R8),"2"),(T8<S8,"1"))`

1 个答案:

答案 0 :(得分:0)

Map<String, String> newMap = oldMap.entrySet() .stream() .filter(e -> keysForFiltering.contains(e.getKey())) .collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue().toString()));