Macro for finding values
Posted by Chris Rock on September 10, 2001 2:15 PM
I've got a sheet with values on it, formatted to show no decimal places.
I'd like to write a macro that can look at my data, find the cells containing values less than 1, and applying a ROUNDUP formula.
The values are referenced from another sheet, so the formula would look like this: =ROUNDUP('SheetName'!A1,0).
Can someone help me? I'm not sure how the code is written, but I think the logical steps are these:
Start in Column A.
Look at cell value.
Determine if value is less than 1.
If it is, apply formula.
If it is not, continue down to next cell.
Repeat.
When end of data in Column A is reached, continue to Column B - repeating to Column F.
If there's an easier way to do this, I'd not mind being shown.
Thanks in advance if anyone can help.
PS - if there's a way to simply select all the cells with values < 1, then add that formula to the all of those cells at once, I guess that would be easiest.