+ Reply to Thread
Results 1 to 6 of 6

Combining References

  1. #1
    Registered User
    Join Date
    10-22-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    2

    Combining References

    I am combining several separate workbooks into a single workbook. Each of the separate workbooks has only one worksheet which makes combining easy. After I combined the workbooks, I noticed that every worksheet referenced the same set of cells, in this instance unit costs for products. Before, the previous user had gone through each workbook and updated the same unit costs over and over and over. I want to have each worksheet in the new workbook reference a new worksheet that would have only the unit costs on them. That way I can update the unit costs only once and the whole workbook would be updated. However, I do not want to go through each and every formula on each worksheet and manually change the formulas to reference the new unit cost worksheet. Is there a way I can change all of the references quickly? I was thinking a copy+paste the unit costs from existing worksheets to the new worksheet, but I get reference errors when I paste over the unit costs from the last worksheet. Can anybody help?

  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: Combining References

    CTRL-H to open the SEARCH/REPLACE feature.
    Make sure advanced options are visible.
    Search the whole workbook for formulas and search/replace the reference values.
    _________________
    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!)

  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,248

    Re: Combining References

    This is a suggested approach and, as such, is untested.

    It also assumes that the layout of each sheet is the same.

    Having copied all the worksheets into one workbook, each with its own set of unit costs, make an extra copy of one of the sheets and rename it as "Unit Costs". Delete the contents of the other cells but don't delete columns or rows (at this stage)

    Then change the Unit Costs (table entries) to refer to the same cells on the Unit Costs worksheet.

    Having set up the references on one of your original sheets, copy the table to each of the other sheets.

    Once all the sheets refer to the new table on the Unit Costs worksheet, you can delete rows and columns on the Unit Costs sheet to "tidy it up".

    It's dirty but relatively quick. Ideally, you'd change any formulae on the original sheets to refer directly to the new table on the Unit Costs worksheet but that could be a lot of work. Having said that, it could just be a case of changing one formula and autofilling down. Difficult to say without seeing the sheets.

    Regards
    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
    10-22-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Combining References

    Thanks to both of you. I managed to fix it with your help!!

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

    Re: Combining References

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  6. #6
    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,248

    Re: Combining References

    You're welcome. Thanks for the feedback.

+ 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