N Na'il New Member Mar 17, 2022 #1 I want to use sum for rang of cells with some other conditions cells : 8x , 8 , 55x , (empty cell) =SUM(IF(FIND("x";C3:E3;1)<>0;LEFT(C3:E3;LEN(C3:E3)-1);C3:E3)) Not working!! The answer must be 71 by that functions Attachments ask.xlsx 8.8 KB · Views: 9 Last edited: Mar 17, 2022
I want to use sum for rang of cells with some other conditions cells : 8x , 8 , 55x , (empty cell) =SUM(IF(FIND("x";C3:E3;1)<>0;LEFT(C3:E3;LEN(C3:E3)-1);C3:E3)) Not working!! The answer must be 71 by that functions
pecoflyer Well-Known Member Mar 17, 2022 #2 Hello to you too Try =SUMPRODUCT(--(SUBSTITUTE(C3:E3;"x";""))) And BTW do NOT used merged cells, they are nothing but trouble
Hello to you too Try =SUMPRODUCT(--(SUBSTITUTE(C3:E3;"x";""))) And BTW do NOT used merged cells, they are nothing but trouble
B bosco_yip Excel Ninja Mar 17, 2022 #5 Try, to use Text function to force empty cell into 0 value. The formula become : =SUMPRODUCT(--SUBSTITUTE(TEXT(C3:F3,"0;@"),"x","")) Last edited: Mar 17, 2022
Try, to use Text function to force empty cell into 0 value. The formula become : =SUMPRODUCT(--SUBSTITUTE(TEXT(C3:F3,"0;@"),"x",""))