+ Reply to Thread
Results 1 to 4 of 4

Matching two values in same column and returning value from one row

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    41

    Matching two values in same column and returning value from one row

    Hi Guys,

    In the attached example I paste in a report from another system into Sheet2 (rough data layout in example).

    In column B in Sheet1 I have tried using Match and Index formulas to try and return only the Local Shipment figures from on Sheet2 for each staff member.

    The issue i'm having is that the data in Sheet2 can change based on how long the report is run. There is also no way I can change the way the raw data is set out in Sheet2 as it's an external system.

    Basically i'm looking for a formula that isn't locked down to certain cells and can work with data moving up and down columns at different stages. The key data never changes from column A and F in sheet2. But what does change is whether each person has one or both of Sales & Local Shipment data in the reporting. This obviously changes based on what is completed each day.

    So I need a formula that matches the persons name in column A in Sheet1 with Column A in Sheet2, then looks for the first mention of 'Local Shipment' below it and returns the cloumn F value which is in the same row as 'Local Shipment'.

    Thanks
    Rooboyz
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Matching two values in same column and returning value from one row

    Hi,
    I really do not know the formula that can be usefull, but look at private function that works as needed:

    Please Login or Register  to view this content.
    Sample8.xlsm

    Hope it helps

    Regards

    M

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Matching two values in same column and returning value from one row

    Hi Rick,

    Here's a non-vba solution just using sheet formulas. Please find enclosed the revised workbook.

    Use the below formula against each name in Sheet2 :

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I also added 2 new dummy names and corresponding test values. The above formula works fine
    Attached Files Attached Files
    Last edited by Saarang84; 05-12-2014 at 03:21 AM.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Registered User
    Join Date
    10-09-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Matching two values in same column and returning value from one row

    Quote Originally Posted by Saarang84 View Post
    Hi Rick,

    Here's a non-vba solution just using sheet formulas. Please find enclosed the revised workbook.

    Use the below formula against each name in Sheet2 :

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I also added 2 new dummy names and corresponding test values. The above formula works fine

    Thank you Sarang that's brilliant!

    Works perfectly.

    I love the Cricket reference as well!
    Last edited by rooboyz; 05-14-2014 at 02:20 AM.

+ 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. [SOLVED] Excel 2003 - Returning the date in column for matching values
    By SunRay in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-07-2014, 02:44 PM
  2. Replies: 2
    Last Post: 11-14-2013, 01:44 PM
  3. Replies: 2
    Last Post: 12-30-2011, 07:30 PM
  4. Replies: 8
    Last Post: 12-25-2011, 08:39 PM
  5. [SOLVED] Matching values & returning on the same row
    By Sharon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2005, 09:06 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