PC Review


Reply
Thread Tools Rate Thread

Create a sequence when the first cell has text and numbers

 
 
cfmartin76@gmail.com
Guest
Posts: n/a
 
      2nd Aug 2006
This might be a silly question, but I haven't been able to find the
answer. I have one cell that will always have the the following
format: ABCD1111111111111111 (4 letters and 16 numbers). That will be
my first cell, I want to be able to create that number plus 1 on the
cell below, and repeat (scroll down) as many rows as there is
information on the left column. I t can be either using a formula or a
macro:

A B
1 Apples ABCD0000000000000005
2 Oranges ABCD0000000000000006
3 Pears ABCD0000000000000007
4 Coconut ABCD0000000000000008

I tried Autofill but it doesn't work, and neither does =previous column
+1.

Help!

Thanks!

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      2nd Aug 2006
I put this in B1
="ABCD"&TEXT(ROW(A5),REPT("0",14))
and dragged down.

When I was done, I selected that column
edit|copy
edit|paste special|values
to change the formulas to values.

(E-Mail Removed) wrote:
>
> This might be a silly question, but I haven't been able to find the
> answer. I have one cell that will always have the the following
> format: ABCD1111111111111111 (4 letters and 16 numbers). That will be
> my first cell, I want to be able to create that number plus 1 on the
> cell below, and repeat (scroll down) as many rows as there is
> information on the left column. I t can be either using a formula or a
> macro:
>
> A B
> 1 Apples ABCD0000000000000005
> 2 Oranges ABCD0000000000000006
> 3 Pears ABCD0000000000000007
> 4 Coconut ABCD0000000000000008
>
> I tried Autofill but it doesn't work, and neither does =previous column
> +1.
>
> Help!
>
> Thanks!


--

Dave Peterson
 
Reply With Quote
 
el.cuervo76@gmail.com
Guest
Posts: n/a
 
      2nd Aug 2006
WOW Dave, it works great!

Now a quick question, what if the number I want to start with is not
0000000000000001 but something like 0000010000000001?

Thanks!

 
Reply With Quote
 
cfmartin76@gmail.com
Guest
Posts: n/a
 
      2nd Aug 2006
wow dave, this is great. Now, what if the first number is not
0000000000000001 but 0000100000000001 or something else? can I start
the list with any random number?

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      2nd Aug 2006
="ABCD"&TEXT(100000000+ROW(A1),REPT("0",14))

change that big number to your starting point.

(E-Mail Removed) wrote:
>
> wow dave, this is great. Now, what if the first number is not
> 0000000000000001 but 0000100000000001 or something else? can I start
> the list with any random number?


--

Dave Peterson
 
Reply With Quote
 
cfmartin76@gmail.com
Guest
Posts: n/a
 
      2nd Aug 2006
awesome, thank you SO much!

 
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
Formula to increment sequence only if text in a particular cell Mills Microsoft Excel New Users 5 8th Jul 2009 03:13 AM
Macro to create sequence of numbers matrix_inevitable@hotmail.com Microsoft Excel Programming 1 22nd Feb 2008 06:33 PM
Capturing a word sequence as part of a text in a spreadsheet cell =?Utf-8?B?VC5NYWQ=?= Microsoft Excel Worksheet Functions 4 3rd Jul 2007 12:08 PM
how to extract numbers from imported cell with text and numbers? =?Utf-8?B?anlpbg==?= Microsoft Excel Misc 3 28th Mar 2007 01:14 PM
cell numbers in sequence =?Utf-8?B?a2FyZW4=?= Microsoft Excel Worksheet Functions 2 23rd Mar 2004 08:32 PM


Features
 

Advertising
 

Newsgroups
 


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