HM14
HM14

Reputation: 709

how to change cells to a number if it is greater than a number in Excel

I have an Excel spreadsheet with a column of numbers in it. I want to tell it that if a cell in that column is greater than -9999 then I want it to set the value of that cell to -9999. How do I do this in Excel?

Upvotes: 0

Views: 2389

Answers (1)

Scott Craner
Scott Craner

Reputation: 152585

You would use MIN:

=MIN(A1,-9999)

enter image description here

Upvotes: 1

Related Questions