+ Reply to Thread
Results 1 to 3 of 3

Nested functions

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Nested functions

    How do I create a function that works out if a number falls between say 100 and 287 then the result is "Apples". If the number entered is between 288 and 387 then the answer is "bananas" And so on. I tried a nested function but it only had seven entries. I need to enter 100 possible ranges up to 9000.

    Any help would be greatly appreciated

    Thanks
    piquet2759

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

    Re: Nested functions

    Given you have so many values - create a table with lower value of each threshold in one column and associated word in adjacent column, eg

    100	Apples
    288	Bananas
    388	Carrots
    etc...
    If we assume above table were in say cells C1:D100 (100 ranges) and we assume the number of interest is cell A1, eg:

    A1: 123

    then

    B1: =VLOOKUP($A1,$C$1:$D$100,2)

  3. #3
    Registered User
    Join Date
    08-13-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Nested functions

    Thankyou DonkeyOte

    That worked perfectly

+ 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