+ Reply to Thread
Results 1 to 4 of 4

Creating a Formula using values from worksheets in two workbooks

  1. #1
    Registered User
    Join Date
    11-25-2003
    Location
    New Jersey
    Posts
    6

    Creating a Formula using values from worksheets in two workbooks

    I have a situation where I have two workbooks. Workbook A contains Work Order details on separate worksheets including a Work Order name. the Work Order Name is the worksheet name The Second Workbook is an Invoice Workbook with Invoices for each customer purchase. I am trying to create a formula in My Invoice workbook that takes the Work Order name in the Invoice Workbook to reference the Work Order Worksheet in the Work Order Work book. By Example on Work Order Workbook Worksheet named "David Bruce" I have a line item total Price in cell H12. In my Invoice workbook I have a Work Sheet that contains the work order Name "David Bruce" and I would like to create a Reference in the Invoice Work Book on the specific invoice that points to the Cell H12.

    I have been able to create a direct reference ='[Work Order.xls]David Bruce'!$H$12 that does provide the correct result. What I am trying to do is Replace the specific Worksheet name "David Bruce" with a cell reference from the current the current workbook/worksheet by example D20.

    Thank You

  2. #2
    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
    44,464

    Re: Creating a Formula using values from worksheets in two workbooks

    You need to research INDIRECT.
    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


  3. #3
    Registered User
    Join Date
    11-25-2003
    Location
    New Jersey
    Posts
    6

    Re: Creating a Formula using values from worksheets in two workbooks

    Excellent got it to work. thanks for the suggestion

  4. #4
    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
    44,464

    Re: Creating a Formula using values from worksheets in two workbooks

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Creating multiple workbooks out of 1 workbook based on column values
    By Sirilias in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-13-2018, 05:11 PM
  2. [SOLVED] Creating variables that contain the values in various cells on different workbooks.
    By potga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2014, 06:19 PM
  3. Using Autofilter values to create new worksheets or workbooks
    By Mancolt in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 06-02-2014, 01:47 PM
  4. [SOLVED] Creating new Worksheets from two different Workbooks
    By BenK in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-31-2012, 01:50 AM
  5. [SOLVED] Creating New Workbooks From Worksheets in Different Workbooks
    By Panda2000 in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 07-27-2012, 06:53 PM
  6. Copy Paste Values all worksheets & creating new worksheets
    By ryan2600 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2012, 11:46 AM
  7. Creating New Workbooks from Multiple Worksheets (w/Pivot Tables)
    By Mancolt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2012, 09:42 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