Using VBA, how do I round a range of numbers in a column?
For example, I have a column of numbers in column A:
Row 1: 31.9
Row 2: 34.4
Row 3: 56.2
Row 4: 22.7
Where in column B they would appear rounded to the nearest whole number:
Row 1: 32
Row 2: 34
Row 3: 56
Row 4: 23
I imagine the answer involves a Looping statement and the Round function. If so or not, how would you solve what I am trying to accomplish here?
For example, I have a column of numbers in column A:
Row 1: 31.9
Row 2: 34.4
Row 3: 56.2
Row 4: 22.7
Where in column B they would appear rounded to the nearest whole number:
Row 1: 32
Row 2: 34
Row 3: 56
Row 4: 23
I imagine the answer involves a Looping statement and the Round function. If so or not, how would you solve what I am trying to accomplish here?