+ Reply to Thread
Results 1 to 6 of 6

Formula to return data from furthest row right with in column that has specific text

  1. #1
    Registered User
    Join Date
    03-29-2022
    Location
    MI
    MS-Off Ver
    365
    Posts
    16

    Formula to return data from furthest row right with in column that has specific text

    I am looking to populate data from the the cell furthest right that is identified in a column with specific text.


    A2 should be populating M2 (Supplier A PN)

    B2 should be populating N2 (Supplier B PN)

    C2 should be populating O2 (Supplier B PN Rev)



    I currently have the following, but i would like to have the 2nd part of the formula $Z$1 to just extend so whenever i add new data under each heading so i do not have to alter the formula. With the current setup, if there is no data in that column furthest right, it returns a 0.

    In A2:

    =INDEX(2:2,MAX(($E$1:$Z$1="Supplier A PN")*COLUMN($E$1:$Z$1)))

    In B2:

    =INDEX(2:2,MAX(($E$1:$Z$1="Supplier B PN")*COLUMN($E$1:$Z$1)))

    In C2:

    =INDEX(2:2,MAX(($E$1:$Z$1="Supplier B PN Rev")*COLUMN($E$1:$Z$1)))

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Formula to return data from furthest row right with in column that has specific text

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-29-2022
    Location
    MI
    MS-Off Ver
    365
    Posts
    16

    Re: Formula to return data from furthest row right with in column that has specific text

    Sorry about that. Please see attached.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Formula to return data from furthest row right with in column that has specific text

    Then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you changed your headers, you could use them instead of text values. Then you could have one formula throughout.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Formula to return data from furthest row right with in column that has specific text

    Change the column header to: Supplier A PN Supplier B PN Supplier B PN Rev

    and try this:

    =IFERROR(LOOKUP(2,1/($E$1:$Z$1=A$1)/($E2:$Z2<>""),$E2:$Z2),"")
    Attached Files Attached Files

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Formula to return data from furthest row right with in column that has specific text

    You can even do this, so you only have to change the Far Right column in one place:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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: 7
    Last Post: 10-14-2020, 12:05 PM
  2. Replies: 16
    Last Post: 05-30-2020, 12:27 PM
  3. index match - return max column number / furthest to right if multiple found
    By adambriggs in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-20-2019, 04:29 AM
  4. Formula to return text when column has dates in a specific range
    By Catsonheat in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-13-2016, 04:19 PM
  5. [SOLVED] Return column header for furthest right value
    By nooms88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-15-2015, 01:08 PM
  6. Vlookup or Index to return furthest right column of data
    By element32d in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 10:52 AM
  7. Replies: 7
    Last Post: 09-18-2012, 04:17 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