#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default sequent number

hello,
is there any kod wich will give us as defult
the sequnt 'id' number of the 'id' number in the latest record ?
--
thank you

תודה רבה
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default sequent number

It sounds like you should set up your data as a list. Just go to Data -
Create List. Then using A2:A10 as an example of your current list of ID's,
you could do two things:
Give A2:A10 a name like ID_List and then show the latest ID at the top
using =LOOKUP(2,1/(ID_List<""),ID_List).
In A10, put =A9+1. Whenever you add a new entry to the list (where the
blue asterisk is) this formula automatically carries down (to A11, A12, etc.).
The problem with that is if you override that automated number to type one
in of your own, then the formula is lost in the last row and will no longer
carry down. If you are going to override the number occasionally, you need
to have a helper column called OverrideID (maybe in column B). Then you can
put in A10 =IF(B10="",A9+1,B10).

--
Please remember to indicate when the post is answered so others can benefit
from it later.


"יריב החביב" wrote:

hello,
is there any kod wich will give us as defult
the sequnt 'id' number of the 'id' number in the latest record ?
--
thank you

תודה רבה

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default sequent number

thank you !!!
--
תודה רבה


"KC Rippstein" wrote:

It sounds like you should set up your data as a list. Just go to Data -
Create List. Then using A2:A10 as an example of your current list of ID's,
you could do two things:
Give A2:A10 a name like ID_List and then show the latest ID at the top
using =LOOKUP(2,1/(ID_List<""),ID_List).
In A10, put =A9+1. Whenever you add a new entry to the list (where the
blue asterisk is) this formula automatically carries down (to A11, A12, etc.).
The problem with that is if you override that automated number to type one
in of your own, then the formula is lost in the last row and will no longer
carry down. If you are going to override the number occasionally, you need
to have a helper column called OverrideID (maybe in column B). Then you can
put in A10 =IF(B10="",A9+1,B10).

--
Please remember to indicate when the post is answered so others can benefit
from it later.


"יריב החביב" wrote:

hello,
is there any kod wich will give us as defult
the sequnt 'id' number of the 'id' number in the latest record ?
--
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
Changing a Number in a Column Using Arrays? [email protected] Excel Discussion (Misc queries) 1 September 12th 06 07:01 AM
Generating (in a random order)each number once from a given number Neil Goldwasser Excel Worksheet Functions 2 December 2nd 05 11:27 PM
Change number format from text to number? Scot New Users to Excel 2 December 1st 05 04:15 PM
vlookup with more than number to be retrieved martelie Excel Worksheet Functions 3 October 14th 05 12:50 PM
Count Number of Characters in a cell? AHJuncti Excel Discussion (Misc queries) 2 June 16th 05 07:39 PM


All times are GMT +1. The time now is 12:25 PM.

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"