Stevekgreer
New Member
- Joined
- Apr 7, 2019
- Messages
- 4
I am running Excel 2003. This formula keeps coming up "invalid" and I am unable to find my mistake. ANY help is greatly appreciated!!
=IF(AND(ISBLANK(E15),ISBLANK(E17),ISBLANK(E18)),"",IF(AND(ISNUMBER(E15),ISNUMBER(E17),ISNUMBER(E18)),E15+E17+E18,
IF(AND(ISNUMBER(E15),ISNUMBER(E17),ISBLANK(E18)),E15+E17,IF(AND(ISNUMBER(E15),ISBLANK(E17),ISNUMBER(E18)),E15+E18,
IF(AND(ISBLANK(E15),ISBLANK(E17),ISNUMBER(E18)),E18,IF(AND(ISBLANK(E15),ISNUMBER(E17),ISNUMBER(E18)),E17+E18,
IF(AND(ISBLANK(E15),ISNUMBER(E17),ISBLANK(E18)),E17,"")))))))
I have run the "Insert - Function" check, and all my checks come up ok - no red invalid flags. I've checked my tautology and I think I've covered all the bases. I have 3 cells that I have to check. Each cell can either be blank or contain a value. I need to isolate the cell(s) with the value(s) and add them together for the result, or, if only one cell has a value, post that value, or if none have values, leave the target empty.
I know it's a lot of nested if's, so feel free to give this on a pass, or copy & past and go for the ring.
Thanks in advance for any and all help
=IF(AND(ISBLANK(E15),ISBLANK(E17),ISBLANK(E18)),"",IF(AND(ISNUMBER(E15),ISNUMBER(E17),ISNUMBER(E18)),E15+E17+E18,
IF(AND(ISNUMBER(E15),ISNUMBER(E17),ISBLANK(E18)),E15+E17,IF(AND(ISNUMBER(E15),ISBLANK(E17),ISNUMBER(E18)),E15+E18,
IF(AND(ISBLANK(E15),ISBLANK(E17),ISNUMBER(E18)),E18,IF(AND(ISBLANK(E15),ISNUMBER(E17),ISNUMBER(E18)),E17+E18,
IF(AND(ISBLANK(E15),ISNUMBER(E17),ISBLANK(E18)),E17,"")))))))
I have run the "Insert - Function" check, and all my checks come up ok - no red invalid flags. I've checked my tautology and I think I've covered all the bases. I have 3 cells that I have to check. Each cell can either be blank or contain a value. I need to isolate the cell(s) with the value(s) and add them together for the result, or, if only one cell has a value, post that value, or if none have values, leave the target empty.
I know it's a lot of nested if's, so feel free to give this on a pass, or copy & past and go for the ring.
Thanks in advance for any and all help