Need help on automatic Batch wise invoice serial number

spycein

Board Regular
Joined
Mar 8, 2014
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone,
I have a following Data set
BatchInvoice No.
BT-1ABC/01/2020-21
BT-1ABC/02/2020-21
BT-1ABC/03/2020-21
BT-1ABC/04/2020-21
BT-1ABC/05/2020-21
BT-1ABC/06/2020-21
BT-1ABC/07/2020-21
BT-1ABC/08/2020-21
BT-2ABC/11/2020-21
BT-2ABC/12/2020-21
BT-2ABC/13/2020-21
BT-2ABC/14/2020-21
BT-2ABC/15/2020-21
BT-2ABC/16/2020-21
BT-2ABC/17/2020-21
BT-2ABC/18/2020-21
BT-2ABC/19/2020-21
BT-2ABC/20/2020-21

i am looking for a formula which would return batch wise invoice serial number as mentioned below

Serial No.BatchInvoice No.
1​
BT-1ABC/01/2020-21
2​
BT-1ABC/02/2020-21
3​
BT-1ABC/03/2020-21
4​
BT-1ABC/04/2020-21
5​
BT-1ABC/05/2020-21
6​
BT-1ABC/06/2020-21
7​
BT-1ABC/07/2020-21
8​
BT-1ABC/08/2020-21
1​
BT-2ABC/11/2020-21
2​
BT-2ABC/12/2020-21
3​
BT-2ABC/13/2020-21
4​
BT-2ABC/14/2020-21
5​
BT-2ABC/15/2020-21
6​
BT-2ABC/16/2020-21
7​
BT-2ABC/17/2020-21
8​
BT-2ABC/18/2020-21
9​
BT-2ABC/19/2020-21
10​
BT-2ABC/20/2020-21


Hope i explained my query properly.
Many thanks in advance.
Best Regards,
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
工作簿1.xlsx
ABC
1Serial No.BatchInvoice No.
21BT-1ABC/01/2020-21
32BT-1ABC/02/2020-21
43BT-1ABC/03/2020-21
54BT-1ABC/04/2020-21
65BT-1ABC/05/2020-21
76BT-1ABC/06/2020-21
87BT-1ABC/07/2020-21
98BT-1ABC/08/2020-21
101BT-2ABC/11/2020-21
112BT-2ABC/12/2020-21
123BT-2ABC/13/2020-21
134BT-2ABC/14/2020-21
145BT-2ABC/15/2020-21
156BT-2ABC/16/2020-21
167BT-2ABC/17/2020-21
178BT-2ABC/18/2020-21
189BT-2ABC/19/2020-21
1910BT-2ABC/20/2020-21
Sheet2
Cell Formulas
RangeFormula
A2:A19A2=COUNTIF(B$2:B2,B2)
 
Upvote 0
工作簿1.xlsx
ABC
1Serial No.BatchInvoice No.
21BT-1ABC/01/2020-21
32BT-1ABC/02/2020-21
43BT-1ABC/03/2020-21
54BT-1ABC/04/2020-21
65BT-1ABC/05/2020-21
76BT-1ABC/06/2020-21
87BT-1ABC/07/2020-21
98BT-1ABC/08/2020-21
101BT-2ABC/11/2020-21
112BT-2ABC/12/2020-21
123BT-2ABC/13/2020-21
134BT-2ABC/14/2020-21
145BT-2ABC/15/2020-21
156BT-2ABC/16/2020-21
167BT-2ABC/17/2020-21
178BT-2ABC/18/2020-21
189BT-2ABC/19/2020-21
1910BT-2ABC/20/2020-21
Sheet2
Cell Formulas
RangeFormula
A2:A19A2=COUNTIF(B$2:B2,B2)
Thank you so much @shaowu459.
This is exacly what i wanted.
Best Regards,
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,965
Members
449,201
Latest member
Jamil ahmed

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