+ Reply to Thread
Results 1 to 5 of 5

Formula to round down on a batch and exclude anything under a full batch

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    Massachusetts
    MS-Off Ver
    Excel 2003
    Posts
    3

    Formula to round down on a batch and exclude anything under a full batch

    This is my first post and I really don't know what the function is called or even if it is possible, so I am not really able to do a search.. Please be open-minded at my noobness.

    I am trying to make a formula that will exclude any number other than a full batch count. For example
    My batch is 333 and every one batch = 1000. So I would like my formula to = the output for the number of full batches in increments of 333.

    Simplified:
    a = 1000/333 where a is the actual input

    if a is 333, then the output is 1000
    if a is 666 (coincidence) than the output is 2000
    if a is 331 the output is zero
    and if a is 334-665 the output is 1000

    any ideas? I am wracking my brain over this to find an exclusion logical statement. I know where i need to be, just not what it's called or how to get there.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to round down on a batch and exclude anything under a full batch

    Just a guess based on my simple understanding...

    try formula:

    =1000*FLOOR(A1,333)/333

    where A1 contains a value like 333

    edit: Changed function to FLOOR... for rounding down
    Last edited by NBVC; 08-15-2012 at 10:39 AM. Reason: should be FLOOR
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    Massachusetts
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Formula to round down on a batch and exclude anything under a full batch

    Hrm.. I just happen to have OpenOffice here at home. I am getting errors on the formula so I am not sure if it is me or OO.

    Any experience with (don't hit me) OpenOffice?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to round down on a batch and exclude anything under a full batch

    I am not sure if OO has the FLOOR function, but I know that you need semi-colons as separators, not commas.. try:

    =1000*FLOOR(A1;333)/333

  5. #5
    Registered User
    Join Date
    08-15-2012
    Location
    Massachusetts
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Formula to round down on a batch and exclude anything under a full batch

    Quote Originally Posted by toomuchbrew View Post
    Hrm.. I just happen to have OpenOffice here at home. I am getting errors on the formula so I am not sure if it is me or OO.

    Any experience with (don't hit me) OpenOffice?
    Disregard, I had to change the "," to a ";" and it works. Thanks!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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