conditional formula by using aggregate and count if........

Umair Tariq

New Member
Joined
Mar 14, 2023
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
below is my sheet
i need to put a formula to get my desired results,
In cell "F21" i put formula which is considering only cell "E32" but i want to select E column as a whole. furthermore this formula is not generating rows but using available rows, but i want to add new rows automatically by the use of formula


Arman Thread working.xlsx
ABCDEF
16
2JacketShoulder Joining x 2 (S.J), Sleeve Side Panel Attach x 2,Side Seam + P.O Label (F),
3JacketShoulder Top Stitch x 2 F/L (S.J),Sleeve Side Panel Top Stitch x 2,Arm Hole Top Stitch x 2 F/L (S.J)
4JacketBottom Kaaj x 4
5JacketFOR REST OF OPERATIONS
6TrouserBack Yoke Joining (Safety),Back Rise Joining (Safety),Side Seam Joining (4 Joint) (O/L),Inseam Joining (5 Joint) (O/L)
7TrouserBack Yoke Top Stitch (FOA),Back Rise Top Stitch (FOA),Side Seam Top Stitch (FOA),Inseam Top Stitch (Regular FOA) Plain
8TrouserBelt grip Tape Attach,Waist band attach with main body (Belt Grip Tape Attached)
9TrouserRight Thigh Pocket Flap Top Stitch (4 Point),Left Thigh Mobile Pocket Flap Top Stitch (4 Point),Left Thigh Pocket Ballon Stand Hem DNLS,Back Pocket Flap Top Stitch (4 Point),Cross Pocket Attach Top Stitch x 2 (One Point Turn),Knee Pad Attach x 2 (Step 1),Ghazet Top Stitch,Back Pocket Attach (Step 2) DNLS x 2,Cordura Attach on Bottom (Back Panel),Right Thigh Pocket Flap Top stitch
10TrouserEyelet Button Hole
11TrouserFOR REST OF OPERATIONS
12ShortsBack Yoke Joining (Safety),Back Rise Joining (Safety),Side Seam Joining (4 Joint) (O/L),Inseam Joining (5 Joint) (O/L)
13ShortsBack Yoke Top Stitch (FOA),Back Rise Top Stitch (FOA),Side Seam Top Stitch (FOA),Inseam Top Stitch (Regular FOA) Plain
14ShortsBelt grip Tape Attach,Waist band attach with main body (Belt Grip Tape Attached)
15ShortsRight Thigh Pocket Flap Top Stitch (4 Point),Left Thigh Mobile Pocket Flap Top Stitch (4 Point),Left Thigh Pocket Ballon Stand Hem DNLS,Back Pocket Flap Top Stitch (4 Point),Cross Pocket Attach Top Stitch x 2 (One Point Turn),Knee Pad Attach x 2 (Step 1),Ghazet Top Stitch,Back Pocket Attach (Step 2) DNLS x 2,Cordura Attach on Bottom (Back Panel),Right Thigh Pocket Flap Top stitch
16ShortsEyelet Button Hole
17ShortsFOR REST OF OPERATIONS
18
19Thread Usage Last One Year (Color Wise)
20
21CUSTArticleArticle NameColorTrouserBack Yoke Joining (Safety),Back Rise Joining (Safety),Side Seam Joining (4 Joint) (O/L),Inseam Joining (5 Joint) (O/L)
22ARSARS-NW6700NORD WEAR FLEECE JACKETBLACKBack Yoke Top Stitch (FOA),Back Rise Top Stitch (FOA),Side Seam Top Stitch (FOA),Inseam Top Stitch (Regular FOA) Plain
23Belt grip Tape Attach,Waist band attach with main body (Belt Grip Tape Attached)
24Right Thigh Pocket Flap Top Stitch (4 Point),Left Thigh Mobile Pocket Flap Top Stitch (4 Point),Left Thigh Pocket Ballon Stand Hem DNLS,Back Pocket Flap Top Stitch (4 Point),Cross Pocket Attach Top Stitch x 2 (One Point Turn),Knee Pad Attach x 2 (Step 1),Ghazet Top Stitch,Back Pocket Attach (Step 2) DNLS x 2,Cordura Attach on Bottom (Back Panel),Right Thigh Pocket Flap Top stitch
25Eyelet Button Hole
26FOR REST OF OPERATIONS
27NAVY BLUETrouser 
28  
29ARS-NW6708NORD WEAR FLEECE JACKETBLACK 
30NAVY BLUE 
31  
Sheet5
Cell Formulas
RangeFormula
C1C1=COUNTIF($A$2:$A$17,$E$21)
F21:F31F21=IF(ROWS($C$1:C1)<=$C$1,INDEX($B$2:$B$17,AGGREGATE(15,3,($A$2:$A$17=$E$21)/($A$2:$A$17=$E$21)*(ROW($A$2:$A$17)-ROW($A$1)),ROWS($C$1:C1))),"")
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Unfortunately we have a language problem. I don't understand the objective so I maybe try again to describe what is needed. I will try to assist.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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