SUMIFS filtering on dotline

mporter785

New Member
Joined
Jun 14, 2022
Messages
21
Office Version
  1. 365
Platform
  1. Windows
forum_ex.xlsx
ABCDEFGHIJ
1DescritptionMaterial NumberEXCEL DESCRIPTIONProd_TypeProd_Cat.Time SavedNumber w/0 dotlineNumber with DotlineTime Saved (W/o) Time Save With
2MD20 SS HousingsV353378.B01HSG,MD20,MACH,304HOUSINGMD691854108
3MD20 GI Housings IndiaV353377.B01HSG,MD20,MACH,GIHOUSINGMD3234769141
Airlocks
Cell Formulas
RangeFormula
G2G2=SUM(SUMIFS(sab_prod!F:F,sab_prod!G:G,"*MD20 AIR*",sab_prod!M:M,{"*SS*","*304*","*316*"},sab_prod!B:B,"<>*.*",shipact,">="&Airlocks!$L$3,shipact,"<="&Airlocks!$L$4,cancel1,"FALSE"))
H2H2=SUM(SUMIFS(sab_prod!F:F,sab_prod!G:G,"*MD20 air*",sab_prod!M:M,{"*SS*","*304*","*316*"},sab_prod!J:J,">="&Airlocks!$L$3,sab_prod!J:J,"<="&Airlocks!$L$4,cancel1,"FALSE"))
I2:I3I2='offloaded parts.xlsx'!TBL_SUM[@[Time Saved]]*'offloaded parts.xlsx'!TBL_SUM[@[Number w/0 dotline]]
J2:J3J2='offloaded parts.xlsx'!TBL_SUM[@[Time Saved]]*'offloaded parts.xlsx'!TBL_SUM[@[Number with Dotline]]
G3G3=SUM(SUMIFS(sab_prod!F:F,sab_prod!G:G,"*MD20 AIR*",sab_prod!M:M,{"*GI*","*CS*"},sab_prod!B:B,"<>*.*",shipact,">="&Airlocks!$L$3,shipact,"<="&Airlocks!$L$4,cancel1,"FALSE"))
H3H3=SUM(SUMIFS(sab_prod!F:F,sab_prod!G:G,"*MD20 air*",sab_prod!M:M,{"*GI*","*CS*"},sab_prod!J:J,">="&Airlocks!$L$3,sab_prod!J:J,"<="&Airlocks!$L$4,cancel1,"FALSE"))
Named Ranges
NameRefers ToCells
cancel1=sab_prod!$R:$RG2:H3
shipact=sab_prod!$Q:$QG2:G3



