Share via

EXCEL IF FUNCTION

Anonymous
2017-03-16T22:34:36+00:00

Trying to do an excel formula that gives me the option to say, if cell C16 has a "Yes" then subtract $10 from cell B16, if cell C16 has "No" then subtract zero from B16.

I've tried this formula and keep getting errors message. =if(C16="Yes",B16-10),(if(C16="No",B16-0)

Help would be appreciated

Mary Lou Crawford

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Ashish Mathur 101.9K Reputation points Volunteer Moderator
    2017-03-16T23:13:12+00:00

    Hi,

    Try this

    =IF(C16="Yes",B16-10,B16)

    Ensure that C16 has a Yes or a No only.

    Was this answer helpful?

    0 comments No comments