PC Review


Reply
Thread Tools Rate Thread

How do I set up a column to automatically number the next row

 
 
Monique
Guest
Posts: n/a
 
      6th May 2008
I am trying to upload a great deal of vendors into a new accounting package,
but I cannot use the old vendor number format in the new software. I would
like Excel to automatically assign vendor numbers based on the first letter
of the vendor name. Taking that letter and simply add one number to the
previous vendor. Such as A000001, then A000002, etc.
 
Reply With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      6th May 2008
Not sure exactly how you have your spreadsheet setup, but this will
take the first letter of the name in column B and then increment the
number above it by one. This is assuming that you're vendor numbers
are in column A and your vendow names in column B.
=LEFT(B11,1) & TEXT(RIGHT(A10,6)+1,"000000")

Now, that will work, but not the best way, IMO. I would use something
like this so that you don't have to tweak the formula any when the
first letter of the company name changes.
=IF(LEFT(B12,1)=LEFT(A11,1),LEFT(B12,1)&TEXT(RIGHT(A11,6)+1,"000000"),LEFT(B12,1)
& TEXT(1,"000000"))


Monique wrote:
> I am trying to upload a great deal of vendors into a new accounting package,
> but I cannot use the old vendor number format in the new software. I would
> like Excel to automatically assign vendor numbers based on the first letter
> of the vendor name. Taking that letter and simply add one number to the
> previous vendor. Such as A000001, then A000002, etc.

 
Reply With Quote
 
JW
Guest
Posts: n/a
 
      6th May 2008
Forgot to mention, the formulas would be entered into column A. For
instance, the formula below would be entered into A12.
=IF(LEFT(B12,1)=LEFT(A11,1),LEFT(B12,1)&TEXT(RIGHT(A11,6)+1,"000000"),LEFT(B12,1)
& TEXT(1,"000000"))

JW wrote:
> Not sure exactly how you have your spreadsheet setup, but this will
> take the first letter of the name in column B and then increment the
> number above it by one. This is assuming that you're vendor numbers
> are in column A and your vendow names in column B.
> =LEFT(B11,1) & TEXT(RIGHT(A10,6)+1,"000000")
>
> Now, that will work, but not the best way, IMO. I would use something
> like this so that you don't have to tweak the formula any when the
> first letter of the company name changes.
> =IF(LEFT(B12,1)=LEFT(A11,1),LEFT(B12,1)&TEXT(RIGHT(A11,6)+1,"000000"),LEFT(B12,1)
> & TEXT(1,"000000"))
>
>
> Monique wrote:
> > I am trying to upload a great deal of vendors into a new accounting package,
> > but I cannot use the old vendor number format in the new software. I would
> > like Excel to automatically assign vendor numbers based on the first letter
> > of the vendor name. Taking that letter and simply add one number to the
> > previous vendor. Such as A000001, then A000002, etc.

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      6th May 2008
Assume Col A is the column to be numbered. Type 1 in the cell you want to
begin the numbering sequence in. Then, say your first cell is A3 put this in
the next cell and copy down the column:

=If(B3>0, A3 + 1, "")

The cells in column A will remain blank until you enter something in column
B of the previous row.

"Monique" wrote:

> I am trying to upload a great deal of vendors into a new accounting package,
> but I cannot use the old vendor number format in the new software. I would
> like Excel to automatically assign vendor numbers based on the first letter
> of the vendor name. Taking that letter and simply add one number to the
> previous vendor. Such as A000001, then A000002, etc.

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      6th May 2008
disregard that, I misread your post.

"Monique" wrote:

> I am trying to upload a great deal of vendors into a new accounting package,
> but I cannot use the old vendor number format in the new software. I would
> like Excel to automatically assign vendor numbers based on the first letter
> of the vendor name. Taking that letter and simply add one number to the
> previous vendor. Such as A000001, then A000002, etc.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to automatically add column values when number of rows chang Rick Microsoft Excel Programming 0 27th Aug 2008 04:09 PM
Automatically fill in third column depending on data in second column J.J. Microsoft Excel Programming 2 11th May 2007 07:34 PM
Will Excel let me automatically add 1 to each number in a column? =?Utf-8?B?R3Jhbm55TGli?= Microsoft Excel Misc 5 31st Aug 2006 05:56 PM
How to automatically number an index column =?Utf-8?B?UGhpbA==?= Microsoft Excel Worksheet Functions 13 25th Oct 2005 01:36 PM
How can I automatically update column index number in VLookup whe. =?Utf-8?B?R2VuZQ==?= Microsoft Excel Worksheet Functions 1 26th Jan 2005 09:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:49 PM.