In my spreadsheet I have numbers in three cells. In the first cell, say I have the number 4,000. I need a formula that will look at the number in the second cell and see if the number in the second cell is greater than, less than or equal to 4,000, I need the formula to return only 4,000 or whatever the lesser number may be from the second cell. If the number in the second cells satisfies the 4,000, then I don't need it to look at the third cell, but if the number in the second cell is less than 4,000 then I need the formula to look at the third cell and return either the 4,000 or whatever amount is needed after looking at the second cell to satisfy the 4,000. I know it's a nested IF statement, but I can't figure out how to make it work.