irfananeeza
Active Member
- Joined
- Feb 15, 2008
- Messages
- 322
- Office Version
-
- 2010
Folks,
I have created the following IF formula. Wondering, if there is a way to rewrite the same IF formula in a shorter way or anyother short formula that can accomplish the same task. The reason I am asking I still have to add 6 more conditions in the same manner in this formula. Which If I add will make the formula way tooo long and tedious. I, even, wonder if I can add so many if conditions. Anyway, I just want to brief this formula.
Thanks to everyone in advance.
=IF(W1=0,"balance is zero",IF(AND(W1>0,G1<0),W1/G1,IF(AND(W1>0,J1<0),W1/J1,IF(AND(W1>0,M1<0),W1/M1,IF(AND(W1>0,N1<0),W1/N1,IF(AND(W1>0,O1<0),W1/O1,IF(AND(W1>0,P1<0),W1/P1,"Question")))))))
I have created the following IF formula. Wondering, if there is a way to rewrite the same IF formula in a shorter way or anyother short formula that can accomplish the same task. The reason I am asking I still have to add 6 more conditions in the same manner in this formula. Which If I add will make the formula way tooo long and tedious. I, even, wonder if I can add so many if conditions. Anyway, I just want to brief this formula.
Thanks to everyone in advance.
=IF(W1=0,"balance is zero",IF(AND(W1>0,G1<0),W1/G1,IF(AND(W1>0,J1<0),W1/J1,IF(AND(W1>0,M1<0),W1/M1,IF(AND(W1>0,N1<0),W1/N1,IF(AND(W1>0,O1<0),W1/O1,IF(AND(W1>0,P1<0),W1/P1,"Question")))))))