amrinderminhas
New Member
- Joined
- May 24, 2016
- Messages
- 2
Hello to all,
I have a little problem in using summation of the values which in normal case results in adding all values but if any one of the cell contains a text (any text, not specific) then the summation should result to zero.
I have applied this formula for values in cells from A2 to D2
[FONT=Arial, sans-serif]=IF(COUNTIF(A2:D2,"F"),0,IF(COUNTIF(A2:D2,"D"),0,IF(COUNTIF(A2:D2,"I"),0,SUM(A2:D2))))[/FONT]
[FONT=Arial, sans-serif]The above formula works only if particular text is input (such as here for F, D, I), But i have no idea to how to change this formula for any text input or even any cell having anything else than numeric value, then the sum of all cells (containing that particular cell) should result zero
thanx for your cooperation[/FONT]
I have a little problem in using summation of the values which in normal case results in adding all values but if any one of the cell contains a text (any text, not specific) then the summation should result to zero.
I have applied this formula for values in cells from A2 to D2
[FONT=Arial, sans-serif]=IF(COUNTIF(A2:D2,"F"),0,IF(COUNTIF(A2:D2,"D"),0,IF(COUNTIF(A2:D2,"I"),0,SUM(A2:D2))))[/FONT]
[FONT=Arial, sans-serif]The above formula works only if particular text is input (such as here for F, D, I), But i have no idea to how to change this formula for any text input or even any cell having anything else than numeric value, then the sum of all cells (containing that particular cell) should result zero
thanx for your cooperation[/FONT]