+ Reply to Thread
Results 1 to 4 of 4

Find the reference's position within a range

  1. #1
    Registered User
    Join Date
    07-10-2015
    Location
    Czech Republic
    MS-Off Ver
    MS 2013
    Posts
    4

    Find the reference's position within a range

    Hello, does anybody know, whether it's possible to find the position of a value within given range? The position of the value varies, it occurs only once though. For example, I want to find out in which cell is the value of the cell A1 within the range B2:Z30. I was trying to solve this via match function, however the column or row varies. And I prefer not to write a combination of match formulas for each column and row.

    Many thanks in advance!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,279

    Re: Find the reference's position within a range

    One way ..

    =ADDRESS(SUMPRODUCT(($B$2:$Z$30=$A$1)*ROW($B$2:$Z$30)),SUMPRODUCT(($B$2:$Z$30=$A$1)*COLUMN($B$2:$Z$30)))

    I am sure there is a "smarter" way

  3. #3
    Registered User
    Join Date
    07-10-2015
    Location
    Czech Republic
    MS-Off Ver
    MS 2013
    Posts
    4

    Re: Find the reference's position within a range

    Thank you! It works, although I don't understand why
    But it certainly does

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find the reference's position within a range

    Here's another one...

    Array entered**:

    =ADDRESS(MAX(IF(B2:Z30=A1,ROW(B2:Z30))),MAX(IF(B2:Z30=A1,COLUMN(B2:Z30))),4)

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] find duplicate range , position range
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-04-2014, 02:41 PM
  2. [SOLVED] Change column reference within a range by numeric position within the range
    By SteveSwitch in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-19-2013, 08:21 AM
  3. Using Find to reference Range in Macro
    By caucoin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2013, 05:34 PM
  4. Find the position of a value within a rectangular range
    By Larry.LeBlanc@O in forum Excel General
    Replies: 6
    Last Post: 10-27-2011, 06:21 PM
  5. reference a position in a range
    By opeyemi1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2010, 08:22 PM
  6. Replies: 7
    Last Post: 02-02-2009, 02:40 PM
  7. Find the POSITION IN A RANGE of text in a string that matches value(s) in a range
    By Cornell1992 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-14-2006, 03:25 PM

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