Put in A1:
=IF(Sheet1!A1="","",IF(Sheet1!A1>200,200,Sheet1!A1))
Copy A1 across to D1, fill down to D20
Then copy A120, & paste and overwrite A120 in Sheet1
As stated in my response, I assumed your source data was in Sheet1, within
A120. Sheet2 is just a helper sheet, which is used to examine Sheet1's
source data and change the values as required, using a corresponding range
filled with the formulas as given. Hope that clarifies ..
As stated in my response, I assumed your source data was in Sheet1, within
A120. Sheet2 is just a helper sheet, which is used to examine Sheet1's
source data and change the values as required, using a corresponding range
filled with the formulas as given. Hope that clarifies ..
Sub Make_200()
Dim cell As Range
For Each cell In Selection
If cell.Value > 200 Then
cell.Value = 200
End If
Next
End Sub
Gord Dibben MS Excel MVP
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.