job numberColumn1itemplantcustomerqtydescriptiondeptship-datejob-plnshp-plnPricemch-matmch-hsgmch-eplmch-rtrship-actcancelmch-cmplepl-stockrtr-stockmisc-stockedate
11004616771010SABWESTLAKE POLYMERS LP1 MD20 AIRLOCKM/S4/8/20224/1/20228097SSSSSP XMD20,SS,OE,8VN,FR8,C14/7/2022 0:00FALSETRUETRUETRUETRUEApril 2022
11004643891010SABJOHNSON MATTHEY PROCESS1 MD20 AIRLOCKM/S4/8/20224/1/202211058304L304L XSP CP 304L XMD20,SS,CE,8VN,FR8,SPCL4/14/2022 0:00FALSETRUETRUETRUETRUEApril 2022
11004645701010SABHEARTLAND FOOD PRODUCTS1 MD20 AIRLOCKM/S5/13/20225/6/20229628SSSS VNT XSP XMD20,SS,OE,8VN,ADJ32,CG80,SPCL 6-85/18/2022 0:00FALSETRUETRUETRUETRUEMay 2022
11004646551010SABEMS CHEMIE NORTH AMERICA INC1 MD20 AIRLOCKM/S4/8/20224/1/20226550SSSSSPMD20,SS,OE,8VN,FR16,C14/7/2022 0:00FALSETRUETRUETRUETRUEApril 2022
11004658102020SABSOUTHWIRE MC CABLE1 MD20 AIRLOCKM/S5/13/20225/6/202211484SSSSSP XMD20,304L,OE,8VN,FR8,CG24,RV,C15/11/2022 0:00FALSETRUETRUETRUETRUEMay 2022
11004658983030SABSPECTRUM BRANDS PET GROUP INC1 MD20 AIRLOCKM/S6/3/20226/1/20227362SSSSSP XMD20,304L,OE,8VN,FR8,C1FALSETRUETRUETRUETRUEJune 2022
11004680551010SABLANXESS CORPORATION1 MD20 AIRLOCKM/S5/27/20225/20/20229516316SS316SS XSP XMD20,316,OE,8VN,FR8,C15/23/2022 0:00FALSETRUETRUETRUETRUEMay 2022
11004680881010SABICL SPECIALTY PRODUCTS INC1 MD20 AIRLOCKM/S7/1/20226/24/202216240SSSSSP CPRETURN-NEDOXFALSEFALSEFALSEFALSETRUEJune 2022
11004693571010SABDANISCO1MD20 AIRLOCK DANISCOM/S5/20/20225/13/20227848SSSS VNT PORT XSP CPXMD20,.304L,CE,8VN,FR16,CG80,C15/23/2022 0:00FALSETRUETRUETRUETRUEMay 2022
11004713501010SABHEARTLAND FOOD PRODUCTS1MD20 AIRLOCK HEARTLAND PET FOODM/S6/10/20226/3/202210037SSSSSP XMD20,304L,OE,8VN,FR8,CG80,CW,C1FALSETRUETRUETRUETRUEJune 2022
11004716721010SABAMCOR WISCONSIN LLC1 MD20 AIRLOCKM/S6/17/20226/10/20228977SSSSSP XMD20,304L,CE,8VN,FR8,C1FALSEFALSETRUETRUETRUEJune 2022
11004721651010SABECOLAB KAY CHEMICAL CO1 MD20 AIRLOCKM/S6/10/20226/3/202212784316L316L 32RA XSP 32RA XMD20,316,OE,8VN,FR16,CG150,RV,SPCL 32RAFALSEFALSETRUETRUETRUEJune 2022
11004724441010SABRB MANUFACTURING LLC1MD20 AIRLOCK RB MANUFACTURING LLCM/S7/15/20227/8/20228431SSSS XSP CP XMD20,304L,CE,8VN,FR8,C1FALSEFALSEFALSEFALSETRUEJuly 2022
11004680884040SABICL SPECIALTY PRODUCTS INC1 MD20 ROTORM/S7/1/20226/24/20222519SSNANARETURN=NEDOXFALSEFALSETRUEFALSETRUEJune 2022
11004713591010SABHEARTLAND FOOD PRODUCTS1OE8,MD20,FR1/8,C1,80,304/L,CW *M/S4/22/20224/18/20221505304LNANAMD20,304L,OE,8VN,FR8,CG80,C1,CW4/26/2022 0:00FALSETRUETRUEFALSETRUEApril 2022
110046808810.110.1SABICL SPECIALTY PRODUCTS INC1 MD20 AIRLOCK - food grade nedoxM/S7/1/20226/17/2022SSNANAMD20,304L,CE,8VN,FR16,RV,C2 NEDOX XFALSEFALSETRUEFALSETRUEJune 2022
110046808840.140.1SABICL SPECIALTY PRODUCTS INC1 MD20 ROTOR - food grade nedoxM/S7/1/20226/17/2022 0:00304LNANAMD20,MD20,304L,CE,8VN,FR16,RV,C1 NEDOX XFALSEFALSETRUEFALSETRUEJune 2022
11004739441010SABWACKER CHEMICAL CORPORATION1 MD20 AIRLOCKM/S8/12/20228/5/2022 0:0014412316SS316SSSP CP TS4MD20,316,CE,8VN,FR16,RV,C1FALSEFALSEFALSEFALSETRUEAugust 2022
11004757651010SABBIG HEART PET BRANDS1 MD20 AIRLOCKM/S6/10/20226/3/2022 0:000SSSSSP XMD20,SS,OE,8VN,FR8,CG80,C26/7/2022 0:00FALSETRUETRUETRUETRUEJune 2022
11004762971010SABVAN DIEST SUPPLY CO1OE8,MD20,FR1/8,C1,80RP,304/LM/S6/29/20226/24/2022 0:001939304LNANAMD20,304L,OE,8VN,FR8,CG80,RP,C1FALSEFALSETRUEFALSETRUEJune 2022


