+ Reply to Thread
Results 1 to 3 of 3

Short Formula to solve!

  1. #1
    Registered User
    Join Date
    06-08-2013
    Location
    germany
    MS-Off Ver
    Excel 2007
    Posts
    1

    Short Formula to solve!

    Hi all, I am simply a beginner. But Im trying my best. I have big issues trying to figure out this formula

    i hope someone can help a newbie out

    A1 = 5
    A2 = 2

    I want to output how many times A2 fit in A1, If True(How many times does it fit in A1). If False show 0


    Output for example on top would be:

    B1 = True
    B2 = 2
    B3 = 1




    It would be like

    B1= IF(A1>A2;True, False)
    B2 = IF (b1=True; Find out how many Times A2 fit in A1 and Output)
    B3 = IF b2 = True; how much left over
    Last edited by sazuka; 06-08-2013 at 06:29 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,822

    Re: Short Formula to solve!

    Put this in B1:

    =(A1>=A2)

    It will return TRUE or FALSE - Note that I've made it >=, as A2 will still divide into A1 if they are equal.

    Put this in B2:

    =IF(B1;INT(A1/A2);0)

    I assume you use semicolons rather than commas to separate the parameters.

    Hope this helps.

    Pete

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Short Formula to solve!

    In B1, =A1>A2

    In B2, =INT(A1/A2)
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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