+ Reply to Thread
Results 1 to 12 of 12

Index match to return data from another row

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Index match to return data from another row

    Hi guys

    I have changed my spreadsheet to consist of dummy data

    Basically I am trying to setup an index match to return data in cell J3 to display the text from Columns C:H, and have a text of 0 for row C3....

    I.e. Prominent on website (column C, cell c3 IS 0, so this should be returned in J3. Ideally if there is another 0 (in cells C3 onwards), I want this to be shown too with the corresponding column header so it shows multiple column header titles). Unsure if an INDEX MATCH is the right way to go!

    I am also trying this solution: =INDEX(C1:H1,C3:H3,MATCH('BACKGROUND DATA'!E1,0))

    Please note the BACKGROUND DATA TAB refers to a cell that says '0'. That is all

    Can anyone helps?

    Thank you!
    Attached Files Attached Files
    Last edited by rayted; 04-23-2020 at 08:17 AM.
    Thanks,

    R.



  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index match to return data from another row

    Please try at J3
    =IFNA(INDEX(C1:H1,MATCH(0,C3:H3,0)),"")&IFERROR(", "&INDEX($A$1:$H$1,AGGREGATE(15,6,COLUMNS(C3:H3)/(C3:H3=0),2)),"")

    add this if you need the 3rd Topic
    &IFERROR(", "&INDEX($A$1:$H$1,AGGREGATE(15,6,COLUMNS(C3:H3)/(C3:H3=0),3)),"")
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Index match to return data from another row

    Awesome. Looks good, thank you Bo_Ry!

  4. #4
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Index match to return data from another row

    @Bo_Ry/others

    unfortunately the formula is returning Contract Type (column F) in all the data, even though it does not have a ZERO. Why is this please? I am trying to change the formula but can't find th eissue. Pleas ehelp
    Attached Files Attached Files
    Last edited by rayted; 04-23-2020 at 09:05 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,736

    Re: Index match to return data from another row

    Maybe attach the version you are having trouble with?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Index match to return data from another row

    Hi Ali

    This has been attached now. It was the version of Bo_Ry which he kindly provided to me

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index match to return data from another row

    Sorry, Please try again

    =IFNA(INDEX($C$1:$H$1,MATCH(0,C3:H3,0)),"")&IFERROR(", "&INDEX($A$1:$H$1,AGGREGATE(15,6,COLUMN(C3:H3)/(C3:H3=0),2)),"")
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,736

    Re: Index match to return data from another row

    See if this works:

    =IFNA(INDEX(C1:H1,MATCH(0,C3:H3,0)),"")&IFERROR(", "&INDEX($B$1:$H$1,,AGGREGATE(15,6,COLUMNS(C3:H3)/(C3:H3=0),2)),"")

  9. #9
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Index match to return data from another row

    Hi Bo_Ry and if there are more than 2 cells with 0, how do I get these to also be returned? it seems to return 2/3 cells only

  10. #10
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Index match to return data from another row

    Hi Ali,

    Thanks - same solution as Bo_Ry, but I can't capture multiple cells with 0? Only 2 cells are being returned..

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index match to return data from another row

    =IFNA(INDEX($C$1:$H$1,MATCH(0,C3:H3,0)),"")&IFERROR(", "&INDEX($A$1:$H$1,AGGREGATE(15,6,COLUMN(C3:H3)/(C3:H3=0),2)),"")
    &IFERROR(", "&INDEX($A$1:$H$1,AGGREGATE(15,6,COLUMN(C3:H3)/(C3:H3=0),3)),"")
    &IFERROR(", "&INDEX($A$1:$H$1,AGGREGATE(15,6,COLUMN(C3:H3)/(C3:H3=0),4)),"")

    add more &IFERROR( and change number in red

  12. #12
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Index match to return data from another row

    this seems good. thanks again!

+ 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. Horizontal lookup return data vertically (Index Match ?)
    By Prospidnick in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2017, 06:52 AM
  2. INDEX MATCH Return multiple data for YTD calculation
    By BananaJo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-06-2017, 05:16 AM
  3. INDEX/MATCH to return row data if between two dates
    By iantix in forum Excel Formulas & Functions
    Replies: 35
    Last Post: 12-15-2016, 01:52 PM
  4. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  5. Replies: 1
    Last Post: 08-30-2013, 02:25 AM
  6. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  7. index/match return data from one sheet to another
    By pauldaddyadams in forum Excel General
    Replies: 9
    Last Post: 10-08-2012, 06:12 AM

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