+ Reply to Thread
Results 1 to 5 of 5

Can't figure out the right formula for data sharing between worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Can't figure out the right formula for data sharing between worksheets

    Hi.

    I'm by no means an Excel expert. I've been working on this for 2 days, searching google and trying everything. What I have is a workbook with 2 sheets. I'd like to find a way to import data from the 2nd sheet to the first sheet where the info in one column matches on both sheets. It seems easy enough, but I can't make it work.

    What I'm trying to do is fill in the SKU, Cost, & Retail columns from sheet 2 into sheet 1 where the Style column matches on both sheets.

    I've attached the file here. My actual file is about 30,000 items but I've only attached around 50 or 100 so i can get the idea how to do this.

    HELP for this NOOB please!

    Thanks!
    Attached Files Attached Files

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

    Re: Can't figure out the right formula for data sharing between worksheets

    On the Product Sheet
    B2: =INDEX(Cost!A$2:A$127,MATCH($A2,Cost!$B$2:$B$127,0))
    D2: =INDEX(Cost!C$2:C$127,MATCH($A2,Cost!$B$2:$B$127,0))
    E2: =INDEX(Cost!D$2:D$127,MATCH($A2,Cost!$B$2:$B$127,0))

  3. #3
    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
    48,114

    Re: Can't figure out the right formula for data sharing between worksheets

    B2:
    Formula: copy to clipboard
    =INDEX(Cost!$A:$A,MATCH(Product!$A2,Cost!$B:$B,0))


    D2:
    Formula: copy to clipboard
    =VLOOKUP($A2,Cost!$B:$D,2,FALSE)


    E2:
    Formula: copy to clipboard
    =VLOOKUP($A2,Cost!$B:$D,3,FALSE)



    Copy all formulae down.


    Regards, TMS
    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


  4. #4
    Registered User
    Join Date
    09-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Can't figure out the right formula for data sharing between worksheets

    WOW! That worked. I was able to apply that to my large file and PRESTO! Thanks so much. Saved me tons of time. Now I'll be posting my next issue soon...

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

    Re: Can't figure out the right formula for data sharing between worksheets

    You're welcome.

    FYI, since you're returning multiple values based on the same lookup value...
    It would be wise to put the Match into it's own cell, then use that in the INDEX..

    Example

    In an available column, Say column Z
    Z2: =MATCH($A2,Cost!$B$2:$B$127,0)

    Then the formulas from my previous post are

    B2: =INDEX(Cost!A$2:A$127,$Z2)
    D2: =INDEX(Cost!C$2:C$127,$Z2)
    E2: =INDEX(Cost!D$2:D$127,$Z2)

    This will save alot of calculation time.
    Last edited by Jonmo1; 09-25-2013 at 04:55 PM.

+ 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. Multiple worksheets sharing data
    By Bosgarage57 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-30-2012, 10:43 AM
  2. Sharing data between worksheets (auto-update)
    By RUSH2CROCHET in forum Excel General
    Replies: 1
    Last Post: 06-22-2006, 02:35 PM
  3. [SOLVED] Formula help on information sharing between 3 worksheets
    By Macmo in forum Excel General
    Replies: 7
    Last Post: 05-13-2006, 11:50 AM
  4. Sharing Data Between Worksheets
    By spartikus in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-09-2006, 09:45 PM
  5. sharing rows of data across multiple worksheets within a workbook
    By deedle93 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 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