+ Reply to Thread
Results 1 to 7 of 7

Need a workaround because SUMPRODUCT doesn't support wildcards

  1. #1
    Forum Contributor
    Join Date
    04-29-2010
    Location
    Tallahassee, FL
    MS-Off Ver
    365
    Posts
    100

    Need a workaround because SUMPRODUCT doesn't support wildcards

    We're currently using SUMPRODUCT to update daily cash receipts, but the raw data is always in the same workbook as the formulas. We have over 100 workbooks that are set up like this. We've been using a macro to copy and paste the sheet with the raw data into a specific sheet in each workbook each day, which is being referenced by the formula. We've started having problems using this method, so now I'm trying to change the way they are updated to linking all of them to a file in a central folder. I have successfully linked the formula to the current data file, but every month the name of the data file will change. The naming convention is "MONTH YEAR Deposits per Bank", so I need a workaround to use in the SUMPRODUCT formula so it will connect to the file regardless of the month and year.

    The formula pulls in the data based on matches with Company # in column P and the Date in Column A. Thank you.

    =SUMPRODUCT((RIGHT('[January 2024 Deposits per BANK.xlsx]Merchant'!$A$8:$C$3000,3)=$P$1)*('[January 2024 Deposits per BANK.xlsx]Merchant'!$A$8:$A$3000=$A9)*('[January 2024 Deposits per BANK.xlsx]Merchant'!$C$8:$C$3000))

    Cash sheet-1.png

    Cash sheet-2.png
    Attached Images Attached Images

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need a workaround because SUMPRODUCT doesn't support wildcards

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Need a workaround because SUMPRODUCT doesn't support wildcards

    I think you will find it difficult to get a formula-based solution for this, as you seem to want to generate the filename (as a string) and then use that as a reference in a formula. You would normally do this using the INDIRECT function, but that cannot be used to get data from a file which is closed, and from what you have said I can't imagine that you would arrange to have 100 files open simultaneously.

    Probably not what you would want to hear, but hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Need a workaround because SUMPRODUCT doesn't support wildcards

    Depending of the structure of your files you could use Power Query (Excel tool) to import every worksheet that is in a folder, regardless of the name and eventually do some calculations before saving it in your Central Worksheet.

    See the video of how can it be done:
    Easiest way to COMBINE Multiple Excel Files into ONE (Append data from Folder)

  5. #5
    Forum Contributor
    Join Date
    04-29-2010
    Location
    Tallahassee, FL
    MS-Off Ver
    365
    Posts
    100

    Re: Need a workaround because SUMPRODUCT doesn't support wildcards

    Thank you, everyone. I will continue to look for other options to get the data into the files.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Need a workaround because SUMPRODUCT doesn't support wildcards

    Why don't you have a temporary file that you copy the latest file into (as well as saving it as "MONTH YEAR Deposits per Bank") and ensure that all previous data is deleted, and then have references to this temporary file so that the filename and sheet name does not change from one month to the next.

    Hope this helps.

    Pete

  7. #7
    Forum Contributor
    Join Date
    04-29-2010
    Location
    Tallahassee, FL
    MS-Off Ver
    365
    Posts
    100

    Thumbs up Re: Need a workaround because SUMPRODUCT doesn't support wildcards

    Thank you, Pete. That is an excellent idea!

+ 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. Object doesn't support...on certain computers
    By gcerulli in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2019, 09:27 AM
  2. Speed up or workaround SUMPRODUCT() Macro
    By Hieronymus5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2014, 07:16 AM
  3. Sumproduct Workaround
    By reidyg in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-18-2014, 10:07 AM
  4. SumProduct Index workaround
    By arazoe in forum Excel General
    Replies: 2
    Last Post: 09-20-2010, 10:10 AM
  5. VS.Net doesn't support *.xlsm files
    By munzer1 in forum Excel General
    Replies: 1
    Last Post: 07-10-2007, 01:17 AM
  6. Replies: 3
    Last Post: 06-14-2006, 02:10 PM
  7. [SOLVED] Object doesn't support this method
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2005, 06:05 AM

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