Given the SUMIFS equation to filter out the accurate count of the particular part, I want to sum all the items data table above. if there is a dot item on the item column, for example "10.1", I want to count only the 10.1 and not the 10 associated with the same customer. So, the customer ICL specialty products should only be counted once instead of twice. because it has a 10.1 and a 10. IF there is no dotline then the dates should be filtered between the [job-pln] column, if there is a dotline column, the result should be filtered between the [ship-act] column. know it's hard to explain. thanks for the help
 
My previous post was referring to the implementation on your CM worksheet. Looking further, on the FM worksheet, the LET formula also has some issues:
  1. Again, change these definitions to cover the full data table and note that the rightmost column needed in tblprod is column R (not W):
    Excel Formula:
    tblprod, sab_prod!$A$2:$R$1789, maxitm, sab_prod!$Y$2:$Y$1789
    I mention the column R/W issue because later in the formula, you'll see this array: {1,0,1,0,1,1,1,0,0,1,0,0,0,0,0,0,1,0}. The 1's/0's array describes which columns to return (1) and which to ignore (0), so there needs to be a one-to-one correspondence between these array elements and columns A:R. If you were to change the full tblprod definition to
    Excel Formula:
    tblprod, sab_prod!$A$2:$W$1789
    ...then the 1's/0's array would become {1,0,1,0,1,1,1,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0} to account for ignoring the additional columns.
  2. It looks as if you are referencing a different set of cells for the Date Range, but in the formula those dates have not been "fixed" so as the formula is copied down the column, the date range "walks". Change the date criteria inside the LET function to (date>=$L$3) * (date<=$L$4)
  3. I noticed the internal definition of "mats" appears as "material" (where you assign any one of several arrays containing material types to the variable mats), but the subsequent usage of that array still refers to "mats". I'd recommend changing the first definition back to "mats" rather than material, otherwise an error will be produced because there would be no mats array.
Speaking of errors, if nothing is found, the innermost FILTER function will produce an error (an empty results array error). One way to induce this error is to tighten up the Date Range window until nothing satisfies the date range...and an error is produced. How do you want that situation handled? The final SUM function in the LET formula could be wrapped with an IFERROR function to return a message or a 0 in that event. If you want to go this route, then it might make sense to revise the formula to eliminate the outermost FILTER and the associated 1's/0's array (that was used primarily as a way to aggregate some meaningful columns when I originally constructed the formula, but it's not essential). Instead the formula could retain all of the columns internally and then the final error-trapped SUM would refer only to the Qty column, which would be the 6th column in this larger array. So the formula would look like this and return either the sum of quantities meeting the criteria or a 0 if none are found:
Excel Formula:
=LET(desc,"MD20 air",matg1,{"SS","304","316"},matg2,{"GI","CS"},tblprod,sab_prod!$A$2:$R$1789,maxitm,sab_prod!$Y$2:$Y$1789,mats,matg1,date,IF(MOD(INDEX(tblprod,,3),1)<>0,INDEX(tblprod,,10),INDEX(tblprod,,17)),res,FILTER(tblprod,(ISNUMBER(SEARCH(desc,INDEX(tblprod,,7))))*(MMULT(--(ISNUMBER(SEARCH(mats,INDEX(tblprod,,13)))),SEQUENCE(COUNTA(mats),1,1,0))>0)*(date>=$L$3)*(date<=$L$4)*(INDEX(tblprod,,18)=FALSE)*(maxitm=1)),IFERROR(SUM(INDEX(res,,6)),0))
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Thank you so much! The updated formula worked. How could I also alter the formula for the "number without dotline" column so that no dotlines get counted and the date is based only on the ship actual column? Also if you see later down the sheets when I am counting endplates, in the description column I am looking for keywords "E/P,ENDPLATE" AND the model like "MD20". Is there any way to make this work in your formula?

Is there a way I can buy you a drink...or a few? :)
 
Upvote 0
That's good to hear. About your other questions...for the exercise above, the maxitm helper column on the sab_prod worksheet was used to identify all relevant rows that might be considered. "Relevant" meaning that for any given job number, we could examine all of the "item" numbers associated with that job number, and where those job numbers shared the same integer value, we kept only the largest one (with the greatest decimal component) and the others were considered to be not relevant. For example, job number 1100472831 has items 30 and 30.1, so we flagged 30.1 with a 1 (possibly considered) and 30 with a 0 (ignore). This means that we would have flagged some "dot" line as not relevant for the situation where there are multiple decimal items with the same integer (e.g. for 30, 30.1, 30.2, and 30.3, we would flag 30.3 with a 1 (relevant) and 30, 30.1, 30.2 with a 0 (ignore))...so in some cases the dots are ignored. Now to flip this condition to consider "without dotlines", how would these "somewhere-in-between" dot items be handled?...I'm talking about the 30.1 and 30.2 is this hypothetical example. Presumably 30 is categorized as "without dotline" relevant and 30.3 (in this example) is firmly a dotline-relevant candidate (therefore to be ignored for the "without dotline" exercise). But what is the rule for 30.1 and 30.2 here?

