Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tech
 
Posts: n/a
Default Is there any "autonumber" in Excel?

Hi,
I would like to create a table with autonumber field in Excel worksheet.
This field will be similar to Microsoft access while enter a new customer or
Item a new entry is made by automatically.

Thank you

  #2   Report Post  
Conrad Carlberg
 
Posts: n/a
Default Is there any "autonumber" in Excel?

Various ways exist. To emulate Autonumber, you'd want to get the number of
the worksheet's final used row. A simple method that doesn't rely on event
handlers is this formula:

=IF(NOT(ISBLANK(B1)),ROW(),"")

entered into cell A1 and copied/pasted down as far as needed; it assumes
that new customers/items have data in column B.

If you're comfortable with VBA and worksheet_change events, there are
(possibly) stronger methods, involving statements such as:

LastRow = ActiveSheet.Cells(65536, 1).End(xlUp).Row

to get the number of the final row that contains a value in column A of the
active worksheet.

--
C^2
Conrad Carlberg

Excel Sales Forecasting for Dummies, Wiley, 2005


"Tech" wrote in message
...
Hi,
I would like to create a table with autonumber field in Excel worksheet.
This field will be similar to Microsoft access while enter a new customer

or
Item a new entry is made by automatically.

Thank you



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Group" function very slow with Excel 2003 :( ... While very quick with Excel2000 :O) Alain79 Excel Discussion (Misc queries) 4 June 14th 05 07:34 AM
Stop Excel Rounding Dates leinad512 Excel Discussion (Misc queries) 1 April 20th 05 04:19 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"