+ Reply to Thread
Results 1 to 5 of 5

Need help making my formula system more efficient

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Need help making my formula system more efficient

    I was in the process of putting together a workbook today, when I realized the inefficient system I was using was creating way too big a workbook. Each sheet had something like 250,000 formulas and I needed hundreds of sheets. Anyways, on to what I need help with...

    Basically I have one sheet called "Sales" where most of the data for the week would get inputted. There would be ~1000 sales per week between ~200 unique customers. Each sale has a few columns of very basic information such as customer #, price, discount, etc. Using the raw unsorted data from the Sales sheet, I need to populate a separate sheet for each customer (so 200 customer sheets).

    So for example if customer #140 buys 8 products throughout the week, I need a excel to search all 1000 sales on the Sales sheet to find #140's purchases. The result should be 8 neat row of data listed on Customer #140's sheet.

    What I was previously using was a huge grid of =IF(A1=140,B1,0)... IF(A1=140,C1,0)... and so on, then dragging it down 1000 rows to populate the sheet with the relevant sales but with lots of empty space. Then using INDEX to collapse the data how I needed it. This huge grid was on every customer sheet, and there were too many formulas.

    Are there maybe some smarter ways of using formulas to gather this data together, or am I going to need to resort to using macros for a project like this?

    Thanks

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Need help making my formula system more efficient

    how about filtering data in a way similar to shown it this recent thread:
    http://www.excelforum.com/excel-new-...orksheets.html

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Need help making my formula system more efficient

    A pivot table might also help. Please post a sample sheet (no pics) so we can see the layout - Thx

  4. #4
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Re: Need help making my formula system more efficient

    I don't have any experience with macros, so I'm obviously not really sure what I'm doing. I tried to copy the code from Kaper's sheet and replace it with the changes relevant to my sheet, but I'm getting some error when I try to input data into my sales sheet.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Re: Need help making my formula system more efficient

    This is basically how I feel right now. I'm reading a tutorial on macros and trying to learn them!

    macrodog.jpg

+ 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] Need Help Making Macro Faster/More Efficient
    By rbac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-09-2013, 10:52 AM
  2. Help needed on making code more efficient
    By FallingDown in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-27-2011, 07:49 AM
  3. making code more Efficient !!! please help
    By virgiliocabrera in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2011, 09:09 PM
  4. making code more efficient
    By JChandler22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2008, 05:11 PM
  5. Making an excel formula more efficient
    By excel1000 in forum Excel General
    Replies: 2
    Last Post: 03-16-2008, 02:47 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