Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Number sorting


Hi, I have a serial number for every equipment.

E.g.

sno date
1 21-mar-06
2 22-mar-06
3 23-mar-06

Once the user delete the number 2 records, the number 3 will move up
but the serial number remains as 3 how can i code it to adjust the
serial number when a record is removed ?


--
ReD-DevIL
------------------------------------------------------------------------
ReD-DevIL's Profile: http://www.excelforum.com/member.php...o&userid=32624
View this thread: http://www.excelforum.com/showthread...hreadid=527973

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Number sorting

Hi
For serial number 1 in A1 just type 1
For the second serial number type =A1 + 1
Fill this formula down and you will get the sequence 1, 2, 3, ..
Deleting any row will re-number automatically as you required.

regards
Paul

ReD-DevIL wrote:
Hi, I have a serial number for every equipment.

E.g.

sno date
1 21-mar-06
2 22-mar-06
3 23-mar-06

Once the user delete the number 2 records, the number 3 will move up
but the serial number remains as 3 how can i code it to adjust the
serial number when a record is removed ?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Number sorting


Hi, the sheet is created automatically every year so i cant type in th
A1+1 manually. Is there any way i can do it using vba codes

--
ReD-DevI
-----------------------------------------------------------------------
ReD-DevIL's Profile: http://www.excelforum.com/member.php...fo&userid=3262
View this thread: http://www.excelforum.com/showthread.php?threadid=52797

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Number sorting

Hi
You only type "=A1+1" once. Then you select the whole column from that
point to the bottom of your data and do Edit, Fill, Down.

regards
Paul

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Number sorting


Ok, thanks for your help :)


--
ReD-DevIL
------------------------------------------------------------------------
ReD-DevIL's Profile: http://www.excelforum.com/member.php...o&userid=32624
View this thread: http://www.excelforum.com/showthread...hreadid=527973

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
Sorting by Number Big Rich Excel Worksheet Functions 5 August 4th 09 11:04 AM
Number Sorting Darren Excel Discussion (Misc queries) 2 November 26th 08 04:21 PM
VIN Number sorting HRassist Excel Worksheet Functions 10 June 5th 07 04:57 PM
sorting same model number excel question Excel Discussion (Misc queries) 4 November 16th 06 04:14 PM
Sorting by Row Number? Rothman Excel Worksheet Functions 1 October 1st 06 03:13 AM


All times are GMT +1. The time now is 08:53 AM.

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

About Us

"It's about Microsoft Excel"