How do I ROUNDUP an entire column of numbers?

Y

Yellow Elk

I need to ROUNDUP an Excel column that contains 250 numbers. Is there a way
to do this without rounding up each cell individually?
 
D

David Biddulph

Just copy the ROUNDUP formula down the column. Select the cell, select the
bottom right-hand corner and it will turn into a square "fill handle" which
you can drag down. If your formula is in a cell adjacent to the column with
the data, if you double-click the fill handle it will fill down the column
as far as the data stretches.
 
D

Don Guillett

Try
Sub roundemup()
For Each c In Range("H2:H251")
c.Value = Application.RoundUp(c, 0)
Next c
End Sub
 
D

D.

I need to ROUNDUP an Excel column that contains 250 numbers. Is there a way
to do this without rounding up each cell individually?

This is another option,
probably similar to Ron's
loops through column G and changes rounds up the value
Sub RoundUpCells()
Dim TheRange As Range
Dim TheCell As Range
Set TheRange = Range("G1", Range("G65536").End(xlUp))
For Each TheCell In TheRange
TheCell = Application.RoundUp(TheCell, 2)
Next TheCell
End Sub
 

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.

Ask a Question

Similar Threads

roundup function 2
Roundup an entire column 6
Roundup with paste special 3
Roundup Function 5
roundup value 5
Roundup for multiple cells 1
Roundup, Roundown to a specific digit or number 3
Round up an average 3

Top