Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul134
 
Posts: n/a
Default 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.


--
Paul134
------------------------------------------------------------------------
Paul134's Profile: http://www.excelforum.com/member.php...o&userid=31735
View this thread: http://www.excelforum.com/showthread...hreadid=516275

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default A function that looks for a value on a sheet on unknown column or row


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)),SUMPROD UCT((A1:P20=Q1)*COLUMN(A:P)))

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

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=516275

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paul134
 
Posts: n/a
Default A function that looks for a value on a sheet on unknown column or row


Thank you Ron, array formulas seem sooo useful... I hope one day I'll be
able to create one that just simply works...

Paul.


--
Paul134
------------------------------------------------------------------------
Paul134's Profile: http://www.excelforum.com/member.php...o&userid=31735
View this thread: http://www.excelforum.com/showthread...hreadid=516275

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
Naming column in Index Function mlkpied Excel Worksheet Functions 3 December 7th 04 12:20 AM


All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"