+ Reply to Thread
Results 1 to 6 of 6

MACRO to get sum of specific column from various worksheets and appending the sheet name

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    46

    MACRO to get sum of specific column from various worksheets and appending the sheet name

    Hi,

    I have a workbook named as "DCR_Summary". In the sheet "FX", I want to get the sum of a specific column from two different workbooks named as "WNCR REPORT" and "DCCR-REPORT". The name of the column is "FXCOLL". The summation should start in row 7 all the way down where data is available. The good thing is that, my sum range will always starts at row 7 in both files but the bad thing is that the position of column "FXCOLL" is changing every day. The expected result is shown in the attached "DCR_Summary". It should pick at the same time the Sheet names where the summation came from. Sheet names is also changing and sometimes the FXCOLL is nil, hence, 0 value can be returned.

    Summing this everyday is inefficiency for me, please help to create the code to get this done on a single click.

    Thanks and regards,

    Alner
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: MACRO to get sum of specific column from various worksheets and appending the sheet na

    Please Login or Register  to view this content.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Registered User
    Join Date
    01-11-2014
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: MACRO to get sum of specific column from various worksheets and appending the sheet na

    Hi Natefarm,

    there is an error in

    Please Login or Register  to view this content.
    please see the screen shotsGetFX.jpg

  4. #4
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: MACRO to get sum of specific column from various worksheets and appending the sheet na

    The workbooks with those exact names have to be open for the code to work. If you need the code to open the workbooks for you, that could be added. Also, the summary workbook has to be the active workbook when you run the code.

  5. #5
    Registered User
    Join Date
    01-11-2014
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: MACRO to get sum of specific column from various worksheets and appending the sheet na

    oh my! It's like a miracle to me! it works perfectly! Thanks a million...

  6. #6
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: MACRO to get sum of specific column from various worksheets and appending the sheet na

    Dang! Nate beat me to it.

    My contribution.

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

+ 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. Replies: 4
    Last Post: 01-23-2014, 10:57 AM
  2. Appending all found data from one excel sheet to a column in another sheet
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2013, 10:30 AM
  3. [SOLVED] Macro button copy specific rows from all worksheets to a summary sheet
    By cme in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-17-2013, 10:22 PM
  4. Replies: 6
    Last Post: 06-27-2012, 04:38 PM
  5. Replies: 1
    Last Post: 06-17-2012, 05:16 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