Sequentially increasing invoice number when opening workbook, without macros? (Excel 2008)

x10an

New Member
Joined
Mar 23, 2012
Messages
7
Hello,
I see many posts regarding sequentially increasing numbers (i.e. for an invoice) by using visual basic and macros. But my Excel 2008 for Mac does not support macros, is there a formula way to work around this?

Thanks a lot in advance!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
hi,

I don't know about Mac 2008 version, but this tests OK in Excel 2003.

Make a table. I used header "A_List" and immediately below that a value 1.

Give this defined name "whatever". Save the file.

Add a query table. Excel 2003 is via menu ALT-D-D-N and follow wizard to the end. Then choose the option to edit in MS Query and edit SQL to become
Code:
SELECT A_List + 1 AS [NextValue]
FROM whatever
Set the queries properties so that the query refreshes on file open.

In the A_List cell where you initially entered 1, change that to =1+'the cell returned from the query'

Voila. Each time the file opens the query refreshes automatically and the number increments by one with no VBA used.

HTH
 
Upvote 0
Thank you very much for your replies!
I finally went for the option nashgas proposed with date and time, as this turned out to be quite useful and at the same time unique as a reference.
 
Upvote 0
Hey. I am trying to do exactly what you have said here, but I am rather a novice at excel so was wandering if you could explain where I start with it or even if you could send me an example file so I can get my head around it.

Im basically trying to get a template to open with a sequential number increasing each time, but I'm using Excel 2008 for Mac so the VBA isn't compatible.

Cheers

hi,

I don't know about Mac 2008 version, but this tests OK in Excel 2003.

Make a table. I used header "A_List" and immediately below that a value 1.

Give this defined name "whatever". Save the file.

Add a query table. Excel 2003 is via menu ALT-D-D-N and follow wizard to the end. Then choose the option to edit in MS Query and edit SQL to become
Code:
SELECT A_List + 1 AS [NextValue]
FROM whatever
Set the queries properties so that the query refreshes on file open.

In the A_List cell where you initially entered 1, change that to =1+'the cell returned from the query'

Voila. Each time the file opens the query refreshes automatically and the number increments by one with no VBA used.

HTH
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,897
Members
449,097
Latest member
dbomb1414

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