+ Reply to Thread
Results 1 to 5 of 5

Problems adding large amounts of data with multiple criteria

  1. #1
    Registered User
    Join Date
    06-11-2014
    Posts
    20

    Exclamation Problems adding large amounts of data with multiple criteria

    Hello All,

    I have been stuck with a task at my job for a few days, and have been troubleshooting all over the internet to no avail. The task is as follows:

    I must prepare a data snapshot, that totals items from a large data set, using multiple criteria. I have constructed the formula I want to use, and tested the formula on small data range that I created. It works in the mock data set, but will not work with the actual set that I need to use, which contains thousands of items. I constructed the formula's this past Friday, and have been troubleshooting since across the internet with no success. I have quadrupled checked the formula's so I am sure there are no typos.

    Basically, I need to provide a count of items that only meet one criteria in the first column, one criteria in the second column, and three criteria in the thrid column. Due to company confidentiality, I have substituted the real criteria with different terms.

    Criteria for first column = "Truck" Second column = "Big" Third Column = "Flatbed", or "Crane", or "Tow"

    So, I need excel to count any item that meets the above criteria only once - e.g. One count for an item that is a truck, big, and flatbed. One count for an item that is a truck, big, and crane.

    Its not about adding the separate columns together, its about only counting items that match the criteria. A big flatbed truck would get counted, as would a big tow truck.

    The formula I have put together, and that is working with my test data set (which contains 8 rows) is as follows:

    =sum(countifs(A1:A8,"Truck",B1:B8,"Big",C1:C8,{"Flatbed","Crane","Tow"}))

    It gives me a correct total of the items in the sample, which is 6, since out of the seven items in that list, one of them has a blank in the column where the search is for an item with criteria "Trucks".

    When used on the main data, which is a live sheet with 3265 rows, it returns 0.

    Formula for live data page: =sum(countifs(A1:A3265,"Truck",B1:B3265,"Big",C1:C3265,{"Flatbed","Crane","Tow"}))

    Are their limitations to countifs? e.g. - it only counts a certain amount of rows, it cannot be used with a live spreadsheet, etc.

    I have been looking for a solution, or an alternative for days. Seems like I am chasing my own tail. Pretty much going crazy. Any help is appreciated. Thank you.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Problems adding large amounts of data with multiple criteria

    No, I'm not aware of a limitation like that.
    It's only around 3000 rows, that's not really alot for Excel.

    There must be some other reason it doesn't work on the 'real' data.
    Check the cells for leading/trailing spaces like " Truck" or "Truck " or " Truck "

    Can you post a sample book showing the behavior?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

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

    View Pic

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Problems adding large amounts of data with multiple criteria

    If there is a limitation, it is much greater than 3265.

    You are looking for exact matches so if there are spaces before or after any of your data. If it doesn't affect other data, you could do a FIND/REPLACE for " "
    or you could use wildcards in your formula
    =sum(countifs(A1:A3265,"*Truck*",B1:B3265,"*Big*",C1:C3265,{"*Flatbed*","*Crane*","*Tow*"}))

    Another method is to try removing one term at a time and see if that jives with the data, do countifs on B and C only or A and B and see what happens. Let us know.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    06-11-2014
    Posts
    20

    Re: Problems adding large amounts of data with multiple criteria

    Hey Guys,

    My apologies for the late response - very busy.

    Due to the timeframe I had to complete this work, I ended up coming up with a workaround to this problem - ended up just using hidden pivot tables, that also turn out to be a better option since they will provide for a more dynamic snapshot (less manual work on my end).

    Nevertheless, I appreciate the support. Thank you for your help.

    - J

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Problems adding large amounts of data with multiple criteria

    Yes, Pivot Tables Rock!
    They are sorely underappreciated/underused.

+ 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. Updating Large Amounts of Data
    By s.custo2011 in forum Excel General
    Replies: 3
    Last Post: 02-20-2014, 01:40 AM
  2. Processing large amounts of data problems
    By rechar in forum Excel General
    Replies: 1
    Last Post: 12-17-2013, 08:01 PM
  3. Averaging large amounts of data
    By clarson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2013, 02:11 PM
  4. Large Amounts of Data
    By Drewser33 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-17-2008, 09:13 AM
  5. Problems with working out averages with large amounts of data
    By mindblank in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2008, 05:17 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