AM

Hi

I want to create a spreadsheet report and therefore use IF() formula.

My question, is it possible to use IF() formula to check a cell for a certain text or word and if yes then state 1 if not state 0?

e.g. IF(A1="text";1;0)

BR

Alex

 

by Ralf Werner Munkes
Posted on Thu, 05/07/2015 - 16:18

Yes, of course, that's possible. Please see the example below. If you change the value in cell B4 to "grey", then you will see the text "it's raining" in cell C4.

It also shows that if the condition is evaluated as true, then the second parameter is use as the result of the If-statement. If it is evaluated as false, then the third parameter is taken.

0
by Hisham Badri
Posted on Wed, 04/27/2022 - 15:46

Could you please send us the correct syntax

0
by Veronika Ellermann
Posted on Tue, 05/03/2022 - 16:30

In reply to by hishambadri

Hi Hisham,

with Koen's help, the syntax is easy :)

=if(QUERY_ATTRIBUTE_VALUE(YOURCELL;ATTRIBUTE)=="SEARCHTEXT";1;0)

So, to give you an example, it would look like this:

B2 = item type

C1= attribute

=IF(QUERY_ATTRIBUTE_VALUE(B2;C1)=="Perfect hint from Koen";1;0)

Hope this helps.

Best,

Veronika

 

0
by Veronika Ellermann
Posted on Fri, 04/29/2022 - 13:53

Hi Hisham,

As far as I know, the if formula can only handle < and > but = does not work. Or at least I was never able to get it working^^

Hope this helps- or maybe someone else has a good idea/ knows more :)

Best,

Veronika

0
by Koen Maes
Posted on Fri, 04/29/2022 - 16:44

To compare, you can use '==' (equal) or '!=' (not equal) or you could use the NOT-function

0
by Veronika Ellermann
Posted on Tue, 05/03/2022 - 16:22

In reply to by Koen Maes

Hi Koen,

I appreciate you comment a lot! You really solved a mystery (because I never understand why "=" would not work - and it wasn't listed in the help).

Thanks a lot for that - you made my day^^

Best,

Veronika

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock