Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default formula to round up any number less than 35 upto 35.

im currently working on a spread sheet and was hoping someone would know a
formula so that when a number is less than 35, it will be automatically
rounded up to 35.
parts of the row have auto sum to total up this number ( being upto, or
actually 35) but i want it to change, for example, 32.4 into 35.
thanks guys
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,090
Default formula to round up any number less than 35 upto 35.

A formula cannot change the value of a number in the same cell as the
original number. You can use another cell to show 35 whenever the original
cell has a number less than 35. Otherwise, you have to use VBA
(automation). Paste the following macro into the sheet module of your
sheet. As written, this macro will do what you want with any number entered
into Column A. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
If Target.Count 1 Then Exit Sub
If IsEmpty(Target.Value) Then Exit Sub
If Target.Value < 35 Then _
Target.Value = 35
End If
End Sub
"Bro40dz" wrote in message
...
im currently working on a spread sheet and was hoping someone would know a
formula so that when a number is less than 35, it will be automatically
rounded up to 35.
parts of the row have auto sum to total up this number ( being upto, or
actually 35) but i want it to change, for example, 32.4 into 35.
thanks guys



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default formula to round up any number less than 35 upto 35.

Hi,

=if(A1<35,35,A1)

HTH

Simon

Bro40dz wrote:
im currently working on a spread sheet and was hoping someone would know a
formula so that when a number is less than 35, it will be automatically
rounded up to 35.
parts of the row have auto sum to total up this number ( being upto, or
actually 35) but i want it to change, for example, 32.4 into 35.
thanks guys


--
--------------------
Simon - UK

Email at simon22mports [ a t ] hot mail [ d ot ]com

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200610/1

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 618
Default formula to round up any number less than 35 upto 35.

=MAX(A1,35)
--
David Biddulph

"Bro40dz" wrote in message
...
im currently working on a spread sheet and was hoping someone would know a
formula so that when a number is less than 35, it will be automatically
rounded up to 35.
parts of the row have auto sum to total up this number ( being upto, or
actually 35) but i want it to change, for example, 32.4 into 35.
thanks guys



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default formula to round up any number less than 35 upto 35.

In , Otto Moehrbach
spake thusly:

A formula cannot change the value of a number in the same
cell as the original number. You can use another cell to
show 35 whenever the original cell has a number less than
35. Otherwise, you have to use VBA (automation).


True enough. However, the OP might have a formula that
produces some number, and he could emend the formula to
produce the calculated number or 35, whichever is higher.

=IF(100/335,100/3,35)

(Substitute the actual formula for my example "100/3".)

I don't really know what the OP is asking, but I thought
I'd cover that possibility.

-dman-

----------------------------------------------------------
Paste the following macro into the sheet module of your sheet. As
written, this macro will do what you want with any number entered
into Column A. HTH Otto


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
If Target.Count 1 Then Exit Sub
If IsEmpty(Target.Value) Then Exit Sub
If Target.Value < 35 Then _
Target.Value = 35
End If
End Sub
"Bro40dz" wrote in message
...
im currently working on a spread sheet and was hoping someone would know a
formula so that when a number is less than 35, it will be automatically
rounded up to 35.
parts of the row have auto sum to total up this number ( being upto, or
actually 35) but i want it to change, for example, 32.4 into 35.
thanks guys





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,090
Default formula to round up any number less than 35 upto 35.

Point well taken. Thanks. Otto
"Dallman Ross" <dman@localhost. wrote in message
...
In , Otto Moehrbach
spake thusly:

A formula cannot change the value of a number in the same
cell as the original number. You can use another cell to
show 35 whenever the original cell has a number less than
35. Otherwise, you have to use VBA (automation).


True enough. However, the OP might have a formula that
produces some number, and he could emend the formula to
produce the calculated number or 35, whichever is higher.

=IF(100/335,100/3,35)

(Substitute the actual formula for my example "100/3".)

I don't really know what the OP is asking, but I thought
I'd cover that possibility.

-dman-

----------------------------------------------------------
Paste the following macro into the sheet module of your sheet. As
written, this macro will do what you want with any number entered
into Column A. HTH Otto


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
If Target.Count 1 Then Exit Sub
If IsEmpty(Target.Value) Then Exit Sub
If Target.Value < 35 Then _
Target.Value = 35
End If
End Sub
"Bro40dz" wrote in message
...
im currently working on a spread sheet and was hoping someone would
know a
formula so that when a number is less than 35, it will be automatically
rounded up to 35.
parts of the row have auto sum to total up this number ( being upto, or
actually 35) but i want it to change, for example, 32.4 into 35.
thanks guys





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make array formulay to round a number then subtract 10 from it G58 New Users to Excel 1 June 29th 06 03:38 PM
If formula John Excel Worksheet Functions 4 May 17th 06 04:42 PM
Need to round a formula up or down to a specific number Eric Foucrier Excel Worksheet Functions 4 March 5th 06 03:50 AM
i would like to know a formula on how to round a number to 500 beti10 Excel Discussion (Misc queries) 2 February 7th 06 02:17 PM
Formula for current month minus one = Quarter number in a macro. Pank Excel Discussion (Misc queries) 11 June 22nd 05 02:47 PM


All times are GMT +1. The time now is 08:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"