Results 1 to 4 of 4

SEARCH function returns array if first argument is array--Huh?

Threaded View

6StringJazzer SEARCH function returns array... 12-10-2012, 07:06 PM
tigeravatar Re: SEARCH function returns... 12-10-2012, 07:18 PM
martindwilson Re: SEARCH function returns... 12-10-2012, 07:21 PM
daddylonglegs Re: SEARCH function returns... 12-10-2012, 07:23 PM
  1. #1
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    SEARCH function returns array if first argument is array--Huh?

    In answering another thread, I discovered that function SEARCH appears to return a sort of an array. This appears to be undocumented behavior for this function. Look at column K in the attached file.

    Stranger yet, when the same formula is used for conditional formatting, it appears to iterate through the entire range for a match in the second argument. Also illustrated in attached. Normally, when a function specification calls for a single value as an argument, using a range will cause only the first item in the range to be used as the argument.

    Is this intended behavior or a side effect of how Excel is built? It certainly is not evident in Microsoft's Help page on SEARCH. Do you have an explanation of this that is sufficiently rigorous to be able to use this feature predictably?
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

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