A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Increment column value based on insert string



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2004, 01:08 PM
Bharnick
external usenet poster
 
Posts: n/a
Default Increment column value based on insert string

I have a large spreadsheet with a running list of different cells with
one column being the key for a numbering scheme. So, for example:

Column A is the key with only one of 4 values: null, “Sc”,”BR”,”BE”

We insert data into this sheet regularly, but there is a numbering
screen we have to keep correcting. Column D is a column where we
constantly are updating this running list, based on column A. So:

Current sheet:
___A_______B_______C_______D_
Code Data1 Data2 Final Code
Sc xxx yyy Sc01
BR zzz aaa BR01
BR bbb ccc BR02
Sc xxx yyy Sc02
BE ddd eee BE01
BR fgf sjs BR03
Sc fgf sjs Sc03

Insert another Sc after row 3 and increment all the Sc#’s below it:
___A_______B_______C_______D_
Code Data1 Data2 Final Code
Sc xxx yyy Sc01
BR zzz aaa BR01
SC NEW DATA SC02[/b]
BR BBB CCC BR02
SC XXX YYY *SC03
BE ddd eee BE01
BR fgf sjs BR03
Sc fgf sjs [b]Sc04*

I have bolded the data I have to change when I do this insert

Is there any formula I can use in Column D to auto-increment the column
D entries below the insert based on the added Column A value as I have
shown above?

Thanks for all your help!


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:28 PM.


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