I am trying to figure out how to achieve the following in spread sheet am working on. I would like one cell to represent a value based the values of two other cells.

1. if I10=4 then K9 should be the value of I9+1

2. otherwise, K9 should reflect the value of I9


I can't seem to find the correct formula for this in Excel. any help would be greatly appreciated.