+ Reply to Thread
Results 1 to 4 of 4

AshCanyonMike

  1. #1
    Registered User
    Join Date
    04-06-2012
    Location
    Nevada
    MS-Off Ver
    Excel 2010
    Posts
    1

    AshCanyonMike

    Assume I have a table of numbers from which I want to select a specific number (for simplicity, I'll assume a table of whole numbers, say 1 thru 10). I need a function that will select a number from this table that is the next lowest to a variable, say 3.33. The function would return the value 3. How can I achieve this?
    Last edited by AshCanyonMIke; 04-06-2012 at 03:21 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: AshCanyonMike

    Firstly you should change the title of your thread to something that describes your problem.

    Secondly try this:

    =MAX(IF($A$1:$C$3<$E$1,$A$1:$C$3)) assuming your table is in A1:C3 and your constraint is in E1. And confirm with Ctrl+Shift+Enter
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: AshCanyonMike

    Vlookup will do this. Just make sure you use the optional last argument and set it to "True". It will find the closest entry that does not exceed the lookup value.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: AshCanyonMike

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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