+ Reply to Thread
Results 1 to 10 of 10

Macro or query formula to add different sheets data in one

  1. #1
    Registered User
    Join Date
    05-27-2014
    Location
    Manchester
    MS-Off Ver
    2007, 2010
    Posts
    73

    Macro or query formula to add different sheets data in one

    Hi All

    Lovely people!

    Will highly appreciate help on this, This query is related to the flow statement data to summarise in one sheet

    The three sheets data I am looking to add and in one sheet Year 2020

    asking help to create macro or query for best visuals

    basically summary of 3 different sheet data into Year 2020 sheet


    I hope I explained it proper, let me know please if any question

    Find attached workbook.

    Thanks a lot in advance for help


    Kind Regards
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: Macro or query formula to add different sheets data in one

    Have you heard of 3D reference?

    If the worksheets to be calculated are next to each other like your sample workbook then
    Formula in C2 in Year 2020
    =SUM('450 LFB:450 HQ Bio'!D3)

  3. #3
    Registered User
    Join Date
    05-27-2014
    Location
    Manchester
    MS-Off Ver
    2007, 2010
    Posts
    73

    Re: Macro or query formula to add different sheets data in one

    Hi,

    Thankyou for reply, I am really looking for macro to apply here.

    Will highly appreciate response with macro query

    Kind Regards

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: Macro or query formula to add different sheets data in one

    No really sure about how exactly you want to do, so hope you can amend then code.
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi ! Try this !


    According to the attachment as a VBA beginner starter :

    PHP Code: 
    Sub Demo1()
        
    With Worksheets
           
    .Item(1).[C3:G6,C10:G14,C19:G19,C21:G23,C25:G31,C33:G38,C40:G40,C46:G54,C58:G61].Formula _
                
    "=SUM('" & .Item(2).Name ":" & .Item(.Count).Name "'!D3)"
        
    End With
    End Sub 
    ► Do you like it ? ► ► So thanks to click on bottom left star icon « Add Reputation » !

  6. #6
    Registered User
    Join Date
    05-27-2014
    Location
    Manchester
    MS-Off Ver
    2007, 2010
    Posts
    73

    Re: Macro or query formula to add different sheets data in one

    Hi

    Thanks I did tried to enter code gives me run time error,

    Could you please add in file as attachment

    Regards

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,717

    Re: Macro or query formula to add different sheets data in one

    It would be better for you to attach your workbook with your attempt for someone to troubleshoot.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    05-27-2014
    Location
    Manchester
    MS-Off Ver
    2007, 2010
    Posts
    73

    Re: Macro or query formula to add different sheets data in one

    Hi,

    Here the attachment the file to work on
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,717

    Re: Macro or query formula to add different sheets data in one

    That's not macro-enabled, so it won't contain your attempt at implementing the code. Your helpers will need to see what you did. Macro-enabled workbooks have the .xlsm suffix.

  10. #10
    Registered User
    Join Date
    05-27-2014
    Location
    Manchester
    MS-Off Ver
    2007, 2010
    Posts
    73

    Re: Macro or query formula to add different sheets data in one

    apology here the macro file

    I added more data sheets and seems 2nd Macro Mark L ones works

    Might I have to add more data in sheets, if any problem will come back for help

    Thankyou for help and responses
    Attached Files Attached Files
    Last edited by raysrains; 04-05-2020 at 11:01 AM.

+ 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] Converting Google Sheets QUERY to Correct Excel Formula
    By davis909 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2017, 09:14 AM
  2. Replies: 4
    Last Post: 11-28-2015, 02:15 PM
  3. Replies: 0
    Last Post: 06-20-2015, 02:42 PM
  4. Replies: 0
    Last Post: 05-08-2015, 06:06 AM
  5. Replies: 0
    Last Post: 05-06-2015, 01:10 PM
  6. Need a formula that will partial match data on multiple sheets
    By dmitch20 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2013, 08:44 PM
  7. Replies: 0
    Last Post: 11-19-2009, 09:20 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