+ Reply to Thread
Results 1 to 3 of 3

A function that looks for a value on a sheet on unknown column or row

  1. #1
    Registered User
    Join Date
    02-20-2006
    Posts
    6

    A function that looks for a value on a sheet on unknown column or row

    How can I make a function that looks for a value on a sheet, on unknown column or row, and returns row and column position where it found it. I presume it has to be done using MATCH in an array formula that searches entire columns from 1 to 255 and ISNA to ignore the unmatched columns, and ADDRESS to inform the cell found... I've been trying unsuscesfully to assemble it and make it work...

    Thanks. Paul.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Try playing with this:

    I put the phrase "Find Me" in a cell in the range A1:P20.


    Q1: Find Me
    Q2: =ADDRESS(SUMPRODUCT((A1:P20=Q1)*ROW(1:20)),SUMPRODUCT((A1:P20=Q1)*COLUMN(A:P)))

    With the phrase in C18, the formula returned: $C$18

    Does that help?

    Regards,
    Ron

  3. #3
    Registered User
    Join Date
    02-20-2006
    Posts
    6
    Thank you Ron, array formulas seem sooo useful... I hope one day I'll be able to create one that just simply works...

    Paul.

+ 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