willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 888
- Office Version
- 365
- Platform
- Windows
I have the below formula:
=IF(N2=0,"",IF(S2="0",N2-G2,N2-S2))
This formula works well however I want to add one more calculation. I want to subtract W2 from the result the above formula gives, there is just a couple of problems:
1. W2 could be blank
2. W2 could be 0
So I get #Value error when W2 is 0 or blank. Is there anyway to avoid this error? I only want to subtract W2 if there is a value above 0 and is not blank.
Thank you to anyone who can help me with this
Carla
=IF(N2=0,"",IF(S2="0",N2-G2,N2-S2))
This formula works well however I want to add one more calculation. I want to subtract W2 from the result the above formula gives, there is just a couple of problems:
1. W2 could be blank
2. W2 could be 0
So I get #Value error when W2 is 0 or blank. Is there anyway to avoid this error? I only want to subtract W2 if there is a value above 0 and is not blank.
Thank you to anyone who can help me with this
Carla