+ Reply to Thread
Results 1 to 12 of 12

Consolidate Sheets VBA

  1. #1
    Registered User
    Join Date
    11-06-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    5

    Consolidate Sheets VBA

    Hi All,

    I have the attached excel file running dummy data. It runs a macro to consolidate the 3 sheets ('Olson Opportunities' , 'Ortenzio Opportunties' , and 'Sherman Opportunities') into 1 sheet called 'Matts Team Opportunities' (when the Refresh Data button is clicked on the 'Team Opportunity List' sheet).

    I then have a linked sheet to the data on 'Matts Team Opportunities' called 'Team Opportunity List' which I am planning on adding a few more fields to in order to do reporting off of. The issue I am running into is as follows:

    When I refresh the data - I get a bunch of #REF! errors and only the first 5 rows show up with data. I need to be able to do dashboard reporting off of the consolidated data - but the way it stands now, I am unable to do that.

    Any help would be greatly appreciated!

    Best,
    Nick
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Consolidate Sheets VBA

    You have linked formula. This is like a cut function. When you cut a cell with formula, you get this error.
    This is normal in excel. You are overwriting with no values, hence no reference. If you copied them again manually, the error disappears.

  3. #3
    Registered User
    Join Date
    11-06-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    5

    Re: Consolidate Sheets VBA

    Thanks, AB33. However, I can't copy them manually every time. This workbook is going to be linked to others in a SharePoint site. I need the data to automatically update for reporting purposes to senior management (there will be a dashboard and multiple reports running off of this data). Any suggestions there?

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Consolidate Sheets VBA

    Why are you copying the same information to different sheet? Why can not you use these as final consolidation where the data are copied?

    OR run another separate code where this code copies from the consolidates sheet in to final sheet. This will avoid the error.
    Last edited by AB33; 11-11-2015 at 11:24 AM.

  5. #5
    Registered User
    Join Date
    11-06-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    5

    Re: Consolidate Sheets VBA

    I cannot get that data to refresh in dashboards and reports, it stays stagnant when refreshed.

    The dashboard would show such data as 30, 60, 90 days pipeline, by rep, by team.

    Close Won/Los deals
    Win Rates

    Top 10 deals in pipeline

    And I cannot accomplish that currently using the consolidated data tab.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Consolidate Sheets VBA

    Why is the difference between these two sheets, except one is a table and other is a range? As I said, if this is the only option you have, run another code after end of the main(This) code just to copy the data only

  7. #7
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Consolidate Sheets VBA

    Your are getting #REF error specifically because of this line:

    Please Login or Register  to view this content.
    That will happen whenever you .delete a referenced range. Why not just clear the contents?

    Please Login or Register  to view this content.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  8. #8
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Consolidate Sheets VBA

    TRY THIS:

    The Zeros are Filtered from the final presentation sheet (if that does not work for your project purposes, I would suggest clearing them from each sheet PRIOR to copying to the main sheet).

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-06-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    5

    Re: Consolidate Sheets VBA

    Thank you, GeneralDisarray - I don't know why I didn't think about that... the simple things!

    Unfortunately, after altering the code - the refreshed data now only hows the first 5 rows of data (i.e. Olson1.1 - Olson 1.5) - the other data is now missing. What would be the reason for that? I don't understand.

  10. #10
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Consolidate Sheets VBA

    Which sheets are you trying to run on? The hidden sheets ending in _Data?

    This SHOULD work - if it don't, i'll see what I can do after lunch

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    11-06-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    5

    Re: Consolidate Sheets VBA

    Thank you, GeneralDisarray - you killed it man. this works perfectly for what I need. I appreciate the help here - really saved me some hours of headbanging into my desk. Take the rest of the day off, you deserve it, lol!

    Cheers

  12. #12
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Consolidate Sheets VBA

    sweet, glad to hear it worked thank you for the rep

+ 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. Consolidate multiple sheets
    By simonexcelhelp in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-30-2015, 03:47 AM
  2. [SOLVED] consolidate data in several sheets
    By Charles12 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2013, 04:13 PM
  3. Consolidate sheets
    By portucale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2013, 10:54 AM
  4. How to consolidate two sheets of data?
    By Christeen in forum Excel General
    Replies: 1
    Last Post: 11-18-2011, 10:18 AM
  5. Consolidate Sheets
    By tek9step in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-30-2009, 05:53 AM
  6. how to consolidate sheets
    By tommasopalazzot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2005, 12:15 PM
  7. [SOLVED] Consolidate sheets
    By Manos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2005, 12:06 PM

Tags for this Thread

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