+ Reply to Thread
Results 1 to 5 of 5

generate value in top row and left column of a table, based on pos. seachcell in table

  1. #1
    Registered User
    Join Date
    04-12-2016
    Location
    rotterdam
    MS-Off Ver
    windows 7 office 2013
    Posts
    3

    generate value in top row and left column of a table, based on pos. seachcell in table

    hi all, i'm looking for a formula that generates the value in the top row and left column of a table, based on the position of the input cell in that table. I've attached an example to make it a bit more clear what i'm looking for.
    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: generate value in top row and left column of a table, based on pos. seachcell in table

    Q4=INDEX($B:$B,MAX(INDEX(($C$4:$L$18=$O4)*ROW($C$4:$L$18),0)))
    R4=INDEX($3:$3,MAX(INDEX(($C$4:$L$18=$O4)*COLUMN($C$4:$L$18),0)))
    Try this, copy & paste towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: generate value in top row and left column of a table, based on pos. seachcell in table

    Or
    q4=sumproduct(($b$4:$b$18)*($c$4:$l$18=$o4))
    r4=sumproduct(($c$3:$l$3)*($c$4:$l$18=$o4))

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,067

    Re: generate value in top row and left column of a table, based on pos. seachcell in table

    Use:

    =INDEX($B$4:$B$18,SUM(INDEX(($C$4:$L$18=$O4)*ROW($C$4:$L$18),))-3)

    and:

    =INDEX($C$3:$L$3,SUM(INDEX(($C$4:$L$18=$O4)*COLUMN($C$4:$L$18),))-2)

    for the first, and second, columns respectively.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  5. #5
    Registered User
    Join Date
    04-12-2016
    Location
    rotterdam
    MS-Off Ver
    windows 7 office 2013
    Posts
    3

    Re: generate value in top row and left column of a table, based on pos. seachcell in table

    max/index/row
    max index column
    works like a charm! thanks a million

+ 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. Replies: 0
    Last Post: 08-18-2017, 03:03 PM
  2. Generate table based on table in another sheet
    By bakdus94 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2016, 12:14 PM
  3. Replies: 0
    Last Post: 02-16-2015, 04:54 PM
  4. Generate a Table based on several conditions
    By steven340 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2015, 08:44 PM
  5. [SOLVED] Do a vlookup based on left 6 numbers in the table
    By kafarrell in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 07-30-2014, 01:57 PM
  6. Replies: 7
    Last Post: 01-25-2013, 05:17 PM
  7. Replies: 5
    Last Post: 05-11-2012, 06:40 AM

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