another problem with deleting rows. Trying to delete rows that have a value <0.98 in cells column O. I've tried several data types to no avail. lost again.
Dim p As Double
For p = Range("o1" & Range("o" & Rows.Count).End(xlUp).Row).Rows.Count To 2 Step -1
If Cells(p, 15).Value = 0.9 Then Cells(p, 1).EntireRow.Delete Shift:=xlUp
Next p
The values in column "O" are derived from col L/col K. All of the results are between 0 and 1.25. I'm trying to delete all values < 0.98.
I discovered that I need to copy past values to the nue mbers in Column O and I have to trim the decimals down to 2. i.e., 0.98, 0.34, etc. But many of the numbers have a long string of decimals. For some reason I cannot trim the decimals down to two using the number format tool. If I directly type in numbers in column O with two decimals the code works. any thoughts?
Dim p As Double
For p = Range("o1" & Range("o" & Rows.Count).End(xlUp).Row).Rows.Count To 2 Step -1
If Cells(p, 15).Value = 0.9 Then Cells(p, 1).EntireRow.Delete Shift:=xlUp
Next p
The values in column "O" are derived from col L/col K. All of the results are between 0 and 1.25. I'm trying to delete all values < 0.98.
I discovered that I need to copy past values to the nue mbers in Column O and I have to trim the decimals down to 2. i.e., 0.98, 0.34, etc. But many of the numbers have a long string of decimals. For some reason I cannot trim the decimals down to two using the number format tool. If I directly type in numbers in column O with two decimals the code works. any thoughts?