Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default How to write a formula to round up and/or down

Do you know how to write a formula to round up and/or down?

My situation is:

Hours x % to one employee (different pay rate)
Hours x % to another employee (different pay rate)


For example,

It takes 22 Hours to perform Coordination on a certain project
85% goes to the Project Engineer
15% goes to clerical
My goal is to determine how many of the 22 hours go to the Project Engineer
and how many go to clerical.

85% x 22 = 18.7
15% x 22 = 3.3

Now we have to round-up or round-down to the nearest .25 because our hours
are recorded in .25 increments.
I want the 18.7 to be 18.75 and the 3.3 to be 3.25

I know how to make the formula round up, but I don't know how to tell the
formula to go up or down depending on the situation.

Can you help?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to write a formula to round up and/or down

Try these:

A1 = 22

=ROUND((A1*0.85)/0.25,0)*0.25

=ROUND((A1*0.15)/0.25,0)*0.25

--
Biff
Microsoft Excel MVP


"Sally" wrote in message
...
Do you know how to write a formula to round up and/or down?

My situation is:

Hours x % to one employee (different pay rate)
Hours x % to another employee (different pay rate)


For example,

It takes 22 Hours to perform Coordination on a certain project
85% goes to the Project Engineer
15% goes to clerical
My goal is to determine how many of the 22 hours go to the Project
Engineer
and how many go to clerical.

85% x 22 = 18.7
15% x 22 = 3.3

Now we have to round-up or round-down to the nearest .25 because our hours
are recorded in .25 increments.
I want the 18.7 to be 18.75 and the 3.3 to be 3.25

I know how to make the formula round up, but I don't know how to tell the
formula to go up or down depending on the situation.

Can you help?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How to write a formula to round up and/or down

=MROUND(your_formula,0.25)
If you get a #NAME? error, check Excel help for the MROUND function.
--
David Biddulph

"Sally" wrote in message
...
Do you know how to write a formula to round up and/or down?

My situation is:

Hours x % to one employee (different pay rate)
Hours x % to another employee (different pay rate)


For example,

It takes 22 Hours to perform Coordination on a certain project
85% goes to the Project Engineer
15% goes to clerical
My goal is to determine how many of the 22 hours go to the Project
Engineer
and how many go to clerical.

85% x 22 = 18.7
15% x 22 = 3.3

Now we have to round-up or round-down to the nearest .25 because our hours
are recorded in .25 increments.
I want the 18.7 to be 18.75 and the 3.3 to be 3.25

I know how to make the formula round up, but I don't know how to tell the
formula to go up or down depending on the situation.

Can you help?



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
I want to write a formula with IF & AND & OR, (I think) Dr. Darrell Excel Discussion (Misc queries) 1 September 28th 07 02:01 PM
What is the best way to Write this Formula zmr325 Excel Discussion (Misc queries) 1 November 29th 05 10:43 AM
how do I write a formula to round up a number? Barbie Excel Worksheet Functions 3 March 29th 05 04:29 PM
write a formula Tracy B Excel Worksheet Functions 6 March 18th 05 08:39 PM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM


All times are GMT +1. The time now is 11:04 AM.

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

About Us

"It's about Microsoft Excel"