+ Reply to Thread
Results 1 to 3 of 3

Replace Column References with Next Column

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    Birmingham, AL
    MS-Off Ver
    Office 2016
    Posts
    8

    Replace Column References with Next Column

    One spreadsheet in my workbook holds all financial statements, printable. The formulas pull from the other spreadsheets which are updated monthly by pasting data into the next column.

    I need the cells referenced in some formulas to move one column right each month.
    For example:

    In spreadsheet "Reporting Package"

    Cash ='Trial Balance'!AJ491
    A/R ='Trial Balance'!AJ493

    Contributions ='Trial Balance'!AJ270-'Trial Balance'!V270

    I need all these formulas to move from referencing column AJ to AK, (but to not change column V in the contributions formula). Next month, I'll need to move from AK to AL, still not changing column V.

    Thus far, I've been running a "find and replace" and writing:
    Find: 'Trial Balance'!AJ
    Replace: 'Trial Balance'!AK
    This works fine, but there are many of these to do. Find: Budget'!BC, Revenue'!AJ, Trial Balance'!AI, and so on.

    Is there an easier way? I find it difficult to see how a macro could handle this without needing to be re-written each month. In that case, I may as well do it as I currently do.

    Any input is greatly appreciated.

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

    Re: Replace Column References with Next Column

    Hi zmarsh,

    Something like this:

    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

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

    Re: Replace Column References with Next Column

    if each month contains a "month/date" heading, then you could use an index/match to do the "conversion" for you, such that for August, it would look for that heading in your data table, and then pull in the required data to the summary table
    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

+ 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