+ Reply to Thread
Results 1 to 6 of 6

Need to track and display a "Best Day" value based on category

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Charlesont, SC
    MS-Off Ver
    Excel 2003
    Posts
    4

    Need to track and display a "Best Day" value based on category

    What I need to do is to keep track of the max value based on a category.

    To elaborate:
    We make 12 different products.
    We can make any number of each on any given day.
    My list sheet is arranged by date, category, pounds produced, and a number of other data ranges. (several thousand lines) I also have a complete list of products we can make on another sheet with the categories in column one.

    I need to check if the 'pounds produced' each day is greater then the current 'best day' for the product category and if so, make it the new 'best day' value.

    This will most likely be inserted into the macro I use to sort my data by manufacturing module. I have complete autonomy over this workbook so anything goes.
    Last edited by RBumgarner; 09-23-2011 at 10:46 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need to track and display a "Best Day" value based on category

    A sample workbook would make this easiest to demonstrate, but you'll need a MAX(IF) function, and that's usually an array formula. The problem with array formulas is they are memory intense. But if there are only going to be 12 of these on the sheet, that might be ok, even with a lot of data to examine.

    Post up a good-sized sample workbook demonstrating data and a manual mockup of the results you're after, I'll show you from that.

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-01-2011
    Location
    Charlesont, SC
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need to track and display a "Best Day" value based on category

    While I can't post the actual data, I did throw together a mock up of what I'm working with
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need to track and display a "Best Day" value based on category

    Your sample is missing the mockup of the sample results. What should the answers be and point out why if it's not glaringly obvious.

  5. #5
    Registered User
    Join Date
    09-01-2011
    Location
    Charlesont, SC
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need to track and display a "Best Day" value based on category

    Each category (I used A through I) represents a product type.
    I somehow need to take the actual pounds each day and compare it to an 'all time high' which does not appear anywhere yet, but it has to be category (product type) specific..

    I could filter for category and take the max value in the 'actual pounds' category, but I would have to do that for each category every day. But not all products are produced every day... some days we'll only make products C,F, and I...

    This is why I'm stumped.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need to track and display a "Best Day" value based on category

    So, based on the sample sheet, the value in cell C2 would be 21158 because row 83 on sheet1 has 21158 for column D and that's the highest value.....

    What would D2 be?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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