Sequencing and numbering of batches in excel
Question: I have two volumes which keeps on varying in L1 & L2 head. This is the only info i get everyday.
Now i just want under each head i.e. L1 & L2 the respective volume whether it's 4000 or any other figure say 4311 etc gets automatically divided into batches of 250 each as shown in Column A and col. D for L1 & L2 heads respectively.
If the bal volume left which is not equal to 250 then it shld appear in last row under respective head e.g. 120 in col A.
Other requirement is those batches get numbered automatically but the numbering should remain continuous when it goes from L1 to L2 head. it should not commence from 1 for L2 head. The numbering shld be done for 250 volume batches and in the last it should number for the batches not equal to 250 volume.
Answer:
Array formula in A3:
copied down as far as needed.
Array formula in B3:
copied down as far as needed.
Array formula in D3:
copied down as far as needed.
Array formula in E3:
copied down as far as needed.
Download excel example file
Sequencing and numbering of batches.xls
(Excel 97-2003 Workbook *.xls)
Functions in this article:
IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE
SUM(number1,[number2],)
Adds all the numbers in a range of cells
ROWS(array) returns the number of rows in a reference or an array
INT(number)
Rounds a number down to nearest integer
Roundup(number)
Rounds a number up, away from zero.
Related blog posts
- Windows media center 2005: How to adjust sound volume when using spdif
- Problem with low volume while playing a divx/xvid clip/movie with ac3 sound
- Create a random playlist in excel – True round-robin tournament
- Windows Media Center 2005: Fix Low Volume output through spdif
- Create number sequences in excel 2007








July 24th, 2011 at 3:40 am
Hey Oscar,
I am working on this example, hope you can help out.
Column A is the batch information I want to add, I have the data of Column B & C. How do I formulate so if the above CELL has matching critiera the batch info increase by 1. Hope you can help.
BATCHES CODE ITEM
A B C
1 0001 TV
2 0001 TV
3 0001 TV
4 0001 TV
1 0002 Sofa
1 0003 Chair
2 0003 Chair
3 0003 Chair
July 24th, 2011 at 2:19 pm
Val,
Cell A1: 1
Cell A2: =IF(C2=C1, A1+1, 1)
Copy cell A2 and paste cells below.
August 5th, 2011 at 7:45 am
Hi Oscar,
Can you help me with my problem?
I have 2 columns named customer (A1) and OR No. (B1).
Under customer are names enumerated below them. opposite the name of customers are OR No. issued to various customers.
OR No. is in broken sequence.
My question is, how will I insert the rows for the corresponding missing OR numbers?
Example:
(A1) (B1)
Customer OR No.
customer 1 1
customer 2 2
customer 3 5
customer 4 7
customer 5 8
customer 6 10
customer 7 11
customer 8 13
customer 9 14
customer 10 15
Thanks in advance for your reply.
August 5th, 2011 at 9:27 am
HughMark,
Read this post: Insert rows for missing values in excel