来自多个条件的值数组 [英] Array of value from multiple conditions

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

问题描述

我想从多个条件中返回一个值数组.当前公式设置为接受一个条件.

I wanna return an array of value from multiple conditions. Currently formula is set to accept one condition.

https://docs.google.com/spreadsheets/d/1pgVlBWYKWtT6AEPyRtZmAYdOXBCjYG_B7pdlvCqYq0A/edit?usp=sharing

The desired result is showed in the ad hoc worksheet

Edit : initial problem solved by player0. Thanks !

Previous post

I'm using curly brace to return an array of value with the IF formula. This works well. I wanted to use IFS function because i wanted to use more conditions. With a similar table, only the 1st number is returned form the array. I don't understand why. https://docs.google.com/spreadsheets/d/1pgVlBWYKWtT6AEPyRtZmAYdOXBCjYG_B7pdlvCqYq0A/edit?usp=sharing Thanks !

解决方案

delete range E2:L and use this in E2:

=ARRAYFORMULA(TRANSPOSE(SPLIT(TRANSPOSE(QUERY(
 IF((E1:L1=B2:B11)+(E1:L1=C2:C11)+(E1:L1=D2:D11); 
 "1;2;3;4;5;6;7"; ";");;9^9)); ";"; 1; 0)))

这篇关于来自多个条件的值数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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