List to auto add new numbers as needed

Bond00

Board Regular
Joined
Oct 11, 2017
Messages
142
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
So there is a list of invoices with some data to the side for each, as a invoice # is used and data is added for it, i'd like a new one to be added to the list in col A.
Is there a way to do this without vba or no? Would rather not make this doc a .xlsm if i could help it.
Also keep in mind other xlsm docs will reference this list for automation in other workbooks. It will check what the next available # is and input data next to the one with empty lines in the data fields.
I cant reference D1 in the A col or it errors with a circular reference.

Book1
ABCDEFG
1Last value:INV000009Next value:INV000010
2
3INV000001datadatadatadatadata
4INV000002datadatadatadatadata
5INV000003datadatadatadatadata
6INV000004datadatadatadatadata
7INV000005datadatadatadatadata
8INV000006datadatadatadatadata
9INV000007datadatadatadatadata
10INV000008datadatadatadatadata
11INV000009datadatadatadatadata
12
13
Sheet1
Cell Formulas
RangeFormula
B1B1=LOOKUP("ZZZZZ",A3:A17)
D1D1=LEFT(B1,3)&TEXT(RIGHT(B1,LEN(B1)-3)+1,"000000")
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You could try this:
  1. Add headings to your table in row 2
  2. Format your range as a table (Home tab, Format as Table gallery), check the box that your table has headers
  3. Empty column A of the table and type this formula into cell A3:
    Excel Formula:
    ="INV"&TEXT(ROW()-ROW($A$2),"0000000")
  4. your table should look similar to this:
    1727948936589.png
  5. To add a new invoice, simply click on the bottom-right cell of the table and hit the TAB key.
 
Upvote 0
Neat that it does that with that formula but it seems to always keep the order so if i decide to use the table to change a different column with A-Z it doesn't work and messes up the data because col A is always in order with A-Z with that formula.
 
Upvote 0
You could make it a habit to copy, paste special values the newly added invoice number. The formula will automatically reappear on subsequently added new rows. If you need more control, use of VBA is probably necessary
 
Upvote 0
Ok what i think i could do for this is just have a really long list already made on col A and just search the last col B without data in it and then just work from that. No need to auto add new invoice #s as it goes i guess, it wont hurt if they are already preexisting already.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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