excel - Not Enough Arguments For an IF Statement...But There Are -
when run equation in excel tells me there 1 argument if statement. not sure why saying when have 3 arguments. within or statement have 2 different , statements. works fine if rid of second , statement. did mess parentheses somewhere? not sure wrong. appreciated. thanks!
=if(or(arrayformula(sum(countif(b19:o19,{"i","ip","ia","it","ih","a","aa","ap","at","ah","x","r","rt","rx","rp","rh","k","kt","e","et","al","hl","tv*","ffsl","adm*"})))=10, and(arrayformula(sum(countif(b19:o19,{"r-10","rx-10*","rp-10","rt-10*","rh-10","i-10","ia-10","ip-10","it-10","ih-10","x-10*","a-10*","at-10"})))=4, arrayformula(sum(countif(b19:o19,{"i","ip","ia","it","ih","a","aa","ap","at","ah","x","r","rt","rx","rp","rh","k","kt","e","et","al","hl","tv*","ffsl","adm*"})))=5),and(arrayformula(sum(countif(b19:o19,{"hl-9","x-9","n-9","e-9","j-9","jh-9","nh-9","eh-9"})))=8,arrayformula(sum(countif(b19:o19,{"i","ip","ia","it","ih","a","aa","ap","at","ah","x","r","rt","rx","rp","rh","k","kt","e","et","al","hl","tv*","ffsl","adm*"})))=1) ,"80 hours","error"))
this question makes me think "if there online excel formula beautifier".
oh look, there is.
if copy-and-paste beautifier code below. can see parameters "80 hours", "error" parameters of first arrayformula function, not if function.
=if( or( arrayformula( sum( countif( b19:o19, { "i", "ip", "ia", "it", "ih", "a", "aa", "ap", "at", "ah", "x", "r", "rt", "rx", "rp", "rh", "k", "kt", "e", "et", "al", "hl", "tv*", "ffsl", "adm*" arrayrowstop) arraystop) ) ) ) = 10, and( arrayformula( sum( countif( b19:o19, { "r-10", "rx-10*", "rp-10", "rt-10*", "rh-10", "i-10", "ia-10", "ip-10", "it-10", "ih-10", "x-10*", "a-10*", "at-10" arrayrowstop) arraystop) ) ) ) = 4, arrayformula( sum( countif( b19:o19, { "i", "ip", "ia", "it", "ih", "a", "aa", "ap", "at", "ah", "x", "r", "rt", "rx", "rp", "rh", "k", "kt", "e", "et", "al", "hl", "tv*", "ffsl", "adm*" arrayrowstop) arraystop) ) ) ) = 5 ), and( arrayformula( sum( countif( b19:o19, { "hl-9", "x-9", "n-9", "e-9", "j-9", "jh-9", "nh-9", "eh-9" arrayrowstop) arraystop) ) ) ) = 8, arrayformula( sum( countif( b19:o19, { "i", "ip", "ia", "it", "ih", "a", "aa", "ap", "at", "ah", "x", "r", "rt", "rx", "rp", "rh", "k", "kt", "e", "et", "al", "hl", "tv*", "ffsl", "adm*" arrayrowstop) arraystop) ) ) ) = 1 ), "80 hours", "error" ) )
Comments
Post a Comment