+ Reply to Thread
Results 1 to 6 of 6

Round to whole number

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Round to whole number

    Hi,

    Need help with rounding the numbers. I am working on a quote in which quantity is arrived by dividing the sell price by Total sell price. The condition is the result (quantity) should always be a whole number, I can achieve that by cell formatting but when the calculation is done using handheld calculator the results are different.

    I need the result to be same if using excel or handheld device i.e quantity in whole number.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Round to whole number

    in F3:
    =TRUNC(D3/E3)
    Best Regards,

    Kaper

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Round to whole number

    hi there. which do you need rounding? to round F3, you cannot simply format cells. format cells is only a presentation. use:
    =ROUNDUP(D3/E3,0)

    for D3 to be rounded to the nearest thousand, try:
    =ROUND(E3*F3,-3)

    it cannot work when F3 is a formula though, because F3 & D3 are dependent on each other if so

    Edit:
    you should be getting 133 instead of 132 because you need 132.4795761 number of products. you can't possibly have it lesser
    Last edited by benishiryo; 02-03-2014 at 03:55 AM.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Round to whole number

    benishiryo,

    Thanks for your quick response.The total sell price will increase if your formula [=ROUNDUP(D3/E3,0)] is used in F3.

    Qty 133 * 135.87 = 18070.71.

    The total sell price is fixed and cannot be changed, we can only manipulate the Qty to achieve 18000. Sorry if I was not clear at start.

    Please help

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Round to whole number

    With total sell price and sell price is fixed, the quantity must be interger or decimal. Is it accepted being decimal?
    Quang PT

  6. #6
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Round to whole number

    bebo021999,

    The quantity must be an integer, decimal is not accepted. Please help, can you also give me a solution if decimal was allowed?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Round number to nearest equal or lower number of a string
    By MikeMar! in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-20-2013, 01:26 PM
  2. round up to below number
    By pansovic in forum Excel General
    Replies: 2
    Last Post: 11-29-2011, 07:42 PM
  3. [SOLVED] Can I increase a number by 5.5% and then round that number to the.
    By Jeff Thornburg in forum Excel General
    Replies: 1
    Last Post: 06-28-2006, 12:26 PM
  4. How can i round a number to closest tenth number?
    By rayne95 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2006, 04:40 PM
  5. [SOLVED] How to make a number round up/down to a set number
    By David S in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2005, 12:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1