Which version of the formula above were you planning to use?...the nested double FILTER or the single FILTER with an error trap in my most recent post?
 
Upvote 0
About your other questions...yes, just like we have a criteria for checking whether any one of several materials are present in the 13th column of tblprod (sab_prod!$A$2:$R$1789), we can use that same construction to replace this part of the formula...(ISNUMBER(SEARCH(desc,INDEX(tblprod,,7))))...which works only for a single item defined by "desc". If we make that switch, add some new description search term array placeholders (I've called them desc1 and desc2, similar to what was done with the material search term arrays matg1 and matg2), and then make an assignment of one of those arrays to the "desc" variable, we will have addressed that part of your question. The newly added "desc2" has the three search terms you mention, so it should find any rows where those strings occur in the 7th column of tblprod.

Regarding the date question, you could take a similar approach to make it easy to switch between whichever date criteria should be applied. Below, I've simply added another date definition called "dateact" which references the 17th column of tblprod. I've renamed the original "date" definition to "datedep" (i.e., the date depends on whether the item number is an integer...but you can call it whatever you want). Then a new entry in the LET formula is used to assign one of the date definitions to the "date" variable name, just like the approach taken to assign search terms to "desc" and "mats", we can switch between date formulas using the same method.

You also mentioned a "without dotline" calculation. I'm assuming that a "without dotline" row would be described by this expression when TRUE:
Excel Formula:
(SIGN(MOD(INDEX(tblprod,,3),1)=0))
In plain language, this says that a "without dotline" row occurs when the item number found in the 3rd column of tblprod is an integer (no decimal component). So in the questions posed in my previous post, if you clarify that only 30 should be considered and 30.1, 30.2, and 30.3 should be ignored, then this part of the formula will do. Let me know about this.

After looking at this last criteria, it occurred to me that the earlier formula doesn't need to say (maxitm=1)...it can simply say (maxitm) because "maxitm" is already a range of values consisting only of 1's and 0's, so it can be used directly without having to perform the =1 logical check. It might be beneficial to build flexibility into the main formula for switching between these two criteria. The former "maxitm" is now renamed "wdot" (with dot, which uses the rule described in the helper column formula on the sab_prod worksheet), and a new "wodot" (without dot) variable name is assigned to the formula described above. Then a generic "itemtype" variable is used in the main formula and it is assigned whichever variation you choose.

I've structured the formula to make it a little easier to see the different parts...there are two lines where common search terms are described in array form and given names. The next three lines assign names and definitions for the main data table, the dot/no-dot formulas or helper cells, and the date formulas. The next four lines assign these named definitions to common names used in the main formula (so editing the main formula should not be necessary). Then the main formula (called "res"...for results) is shown, and finally the instruction for what to do with the results is given. In this case, we sum the 6th column of the results. For a case where you want: 1) to search for any of these strings...{"E/P","ENDPLATE","MD20"}...in the Description column (so "desc2" is assigned to "desc"); and 2) to search for any of these material type strings...{"SS","304","316"}...so "matg1" is assigned to "mats"; and 3) to consider only the actual date rather than the dependent date used before...so "dateact" is assigned to "date"); and 4) to consider "without dot" items (so "wodot" is assigned to "itemtype")...the formula would look like:
Excel Formula:
=LET(desc1,{"MD20 air"},   desc2,{"E/P","ENDPLATE","MD20"},
         matg1,{"SS","304","316"},   matg2,{"GI","CS"},
         tblprod,sab_prod!$A$2:$R$1789,
         wdot,sab_prod!$Y$2:$Y$1789,   wodot,SIGN(MOD(INDEX(tblprod,,3),1)=0),
         dateact,INDEX(tblprod,,17),   datedep,IF(MOD(INDEX(tblprod,,3),1)<>0,INDEX(tblprod,,10),INDEX(tblprod,,17)),
         desc, desc2,
         mats, matg1,
         date, dateact,
         itemtype, wodot,
         res,FILTER( tblprod,
                    (MMULT(--(ISNUMBER(SEARCH(desc,INDEX(tblprod,,7)))),SEQUENCE(COUNTA(desc),1,1,0))>0)*
                    (MMULT(--(ISNUMBER(SEARCH(mats,INDEX(tblprod,,13)))),SEQUENCE(COUNTA(mats),1,1,0))>0)*
                    (date>=$L$3)*
                    (date<=$L$4)*
                    (INDEX(tblprod,,18)=FALSE)*
                    (itemtype) ),
         IFERROR(SUM(INDEX(res,,6)),0))
 
Upvote 0
I'm curious about how these formulas are to be used. Is there something on each row that tells you what to search for? I ask because it is odd that a formula would be copied down a column in a table to calculate a number pertaining to that row, yet the formula does not explicitly reference anything on that row. Do you have certain clues on each row that trigger a set of search terms? Are those search terms listed anywhere so that the formula could automatically perform a lookup to identify the search terms?
 
Upvote 0
Thank you. sorry for not logging in for a while I have been sick with COVID. The information to differentiate each entry or the descriptor I am searching for comes from column A 'description' in each of the sheets (MD20 Housings, MD20 GI Housings India, etc.) I don't mind manually changing the description for each entry.

You have the "without dot line" filtering assumption correct. Except, and I may have been wrong before, .2's and .3's should be counted in the maxitm column in the sab_prod query. Those are just orders that were split into batches so 20.1, 20.2, and 20.3 should be counted for example.

Also when looking for endplates, I need it to look for either "E/P" or "ENDPLATE" AND the description must contain "MD20" for example.
 
Upvote 0
That’s okay… I hope you are feeling better. We may have a disconnect on a few points:
1. For the “dotline”, I thought you wanted only the largest decimal for any lines having a common job number and the same integer components for their item numbers…so for 20, 20.1, 20.2, and 20.3 with the same job number, we’d count only the 20.3 line. Are you saying this is not correct?…and we really want to count those item numbers that have a literal dot (i.e., they explicitly show a decimal component), so 20.1, 20.2, and 20.3 should be used?

2. Then for the “without dot” we are to avoid any item numbers that do not contain an explicit dot? So in this example, 20 is counted and the other three decimal-containing lines are ignored?

3. And then let’s clarify the search terms. Right now we search columns 7 (description) and 13 (materials) for different terms. As the formula is written, search terms shown in an array (e.g., matg1,{"SS","304","316"}) are treated with an OR condition, meaning the presence of any of those terms is sufficient to satisfy this part of the row-matching criteria. Are you saying in your latest post that you'd like to search the Description column using an AND/OR condition? For example, only consider rows where, within a single cell under the Description column, one finds both ("MD20") AND either ("E/P" OR "Endplate")? I'm somewhat confused about the column designations/numbering. You mention searching column A "description", but I've been using column 7 (Description). But I'd really like some clarity about the AND/OR question. If that is what you want, it's doable, and probably most easily done by adding one more condition to the formula.
 
Upvote 0
1. yes, that is not correct. 20.1, 20.2, and 20.3 should be used for 'wdot'. I am sorry about that.

2. Correct. Count only item numbers that do not contain decimals.

3. I am referring to the output sheets like 'LM' and 'CM' for column A description. That's how I know what product category and model number I am searching for in the sab_prod query. The or condition works for the first 38 rows of housings. But for end plates, there are several different ways a MD20 endplate could be entered in the sab_prod query could be "E/P MD20" or "endplate md20" or "md20 endplate" etc. so it must search for all the different ways a person would type that in.

Additionally, we sell endplates separately but also two endplates come with every one airlock. so for example, in [LM] for G40 would be = 2*G3 + the equation looking for the endplates specifically. Unless there is a more elegant way to code this in a function.
 
Upvote 0
Thanks for clarifying those questions. Regarding questions 1 and 2, with the news that any item number having a dot should be used for wdot, we no longer need a helper column to sort out which of the dotted items number to consider...because we don't care which one is the maximum--we take all of them and subject them to other filtering criteria. So the "maxitm" formula and helper column can be eliminated. Instead we replace the "wdot" definition with a formula that looks very much like the "wodot" formula, except "wdot" checks whether there is a non-zero decimal component and "wodot" checks whether the decimal part is 0. Both of those functions work inside the main LET function.

Since you need the flexibility to look for terms using an AND/OR construction, I've added an extra condition to the FILTER function assigned to the results array called "res". You'll recognize the part of the formula that is now repeated and slightly modified...
Excel Formula:
(MMULT(--(ISNUMBER(SEARCH(descA,INDEX(tblprod,,7)))),SEQUENCE(COUNTA(descA),1,1,0))>0)*
(MMULT(--(ISNUMBER(SEARCH(descB,INDEX(tblprod,,7)))),SEQUENCE(COUNTA(descB),1,1,0))>0)*
Each of these MMULT expressions establishes an OR condition, so for the 1st one, it says to search the 7th column of "tblprod" for any of the terms found in the variable called "descA", and if any are found, consider that row, which results in an array of TRUE/FALSE values representing the assessment of each row in the 7th column of tblprod. Similarly, the 2nd one does the same for any terms found in the "descB" array. Then by multiplying both of these arrays together, we create the AND condition. So the plain language interpretation of this is that we're looking for any terms (this OR that OR something else) in "descA" AND also any terms in "descB". Both "descA" and "descB" can consist of however many terms you'd like, from one up to any reasonable number. If you want to turn off one of these because you do not need the AND condition, then one of the MMULT expressions needs to evaluate to 1 so that that part of the filter is essentially deactivated. The easiest way to do that while preserving a consistent methodology for the query is to create a variable (I've called "desc5") that passes along a wildcard to the SEARCH function. Then SEARCH should find something in every row and all rows are considered by this part of the filtering criteria.

Below is what the revised formula looks like. You can build a bank of common combinations and variations of search terms. Where the OR condition is to be applied, all of those search terms need to be in the same array. In the example below, I've deactivated the "descA" filter by invoking the wildcard ("desc5" has been assigned to "descA"), and "descB" is looking for "ROTOR". I'm also requiring the material types to be anything (I've deactivated it with a wildcard "matg3"). You may need to change some references to adapt it to your sheet. Let me know if you have any questions/comments and whether it works as desired.
Excel Formula:
=LET(desc1,{"MD20 air"},   desc2,{"E/P","ENDPLATE","END PLATE"},   desc3,{"MD20"},   desc4,{"ROTOR"},   desc5,{"*"},
         matg1,{"SS","304","316"},   matg2,{"GI","CS"},   matg3,{"*"},
         tblprod,sab_prod!$A$2:$R$1789,
         wdot,SIGN(MOD(INDEX(tblprod,,3),1)<>0),   wodot,SIGN(MOD(INDEX(tblprod,,3),1)=0),
         dateact,INDEX(tblprod,,17),   datedep,IF(MOD(INDEX(tblprod,,3),1)<>0,INDEX(tblprod,,10),INDEX(tblprod,,17)),
         descA,desc5,
         descB, desc4,
         mats, matg3,
         date, dateact,
         itemtype, wodot,
         res,FILTER( tblprod,
                    (MMULT(--(ISNUMBER(SEARCH(descA,INDEX(tblprod,,7)))),SEQUENCE(COUNTA(descA),1,1,0))>0)*
                    (MMULT(--(ISNUMBER(SEARCH(descB,INDEX(tblprod,,7)))),SEQUENCE(COUNTA(descB),1,1,0))>0)*
                    (MMULT(--(ISNUMBER(SEARCH(mats,INDEX(tblprod,,13)))),SEQUENCE(COUNTA(mats),1,1,0))>0)*
                    (date>=$L$3)*
                    (date<=$L$4)*
                    (INDEX(tblprod,,18)=FALSE)*
                    (itemtype) ),
         IFERROR(SUM(INDEX(res,,6)),0))
 
Upvote 0
Thank you. It seems like 'wdot' formula is counting only items with dotlines. I should have clarified more in the last post. It still needs to follow the logic where it sums the qty of both dotlines and non-dotlines where dotlines takes precedence to be summed when job numbers are the same. the Maxitm column seemed to sort this logic correctly. Ship-act dates for dotlines and job-pln date for non-dotlines. But in the event an order is split into batches, i.e. item number is 20.1, 20.2, 20.3 for the same job number, all three of these qty's should be summed. Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,089
Messages
6,123,058
Members
449,091
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top