+ Reply to Thread
Results 1 to 4 of 4

divide a number closest to a target

  1. #1
    Registered User
    Join Date
    03-10-2005
    MS-Off Ver
    Excel 2013
    Posts
    95

    divide a number closest to a target

    hi,

    just curious about this one,

    A1 : target number
    B1 : any number
    C1 : formula to get (target number / any number) with the result closest to the target number

    example A1 : 30, B1: 9, C1 = 3

    thanks
    Last edited by koi; 12-22-2012 at 12:58 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: divide a number closest to a target

    hi koi, you mean like a round down? in C1
    =FLOOR(A1/A2,1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: divide a number closest to a target

    You could try: =ROUND(A1/B1,0)

    - Moo

  4. #4
    Registered User
    Join Date
    03-10-2005
    MS-Off Ver
    Excel 2013
    Posts
    95

    Re: divide a number closest to a target

    thanks guys, awesome solution

+ 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