+ Reply to Thread
Results 1 to 6 of 6

Divisible IF statements

  1. #1
    Registered User
    Join Date
    10-31-2011
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Divisible IF statements

    Good afternoon all

    I work in a printing company and we have a job which has 12 versions of stationery, which prints 4up on a sheet. Where the quantities are not exactly divisible by 4, then it prints "Filler Records" for the rest of the sheet. So for example if I had 5 records, I would get 3 filler records (1 full sheet of 4, and 1 sheet with only 1 quarter filled). This is causing problems though so need to come up with a formula to aid them when cutting the paper.

    So far I have =MOD(B194,4), and this gives me the remainder, but what I actually need it to tell me how many filler records there would be, so this sum, then subtract from 4 unless it is zero. Below may help in trying to explain what I am after?

    Records Total Number of Sheets Qty of Filler Records
    5 2 3
    6 2 2
    7 2 1
    8 2 0
    9 3 3
    10 3 2

    Thanks in advance.

    Craig Kinsey

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Divisible IF statements

    If your sample data above is in range A1:C7 then put this in B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and this in C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then copy down

    BSB

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Divisible IF statements

    In addition to above, see attached for example.
    Formulas in the yellow cells.

    BSB
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-31-2011
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Divisible IF statements

    Thank you BadlySpelledBuoy, but I think I have found an easier way, subject to testing which is "=(CEILING(A1,4)-A1)".

    Appreciate the quick response though.

    Kind regards,

    Craig

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Divisible IF statements

    That was gonna be my next suggestion

    BSB

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Divisible IF statements

    the filler records are the filler records of 4 parts - the part used
    and report the parts that are not used

    so
    =IF(MOD(A1,4)=0,0,4-MOD(A1,4))

    gives you the Qty of filler sheets

    number of sheets
    if there is a remainder then add that to the sheet total
    =IF(MOD(A1,4)=0,INT(A1/4),INT(A1/4+1))


    does that work OK
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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] How to check if number is divisible by 6
    By jmilliken in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-09-2014, 02:00 PM
  2. selecting divisible by a number
    By bkabue in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-11-2014, 10:40 AM
  3. numbers divisible by 20%
    By sjc619 in forum Excel General
    Replies: 6
    Last Post: 11-17-2011, 02:35 PM
  4. Divisible by given Constant
    By fitzol in forum Excel General
    Replies: 3
    Last Post: 11-18-2009, 07:17 AM
  5. divisible if statements
    By FJ80 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-04-2008, 01:06 PM
  6. Help! Divisible by 75 Function?
    By japorms in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2007, 04:06 PM
  7. Divisible by 10 test
    By o5prey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2005, 02:16 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