+ Reply to Thread
Results 1 to 6 of 6

Find the row and column value of a cell reffering a table

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Find the row and column value of a cell reffering a table

    Table contains numbers , as follows: (example) and table named as "sales"
    A1=10 B1=15 C1=50
    A2=2 B2=5 C2=7
    A3=30 B3=20 C3=11
    A4=4 B4=3 C4=25

    D1=max(a1,c4) formula result is=50

    on E1 cell, I want to find D1 value in which row and which column on the table"sales"

    I know that result should be Row=1 column=3.

    Which formula can show row and column value in E1 cell.(Not VBA but only formula)

    Thanks in advance for reply.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Find the row and column value of a cell reffering a table

    Try this Array Formula, with CTRL+SHIFT+ENTER, not just ENTER

    ="Row = "&SMALL(IF(A1:C4=MAX(A1:C4),ROW(A1:C4)),1)&" Column = "&SMALL(IF(A1:C4=MAX(A1:C4),COLUMN(A1:C4)),1)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Find the row and column value of a cell reffering a table

    Great!
    Thanks for prompt reply.
    Best wishes, regards.

  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 row and column value of a cell reffering a table

    Try this...

    Data Range
    A
    B
    C
    D
    E
    1
    10
    15
    50
    50
    R1 C3
    2
    2
    5
    7
    3
    30
    20
    11
    4
    4
    3
    25

    This array formula** entered in E1:

    ="R"&MAX(IF(Sales=D1,ROW(Sales)))-MIN(ROW(Sales))+1&" C"&MAX(IF(Sales=D1,COLUMN(Sales)))-MIN(COLUMN(Sales))+1

    ** 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.

    I assume you want the row and column RELATIVE to the data range.

    Also, assume there will not be duplicate max values.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Find the row and column value of a cell reffering a table

    Thanks a lot.
    Regards

    Quote Originally Posted by Tony Valko View Post
    Try this...

    Data Range
    A
    B
    C
    D
    E
    1
    10
    15
    50
    50
    R1 C3
    2
    2
    5
    7
    3
    30
    20
    11
    4
    4
    3
    25

    This array formula** entered in E1:

    ="R"&MAX(IF(Sales=D1,ROW(Sales)))-MIN(ROW(Sales))+1&" C"&MAX(IF(Sales=D1,COLUMN(Sales)))-MIN(COLUMN(Sales))+1

    ** 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.

    I assume you want the row and column RELATIVE to the data range.

    Also, assume there will not be duplicate max values.

  6. #6
    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 row and column value of a cell reffering a table

    You're welcome!

+ 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. get value reffering end of another similar column
    By arctushar in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 03:27 PM
  2. Reffering to sheets - not by name
    By Gavin Ling in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2012, 12:44 PM
  3. Reffering to a cell with variable
    By jsvensson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2010, 07:12 PM
  4. find a value in a table, go to the previous column and add that co
    By Paul in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2006, 03:35 PM
  5. Replies: 2
    Last Post: 03-29-2006, 06:10 PM

Tags for this Thread

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