UK diy (uk.d-i-y) For the discussion of all topics related to diy (do-it-yourself) in the UK. All levels of experience and proficency are welcome to join in to ask questions or offer solutions.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 8,319
Default OT; MS Excel

Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric. Spreadsheet works out that I need 1.25 rolls at £7.99, so
cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows 1
roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


--
Dave - The Medway Handyman
www.medwayhandyman.co.uk




  #2   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 215
Default OT; MS Excel

The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric. Spreadsheet works out that I need 1.25 rolls at £7.99, so
cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows 1
roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


use the CEILING() function.
  #3   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 9,369
Default OT; MS Excel

ceiling(a1,1)


  #4   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 25,191
Default OT; MS Excel

The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric.


Fell off the back of a 'plane did it ;-)

Spreadsheet works out that I need 1.25 rolls at £7.99, so
cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows 1
roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


Use the =roundup(number, decimal_places) function.

e.g.

A1 contains 1.5
A2 contains =roundup(a1,0)

--
Cheers,

John.

/================================================== ===============\
| Internode Ltd - http://www.internode.co.uk |
|-----------------------------------------------------------------|
| John Rumm - john(at)internode(dot)co(dot)uk |
\================================================= ================/
  #5   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 13
Default OT; MS Excel

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric. Spreadsheet works out that I need 1.25 rolls at £7.99,
so cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows 1
roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?

=(B2*IF(INT(A2)=A2,A2,INT(A2)+1))

Where cell 'B2' is the cost, and cell 'A2' is the quantity



  #6   Report Post  
Posted to uk.d-i-y
OG OG is offline
external usenet poster
 
Posts: 563
Default OT; MS Excel


"John Rumm" wrote in message
et...
The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric.


Fell off the back of a 'plane did it ;-)

Spreadsheet works out that I need 1.25 rolls at £7.99, so cost is £9.99
(rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows 1
roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


Use the =roundup(number, decimal_places) function.

e.g.

A1 contains 1.5
A2 contains =roundup(a1,0)


If you're doing that, just spray the roundup on the weeds

I'll fetch my coat.
:-)


  #7   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 9,045
Default OT; MS Excel

The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric. Spreadsheet works out that I need 1.25 rolls at £7.99, so
cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows 1
roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


add one half and round down.
  #8   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 1,066
Default OT; MS Excel

"The Natural Philosopher" wrote in message
...
The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric. Spreadsheet works out that I need 1.25 rolls at £7.99,
so cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows 1
roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


add one half and round down.


err, no, 1.25 + 0.5 is 1.75. Round down is still 1, he wants 2. Add 0.5 and
round (up or down) is what you meant.

He should add 0.5 and round to nearest integer (not sure possible in excel)
or, easier, add 0.99 and truncate.

In Excel, number in A1 (say) - B(1) is set to "=INT(A1+0.99)" then use B1


--
Bob Mannix
(anti-spam is as easy as 1-2-3 - not)


  #9   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 234
Default OT; MS Excel


"Bob Mannix" wrote in message
...
"The Natural Philosopher" wrote in message
...
The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric. Spreadsheet works out that I need 1.25 rolls at £7.99,
so cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows 1
roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


add one half and round down.


err, no, 1.25 + 0.5 is 1.75. Round down is still 1, he wants 2. Add 0.5
and round (up or down) is what you meant.

He should add 0.5 and round to nearest integer (not sure possible in
excel) or, easier, add 0.99 and truncate.

In Excel, number in A1 (say) - B(1) is set to "=INT(A1+0.99)" then use B1


--
Bob Mannix
(anti-spam is as easy as 1-2-3 - not)


John Rumm has given the answer, short and easy.


Use the =roundup(number, decimal_places) function.

e.g.

A1 contains 1.5
A2 contains =roundup(a1,0)



  #10   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 5,937
Default OT; MS Excel

John Rumm wrote:
The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric.


Fell off the back of a 'plane did it ;-)

Spreadsheet works out that I need 1.25 rolls at £7.99, so cost is
£9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows
1 roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


Use the =roundup(number, decimal_places) function.

e.g.

A1 contains 1.5
A2 contains =roundup(a1,0)


Yes, that actually changes the value rather than just formatting it.
The ceiling function is a new one on me, but I guess it does the same thing


  #11   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 1,066
Default OT; MS Excel

"Slider" wrote in message
...

"Bob Mannix" wrote in message
...
"The Natural Philosopher" wrote in message
...
The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric. Spreadsheet works out that I need 1.25 rolls at
£7.99, so cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows
1 roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


add one half and round down.


err, no, 1.25 + 0.5 is 1.75. Round down is still 1, he wants 2. Add 0.5
and round (up or down) is what you meant.

He should add 0.5 and round to nearest integer (not sure possible in
excel) or, easier, add 0.99 and truncate.

In Excel, number in A1 (say) - B(1) is set to "=INT(A1+0.99)" then use
B1


--
Bob Mannix
(anti-spam is as easy as 1-2-3 - not)


John Rumm has given the answer, short and easy.


Use the =roundup(number, decimal_places) function.

e.g.

A1 contains 1.5
A2 contains =roundup(a1,0)


Ah yes, same effect, same number of cells but somewhat more elegant!

I stand corrected.


--
Bob Mannix
(anti-spam is as easy as 1-2-3 - not


  #12   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 25,191
Default OT; MS Excel

The Natural Philosopher wrote:
The Medway Handyman wrote:
Hi

Mental block. Using Excel to cost out a project. One example, weed
contrail fabric. Spreadsheet works out that I need 1.25 rolls at
£7.99, so cost is £9.99 (rounded up).

In reality I'd have to buy 2 rolls, so cost would be £15.98.

I can format the cell to 'no decimal places', which in this case shows
1 roll & still £9.99.

How do I get Excel to work in whole numbers, rounded up?


add one half and round down.


That is the way to round off, rather than up (as in add 0.5 and truncate
to an integer)


--
Cheers,

John.

/================================================== ===============\
| Internode Ltd - http://www.internode.co.uk |
|-----------------------------------------------------------------|
| John Rumm - john(at)internode(dot)co(dot)uk |
\================================================= ================/
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
Converting Excel 2007 Nested "If" Statement to Excel 2003: Overcom Jim Thompson Electronic Schematics 0 June 24th 08 05:08 PM
OT MS Excel The Medway Handyman UK diy 9 March 12th 08 07:10 PM
Excel Programming Using VBA Tiger UK diy 0 October 4th 07 08:16 AM
Mira Excel B John Edgar UK diy 7 July 27th 07 09:48 AM
Mira Excel Shower Poolie Home Repair 1 April 19th 05 12:01 AM


All times are GMT +1. The time now is 09:48 AM.

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

About Us

"It's about DIY & home improvement"