简体   繁体   中英

Dynamic formula help in Excel

Hi I am looking to use the following formula to determine if a numerical output for an indicator ( O2 ) meets a particular target ( Q2 ):

=IF(O2<>"",IF(O2>=Q2,"Met","Not Met"),"").

However, included within columns O & Q are different indicators and their corresponding targets, some targets are defined as met if above their target and some if below. Hence, the >= section of my formula above should be dynamic. Is there any way to reference a cell which will include either < or >= in the above formula to change the formula according to how the target should analysed?

An excerpt of my data:

我的数据摘录

Thanks

You can use COUNTIF function:

=IF(COUNTIF(B2,C2&D2),"Met","Not met")

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM