+ Reply to Thread
Results 1 to 6 of 6

Value X, Match ocurrence in Row A with parallel cell in Row B, Return Row B cell value

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2000
    Posts
    93

    Value X, Match ocurrence in Row A with parallel cell in Row B, Return Row B cell value

    Hi,

    I have a value in $ED$1. This is Value X.

    Row A = $DO$7:$DV$7
    Row B = $DO$10:$DV$10

    [Formula location = $EE$1]

    Where Value X occurs in Row A, l want to return the parallel cell in Row B.

    Both rows are sorted in numerical order. There is a slight complication though: Row A might contain multiple occurrences of Value X. If Value X is repeated several times in Row A, I want to find the left-most occurrence of Value X in Row A, i.e. the one closer to Column DO.



    I'd like to avoid array formulae if possible, but any port in a storm! Thanks in advance!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Value X, Match ocurrence in Row A with parallel cell in Row B, Return Row B cell value

    I think it would help if you provided a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-04-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2000
    Posts
    93

    Re: Value X, Match ocurrence in Row A with parallel cell in Row B, Return Row B cell value

    Hi, l will restate the query, illustrated this time with example values in bold red font (my original query was a bit vague):

    I have a value in $ED$1. This is Value X.
    = 2

    Row A = $DO$7:$DV$7 = 91, 45, 32, 21, 12, 2, 2, 1
    Row B = $DO$10:$DV$10 = 140, 90, 45, 30, 20, 10, 5, 3

    [Formula location = $EE$1]

    Where Value X occurs in Row A, l want to return the parallel cell in Row B.

    Both rows are sorted in numerical order. There is a slight complication though: Row A might contain multiple occurrences of Value X. If Value X is repeated several times in Row A, I want to find the left-most occurrence of Value X in Row A, i.e. the one closer to Column DO.


    Thus, the desired output, in $EE$1 = 10

  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: Value X, Match ocurrence in Row A with parallel cell in Row B, Return Row B cell value

    Maybe this...

    =INDEX($DO$10:$DV$10,MATCH($ED$1,$DO$7:$DV$7,0))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    12-04-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2000
    Posts
    93

    Re: Value X, Match ocurrence in Row A with parallel cell in Row B, Return Row B cell value

    Hi, thanks Tony, it worked! Rep point on its way.

  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: Value X, Match ocurrence in Row A with parallel cell in Row B, Return Row B cell value

    You're welcome. Thanks for the feedback!

+ 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: 3
    Last Post: 05-08-2013, 02:10 PM
  2. Match cell value in another workbook & return adjacent cell value
    By WT2008 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-15-2013, 05:00 PM
  3. Replies: 6
    Last Post: 09-18-2012, 10:43 AM
  4. Replies: 1
    Last Post: 08-02-2012, 11:39 PM
  5. Match cell to cell on another worksheet to return all relevant rows
    By denise6372 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2012, 12:55 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