Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here. Try this. The way you had it set up, any cell with a value of
for example, exactly two, wouldn't be changed. If you have an questions about what I did, please let me know. ALSO, I have no tested this, but it works in theory... - Pikus Dim grv As Long Dim lrow As Long Application.ScreenUpdating = False With Worksheets("Horizon_Measurements") lrow = .UsedRange.Row - 1 + .UsedRange.Rows.Count For grv = 1 To lrow If (Cells(grv, 19).Value) = 0 Then .Cells(grv, 19).Value = "N" ElseIf .Cells(grv, 19).Value 0 And .Cells(grv, 19).Value <= 2 Then .Cells(grv, 19).Value = "C" ElseIf .Cells(grv, 19).Value 2 And .Cells(grv, 19).Value <= 5 Then .Cells(grv, 19).Value = "F" ElseIf .Cells(grv, 19).Value 5 And .Cells(grv, 19).Value <= 15 Then .Cells(grv, 19).Value = "C" ElseIf .Cells(grv, 19).Value 15 And .Cells(grv, 19).Value <= 40 Then .Cells(grv, 19).Value = "M" ElseIf .Cells(grv, 19).Value 40 And .Cells(grv, 19).Value <= 90 Then .Cells(grv, 19).Value = "A" ElseIf .Cells(grv, 19).Value 90 Then .Cells(grv, 19).Value = "D" End If Next grv End With Application.ScreenUpdating = Tru -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Average a changing range of values | New Users to Excel | |||
Changing numerical values based upper and lower range | Excel Discussion (Misc queries) | |||
Changing column headers from alphabetical characters to numbers? | Excel Discussion (Misc queries) | |||
Filling in a table with changing range values | Excel Discussion (Misc queries) | |||
how to format only specific characters or numbers within each cellwithin a range of cells | Excel Discussion (Misc queries) |