+ Reply to Thread
Results 1 to 2 of 2

If Statement with a Divisible-By function and Round Function

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    u.s.a
    MS-Off Ver
    excel 2010
    Posts
    33

    If Statement with a Divisible-By function and Round Function

    Hello,

    Can you please help me with the following?

    My company purchases a certain product by cases. If we purchase 76 cases of the product in an order, that equates to 1 pallet and we get a certain discount for it. If we purchase 38 cases of the product in an order, that equates to 1/2 a pallet and we get a certain discount for it.

    So the report that I generate contains a column showing how many cases were bought per order - please see below:

    38cs
    76cs
    152cs
    224cs
    228cs
    55cs
    67cs
    72cs

    I know 152 cs (cases) equals 2 pallets so we get a certain discount. Because the 152 cases are equivalent to 2 whole pallets that is easy to calculate our discount. However, if there were 224 cases, that is equal to 2.95 pallets. We don't get a discount for the .95 pallets because that is not a full 1 whole pallet. But we do get the discount for the 2 pallets within the 224 cases purchased.

    Ultimately my question is, How do i do an If statement that divides by 76 cases or 38 cases and rounds DOWN to the nearest WHOLE number of pallets??

    Sorry for being long and windy, but thank you for your help!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: If Statement with a Divisible-By function and Round Function

    This will work for 76 cases...
    =INT(A1/76)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Problem Inserting Round function into an IF function
    By Ash87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 05:37 PM
  2. [SOLVED] Using round function in if statement
    By bigband1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2012, 12:31 PM
  3. Help! Divisible by 75 Function?
    By japorms in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2007, 04:06 PM
  4. VB Function Round vs Excel function Round not behaving the same Od
    By Bud in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2006, 12:45 AM
  5. Round function in If statement
    By penri0_0 in forum Excel General
    Replies: 3
    Last Post: 05-25-2006, 07:55 AM

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