+ Reply to Thread
Results 1 to 4 of 4

repetitive sumifs, maxifs, minifs - is there a way to only run the formula once?

  1. #1
    Registered User
    Join Date
    07-22-2019
    Location
    Williamsburg, VA
    MS-Off Ver
    Version 1902 (Build 11328.20318)
    Posts
    2

    repetitive sumifs, maxifs, minifs - is there a way to only run the formula once?

    All, new to the forum. Not even sure what this is called, so forgive me if its been answered before.

    I'm trying to apply some KPI's to a large (130K+ rows, 5 columns) data set. Each row is a work order or invoice for a specific piece of equipment. So unique identifiers are the invoice # itself, along with serial # of the asset (repeats as it ages, more work orders accrue, etc.).

    My formulas are in the green columns (F-J). The formulas work and give me what I need, but all the maxifs, minifs, maxifs etc. really bog my computer down. In this snipet that I'm providing they're fine, but trying to drag down to 130K rows crashes my computer. I only need the formulas to run once per serial # occurrence (Column A). Is there any way to do this, or another way I'm not thinking about?

    Thanks in advance.

    Edit - file attached
    Attached Files Attached Files
    Last edited by bicbuck; 07-22-2019 at 12:59 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,283

    Re: repetitive sumifs, maxifs, minifs - is there a way to only run the formula once?

    You can post a workbook, but not links. Instructions below:

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-22-2019
    Location
    Williamsburg, VA
    MS-Off Ver
    Version 1902 (Build 11328.20318)
    Posts
    2

    Re: repetitive sumifs, maxifs, minifs - is there a way to only run the formula once?

    Thanks Ali, test data below.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,835

    Re: repetitive sumifs, maxifs, minifs - is there a way to only run the formula once?

    Hello bicbuck and Welcome to Excel Forum.
    I feel that the whole column references in columns G, I and J are the culprits. For example the formula in column G = MAXIFS(B:B,A:A,A2)-MINIFS(B:B,A:A,A2) is looking to find the MAX of 1048576 Hour Meters where 1048576 Serial Numbers match the one in cell A2, then the same happens again with finding the MIN. 130K is a lot but still only 12% of an entire column.
    As the data will expand I suggest converting the range to a table and modify the formulas in G, I and J to reference only the cells in the table. As the table expands the formulas should automatically update (i.e. when I added row 438 to the sample).
    You may also want to consider adding another column (K) that would calculate =MAXIFS(C$2:C$437,A$2:A$437,A2)-MINIFS(C$2:C$437,A$2:A$437,A2)
    This result could then be used in both columns I:J so that they don't both run the same calculation.
    For I: =G2/(K2*0.711841205)
    For J: =F2/(K2/30.4375)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. MAXIFS formula that excludes based on date
    By xavior1325 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2019, 01:41 PM
  2. [SOLVED] MAXIFS and MINIFS not available
    By TFiske in forum Excel General
    Replies: 7
    Last Post: 05-08-2019, 11:27 PM
  3. Maxifs from Sumifs
    By zico8 in forum Excel General
    Replies: 3
    Last Post: 02-22-2019, 04:52 PM
  4. [SOLVED] I need a MAXIFS formula simalr to SUMIFS but with max value
    By Vicarious in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-25-2017, 04:50 PM
  5. Excel Help MINIFS
    By wolf767 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2015, 06:55 AM
  6. Repetitive SUMIFS that don't work with new cells
    By Jp4Real in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-19-2014, 11:14 PM
  7. Minifs, maxifs, averageifs, medianifs, coeffvarifs
    By qwertyjjj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2014, 07:48 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