+ Reply to Thread
Results 1 to 6 of 6

Open workbook and perform sumproduct

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    13

    Open workbook and perform sumproduct

    Hi

    I have a workbook that contains two sheets that has 20k of rows of data and in a summry sheet I have a SUMPRODUCT and SUMIF formula together which performs the sum function on the large set of data based on a range of criteria on another sheet. Here's the formula:


    =SUMPRODUCT(SUMIFS(BalSht!$F$2:$F$20175,BalSht!$B$2:$B$20175,CedantCode,BalSht!$K$2:$K$20175,'2. Booked Financials'!$A46))


    the problem I have, is that by combining the large data set into my workbook it is becoming slow and unwieldy. I was thinking of having a macro button that when the user has input the criteria, they click the button and it then opens up another workbook and performs the sumproduct(sumif formula.

    Im not sure of going about this with VBA

    Your help would be appreciated.

  2. #2
    Registered User
    Join Date
    02-11-2014
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Open workbook and perform sumproduct

    Can anyone point me in the right direction for the VBA to open the workbook and then perform a function?

    Cheers

  3. #3
    Registered User
    Join Date
    02-11-2014
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Open workbook and perform sumproduct

    Anyone?

    Thanks

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,791

    Re: Open workbook and perform sumproduct

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    02-11-2014
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Open workbook and perform sumproduct

    OK

    The user inputs their codes on input form, These will change and there will be variable numbers of codes and must therefore be in the confines of teh range named "Codes".

    The summary tab is the SUMPRODUCT results, however, I do not want to store the data in the same workbook as there are 20000 rows of data.

    I was thinking that there could be a button for the user to click and it will open up the workbook with the data and perform the sumproduct function. I'm no expert, but you might have an alteranative way.

    Appreciate your help.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-11-2014
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Open workbook and perform sumproduct

    your help would be very much 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. Macro to open a closed workbook and select copy cells into an open workbook
    By helloganesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2013, 02:00 PM
  2. Even Open Source Spreadsheets Out-Perform Excel 2010
    By Jacques Pierre James in forum The Water Cooler
    Replies: 29
    Last Post: 02-02-2013, 09:55 AM
  3. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  4. Perform Calculation within SUMPRODUCT
    By Fermented Reptile in forum Excel General
    Replies: 8
    Last Post: 12-30-2011, 08:07 AM
  5. Save an open workbook, then open template workbook and close the saved workbook
    By ondvirg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 10:20 PM

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