+ Reply to Thread
Results 1 to 2 of 2

Copy from one sheet to another but where values met

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2012
    Location
    Aberdeen
    MS-Off Ver
    Excel 2003
    Posts
    1

    Copy from one sheet to another but where values met

    Hi Gurus,

    I want to copy value from one sheet to another but based on a condition if it meets.

    E.g I have two sheets:
    Sheet 1: Column A(Order no), Column B(Price), Column C(Order date)

    A2001 $10 01.07.2012
    A2002 $30 04.07.2012
    A2003 $50 30.07.2012


    Sheet 2: Column A(Order no), Column B(Price), Column C(Order date)

    A2001

    In sheet 2, I have only Order no and I want to copy Price and Order date from sheet 1 where Order no. is matched.

    Please suggest how this can be achieved.

    Thnx
    Aby

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy from one sheet to another but where values met

    On sheet2 in B2, put this initial formula, then copy down and across as needed:

    =IF(ISNUMBER(MATCH(A2, Sheet1!$A:$A, 0)), INDEX(Sheet1!B:B, MATCH(A2, Sheet1!$A:$A, 0)), "")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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