IF formula won't work with operator OR

qwzky

Board Regular
Joined
Jul 22, 2021
Messages
53
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
I just don't understand what is wrong with my formula. I just feel that it is absolutely correct, but somehow it won't work.

=IF(OR()) should be as simple as that:


Book1
ABCDEF
1Nr. crt.CuvântDiftongHelp ColumnTranscriere foneticăDiftongi
21alergărilea-ler-gă-ri-le[a-ler-gă-ri-le][a-ler-gă-ri-le]NU
32alergărilora-ler-gă-ri-lor[a-ler-gă-ri-lor][a-ler-gă-ri-lor]NU
43alergătoarea-ler-gă-toa-re[a-ler-gă-toa-re][a-ler-gă-toa-re]NU
54alergătoareaa-ler-gă-toa-rea[a-ler-gă-toa-rea][a-ler-gă-toa-rea]NU
65alergătoareia-ler-gă-toa-rei[a-ler-gă-toa-rei][a-ler-gă-toa-rei]NU
76alergătoarelea-ler-gă-toa-re-le[a-ler-gă-toa-re-le][a-ler-gă-toa-re-le]NU
87alergătoarelora-ler-gă-toa-re-lor[a-ler-gă-toa-re-lor][a-ler-gă-toa-re-lor]NU
98apreciația-pre-ci-ați[a-pre-či-ați][a-pre-či-ați]NU
109apreciațiia-pre-ci-a-ții[a-pre-či-a-ții][a-pre-či-a-ții]NU
1110apreciațilora-pre-ci-a-ți-lor[a-pre-či-a-ți-lor][a-pre-či-a-ți-lor]NU
1211apreciaua-pre-ci-au[a-pre-či-au][a-pre-či-au]NU
1312apreciazăa-pre-ci-a-ză[a-pre-či-a-ză][a-pre-či-a-ză]NU
1413apreciea-pre-ci-e[a-pre-či-e][a-pre-či-e]NU
1514apreciema-pre-ci-em[a-pre-či-em][a-pre-či-em]NU
Sheet1
Cell Formulas
RangeFormula
D2:D15D2=CONCATENATE("["&(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(C2,"ce","če"),"ci","či"),"ge","ĝe"),"gi","ĝi"),"ghe","G'e"),"ghi","G'i"),"x","ks")&"]"))
E2:E15E2=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(D2,"čea","ča"),"čio","čo"),"čiu","ču"),"ĝea","ĝa"),"ĝeo","ĝo"),"ĝiu","ĝu"),"G'eo","G'o"),"G'ea","G'a"),"G'iu","G'u"),"chi","K'i"),"che","K'e"),"c","k"),"či]","č]"),"čii","či")
F2:F15F2=IF(OR(E2="*ai*",E2="*au*",E2="*ea*",E2="*ei*",E2="*eo*",E2="*eu*",E2="*ia*",E2="*ie*",E2="*ii*",E2="*io*",E2="*iu*",E2="*oa*",E2="*oi*",E2="*ou*",E2="*ua*",E2="*ue*",E2="*ui*",E2="*uo*",E2="*uă*"),"DA","NU")
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
You cannot use wildcards like that, you would need to use isnumber combined with search.
 
Upvote 0
Another option would be to use countifs like
Excel Formula:
=IF(SUM(COUNTIFS(E2,{"*ai*","*au*","*ea*","*ei*","*eo*","*eu*","*ia*","*ie*","*ii*","*io*","*iu*","*oa*","*oi*","*ou*","*ua*","*ue*","*ui*","*uo*","*uă*"})),"DA","NU")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top