+ Reply to Thread
Results 1 to 9 of 9

Referencing a different workbook (Updated w/Workbooks)

  1. #1
    Registered User
    Join Date
    06-29-2010
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2016
    Posts
    75

    Referencing a different workbook (Updated w/Workbooks)

    Hi guys,

    I have two workbooks. One is a balance sheet, and has a list of product #'s in column A, and a list of units corresponding to the product # in column B.

    In the second workbook that I am creating, I have the same list of product #'s. I need to be able to input the sum of a group of units from workbook 1 into this new workbook, and have it be visible or 'saved' even when the first workbook is closed. For example:

    If in dummy book 1 I have item #'s for the color 'red' for 6 sizes, I need to pull the sum of those 6 item #'s from dummy book 2 into cell C2 in book 1, and be there even if book 2 is not open.

    Do I need to create a macro to do this, or is there a way to use a formula?

    **I have uploaded dummy versions of the two workbooks. In book 1, I have highlighted in yellow where the sums should go. Item #'s are on the right side. In book 2, I have the item #'s on the left with corresponding unit balances. Let me know if that is unclear! **

    Thanks,
    Attached Files Attached Files

  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
    52,939

    Re: Referencing a different workbook (Updated w/Workbooks)

    see if this gives you what you need. adjust references as needed
    Attached Files Attached Files
    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
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Referencing a different workbook (Updated w/Workbooks)

    Hi Dynamo418,

    I got 5732 for Green:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    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
    52,939

    Re: Referencing a different workbook (Updated w/Workbooks)

    xladept, the OP's value for green is correct

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Referencing a different workbook (Updated w/Workbooks)

    Yeah, you're right - I just checked it again.

  6. #6
    Registered User
    Join Date
    06-29-2010
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2016
    Posts
    75

    Re: Referencing a different workbook (Updated w/Workbooks)

    Thanks guys, that would appear to work. The issue I am having is the Vlookup reference cell from sheet 1 is a concatenation of 2 other cells, in 'general' format. So, i'm left with - for example - 214077789. I get an 'N/A#' message when trying to pull from the other sheet (also all in general format). However, if I type in 214077789 on the original sheet, I can pull the value from sheet 2. What's going on? I've tried switching the concat. & sheet 2 reference to number format, no luck .

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Referencing a different workbook (Updated w/Workbooks)

    Hi Dynamo418,

    Did you try my code?

  8. #8
    Registered User
    Join Date
    06-29-2010
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2016
    Posts
    75

    Re: Referencing a different workbook (Updated w/Workbooks)

    I'm trying to... before I go through the process: the reference cells from the 2nd workbook are in 'number stored as text format' and cannot be changed. Is it even possible to use that code with that kind of format?

    Thanks!

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Referencing a different workbook (Updated w/Workbooks)

    I don't know - they're in general format on the samples you posted - it's worth a try!

    For some reason the finder stopped working - here's the code sans finder:

    Please Login or Register  to view this content.
    Last edited by xladept; 08-20-2012 at 11:26 PM.

+ 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