+ Reply to Thread
Results 1 to 5 of 5

Find each time a number can be divided into another?

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Broomfield, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Find each time a number can be divided into another?

    I am stumped... I am sure there is an easy way to do this but I just can't get there from here today. I hate Mondays...

    I have a column with 5 numbers in it. 12, 22.5, 34,47.2, 51.6. Now I need to put in the next column when each time the number in the first column can be divided by 11.5 and put in the cell in second column 11.5 * the number of times it can be divided into the first column number. something like this:
    12.0 11.50
    22.5
    34.0 23.00
    47.2 46.00
    51.6

    Should I use an "if" with a "mod" in it?

    Thanks
    Tim

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

    Re: Find each time a number can be divided into another?

    Assuming data is in A2 and below, try in B2:

    =IF(B1=11.5*INT(A2/11.5),"",11.5*INT(A2/11.5))

    where

    copied down
    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
    03-26-2012
    Location
    Broomfield, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find each time a number can be divided into another?

    That works for the main Idea, Now if it would only show the multiple of 11.5 once each time it changes. Example below:

    code results from NVBC

    12.0 11.50
    22.5 11.50
    34.0 23.00
    47.2 46.00
    51.6 46.00

    What I would like:

    12.0 11.50
    22.5
    34.0 23.00
    47.2 46.00
    51.6

    Thanks
    Tim

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

    Re: Find each time a number can be divided into another?

    That should be exactly what the formula does...

  5. #5
    Registered User
    Join Date
    03-26-2012
    Location
    Broomfield, Colorado
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find each time a number can be divided into another?

    It is, I missed the reference to B1. Sorry!
    Thak you very much for your quick response and fix. I really appreciate it.

    Tim

+ 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