autonumber in specific column with skip aggregate row

KalilMe

Active Member
Joined
Mar 5, 2021
Messages
354
Office Version
  1. 2016
Platform
  1. Windows
hello
I need auto numbering in specific column with skip any word=AGGREGAT" it's existed in col B so I put some numbers what should be in COL B
REPORT1.xlsx
ABCDEFGH
2ITEMGOODSTYPEPRPUSABLPU
31FRBANANASO 380 200 180 19
42FRAPPLETU 120 40 80 23
53FRAPPLEIT 120 - 120 100
6AGGREGATE 620 240 142
71VEGTOMATOEG 80 10 70 234
82VEGPOTATOGR 100 10 90 123
93VEGONIONPO 120 10 110 123
104VEGONIONLOC 101 101 156
11AGGREGATE 401 30 636
121FO1TUNE160GSP 200 20 180 56
132FO1TUNE160GIN 140 140 64
143FO2TUNE180GTH 300 30 270 22
154FO2TUNE180GTW 130 130 11
165FO3CHEESE CHEEDERNE 250 250 123
176FO3CHEESE MOZZIRELAIT 300 300 123
187FO5BISCUITS SWSW 150 150 34
198FO5BISCUITS SWSS 250 250 15
20AGGREGATE 1,720 50 448
DATA
Cell Formulas
RangeFormula
G12:G19,G7:G10,G3:G5G3=E3-F3
H6,E6:F6E6=SUM(E3:E5)
H11,E11:F11E11=SUM(E7:E10)
H20,E20:F20E20=SUM(E12:E19)
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Try:

Code:
A3 =IF(OR(A2="",A2="Item"),1,IF(B3="Aggregate","",A2+(B3<>"Aggregate")))

copied down.
 
Upvote 0
it doesn't work at all don't give me any error and it doesn't seem to be formula , it shows like any value put in the cell
 
Upvote 0
it doesn't work at all don't give me any error and it doesn't seem to be formula , it shows like any value put in the cell
I suspect that you may have misinterpreted what Oaktree posted. The suggested formula starts at the first "=" sign and the A3 before that was telling you where to put the formula.
Here it is working.

21 05 08.xlsm
AB
2ITEMGOODS
31FR
42FR
53FR
6 AGGREGATE
71VEG
82VEG
93VEG
104VEG
11 AGGREGATE
121FO1
132FO1
143FO2
154FO2
165FO3
176FO3
187FO5
198FO5
20AGGREGATE
Numbering
Cell Formulas
RangeFormula
A3:A19A3=IF(OR(A2="",A2="Item"),1,IF(B3="Aggregate","",A2+(B3<>"Aggregate")))



However, here is another option that you might consider.

21 05 08.xlsm
AB
2ITEMGOODS
31FR
42FR
53FR
6 AGGREGATE
71VEG
82VEG
93VEG
104VEG
11 AGGREGATE
121FO1
132FO1
143FO2
154FO2
165FO3
176FO3
187FO5
198FO5
20AGGREGATE
Numbering (2)
Cell Formulas
RangeFormula
A3:A19A3=IF(B3="AGGREGATE","",N(A2)+1)
 
Upvote 0
Solution
I suspect that you may have misinterpreted what Oaktree posted. The suggested formula starts at the first "=" sign and the A3 before that was telling you where to put the formula.
I know about A3 it shouldn't put in the cell with the formula
the problem seems from the file I tested for another file it works and return testing my original file it works very well
very strange ????:unsure:
thanks guys for your formulas(y)
just curiosity , how can I do that like this?
1.xlsm
ABCDEF
1ITEMDESCRIBEQ1
2GOODSTYPEPRPUSA
31FRBANANASO 380 200
42FRAPPLETU 120 40
53FRAPPLEIT 120 -
6AGGREGATE 620 240
74VEGTOMATOEG 80 10
85VEGPOTATOGR 100 10
96VEGONIONPO 120 10
107VEGONIONLOC 101
11AGGREGATE 401 30
128FO1TUNE160GSP 200 20
139FO1TUNE160GIN 140
1410FO2TUNE180GTH 300 30
1511FO2TUNE180GTW 130
1612FO3CHEESE CHEEDERNE 250
1713FO3CHEESE MOZZIRELAIT 300
1814FO5BISCUITS SWSW 150
1915FO5BISCUITS SWSS 250
20AGGREGATE 1,720 50
DATA
Cell Formulas
RangeFormula
E6:F6E6=SUM(E3:E5)
E11:F11E11=SUM(E7:E10)
E20:F20E20=SUM(E12:E19)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

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