简体   繁体   中英

Extract value of formula based cell through if statement

I have a sheet where a cell D2 has a formula ie

=ISNUMBER(SEARCH("exception",$A2))

It returns TRUE or FALSE. Now i have another cell where it should return the heading of the column if it has TRUE in it. So I tried :

=IF(D2="TRUE","Unhandled Exception")

But as it returns FALSE whatever I do, I think its because D2 has a formula in it so it is not returning the value even if TRUE is present.

I came across the same problem yesterday. Try changing your formula to

=IF(D2=TRUE,"Unhandled Exception")

Since the cell will have the value True, not the string "true"

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