Apr 30 2021 05:25 AM
Apr 30 2021 05:31 AM
Is "gas, gift, entertainment" a single value in cell B2, or do you mean that B2 contains one of those words?
Apr 30 2021 06:16 AM
=IF(OR(B2={"gas", "gift", "entertainment"}),A4-B3,IF(OR({"direct deposit", "atm deposit"}),B4+B3,""))
Apr 30 2021 06:16 AM - edited Apr 30 2021 06:18 AM
If I'm not mistaken, given that you were just giving examples, the actual criteria lists for debits/credits will be longer and more varied.
And that could mean that this approach is potentially setting you up for frustration and difficulty.
My suggestion would be to have:
=IF(B3="Debit",D2-C3,D2+C3)
Or something to that effect. That would be a far more robust and reliable method. Less "clever" perhaps, but "clever" has a way of coming back to bite.