+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Nested Search Formula

Hybrid View

Broken85 Nested Search Formula 02-07-2011, 12:26 PM
NBVC Re: Nested Search Formula 02-07-2011, 12:29 PM
DonkeyOte Re: Nested Search Formula 02-07-2011, 12:40 PM
Broken85 Re: Nested Search Formula 02-07-2011, 12:57 PM
DonkeyOte Re: Nested Search Formula 02-07-2011, 01:00 PM
Broken85 Re: Nested Search Formula 02-07-2011, 01:23 PM
DonkeyOte Re: Nested Search Formula 02-07-2011, 01:32 PM
  1. #1
    Registered User
    Join Date
    02-07-2011
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Nested Search Formula

    NBVC
    The value that would be filled into the new cell would be either STF,MGR, or CTR.


    Donkey
    what is the 9.99E+307 for in your code snippet.

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

    Re: Nested Search Formula

    It is a big number 9.99*10^307

    Used in this context it ensures LOOKUP returns the value from the result_vector associated with the last numeric value found in the lookup_vector

    Brief overview: http://www.excelforum.com/2466052-post12.html - though this is aimed at the text equivalent the same principles hold true for this numeric version

  3. #3
    Registered User
    Join Date
    02-07-2011
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Nested Search Formula

    Cool thanks for the knowldege and the formula works like a charm. Can i add criteria to it just by adding another search definition and response?

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

    Re: Nested Search Formula

    Yes, if you have lots of items it would probably make more sense to store them (and responses) in a range and alter the formula accordingly, eg:

    =LOOKUP(9.99E+307,SEARCH(INDEX(C1:C10&REPT("ZZZ",C1:C10=""),0),A1&" "),D1:D10)
    where C1:C10 hold search terms (* in C1) and D1:D10 associated responses (="" in D1)

    the use of INDEX & REPT is just to account for possibility that C1:C10 may contain blanks (to be ignored)

+ 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