+ Reply to Thread
Results 1 to 5 of 5

IF alternative

  1. #1
    Registered User
    Join Date
    12-25-2010
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2010
    Posts
    11

    IF alternative

    Hello. Tiny little problem.

    For any given number, I want it to by raised to the next superior value from a specific list of values.

    E.g. the list would be something like this: 9, 13, 18, 25, 41, ...
    If the number is 11.232 then it will be replaced by 13,
    if the number is 24.311 then it will be replaced by 25.

    The list contains dozens of numbers, so the IF option won't work.

    Optionally, I want that numbers that don't exceed their next inferior value from the list with more than 0.5 to be replaced with that inferior value.

    E.g. If the number is 13.49 then it will be replaced by 13, but if the number is 13.51 then it will be replaced by 18.
    Last edited by N-ter; 12-25-2010 at 06:50 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF alternative

    Perhaps something along the lines of:

    Please Login or Register  to view this content.
    where A1 contains the input and Col B the list

  3. #3
    Registered User
    Join Date
    12-25-2010
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: IF alternative

    Thank you DonkeyOte.
    I typed this in but it says that formula contains an error. (both Office 2003 and 2007)

    Please Login or Register  to view this content.
    C24:C49 contains the list and C15 the input.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF alternative

    I based on expected delimiter (that said I used 0.5 rather than 0,5)

    Try:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-25-2010
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: IF alternative

    thanks a lot.
    still had to use an IF if the number is smallest that C24 but I'm fine with it.

+ 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