+ Reply to Thread
Results 1 to 5 of 5

match number then find last number in row

  1. #1
    Forum Contributor
    Join Date
    11-03-2004
    Posts
    139

    match number then find last number in row

    I'm lost and would appreciate any help that you can offer. One sheet 2 column B, I would like to populate the last number in the row from sheet 1 that matches the number in sheet 2 column A. As you can see the last number is not always consistent to the last column, which would be so much easier.

    Sheet 1
    Column A Column b Column c Column d Column e Column f
    30538 70.00% 83.30% 80.00%
    31575 53.30% 63.30% 63.30% 53.30% 53.30%
    39235 80% 87% 90%
    42599 80.00% 93.30% 80.00%
    45316 20.0% 97.0%
    45748 53.30%
    46415 0.0% 0.0% 0.0% 0.0% 44.00%
    47544 40.0%
    48706 83.0%
    50696 0.0% 0.0% 0.0% 0.0% 0.0%



    Sheet 2 - results
    Column A Column b
    50696 0.0%
    46415 44.00%
    31575 53.30%
    39235 90%
    42599 80.00%
    48706 83.0%
    47544 40.0%
    45316 97.0%
    45748 53.30%
    30538 80.00%

    Thanks in advance.
    Last edited by leem; 11-11-2015 at 12:08 PM. Reason: solved

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: match number then find last number in row

    Try this in Sheet 2, B2 and filled down

    =LOOKUP(2,INDEX(Sheet1!$B$2:$F$11,MATCH(A2,Sheet1!$A$2:$A$11,0),0))

    This is assuming the values in columns B and to the right are all percentages (less than or equal to 100%)
    If that's not a correct assumtion, then this would be more reliable.

    =LOOKUP(9.99999999999999E+307,INDEX(Sheet1!$B$2:$F$11,MATCH(A2,Sheet1!$A$2:$A$11,0),0))

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: match number then find last number in row

    With data in B2:H100, Unique ID's in A2:A100

    =INDEX($B$2:$H$100, MATCH($A$1, $A$2:$A$100,0), MATCH(9^99, INDEX($B$2:$H$100,MATCH($A$1, $A$2:$A$100,0),)))

    Assuming unique ids in column A (no duplicates)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    11-03-2004
    Posts
    139

    Re: match number then find last number in row

    Perfect - thank you!! I really appreciate the answer and your knowledge.

    Michelle

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: match number then find last number in row

    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. Find number in array that is less than INDEX MATCH??
    By tmurc123 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-29-2014, 09:21 PM
  2. Replies: 5
    Last Post: 02-13-2014, 05:37 PM
  3. [SOLVED] Using MATCH within VBA to find a row number used elsewhere in code
    By jacob@thepenpoint in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2013, 11:01 AM
  4. find if number is a match
    By nikko50 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2013, 02:41 PM
  5. [SOLVED] Find match, find related cell and return that number
    By HelpHelpHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 06:46 AM
  6. If number in culumn 'A' match set number another number in column 'I'
    By MAButler in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-10-2011, 08:29 PM
  7. Replies: 7
    Last Post: 12-18-2008, 07:34 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