Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Consecutive numbering

 
   Macintosh computer (Home) -> Excel RSS
Next:  entourage views... set default...  
Author Message
Francis Hookam

External


Since: Aug 06, 2004
Posts: 44



(Msg. 1) Posted: Fri Aug 06, 2004 5:54 am
Post subject: Consecutive numbering
Archived from groups: microsoft>public>mac>office>excel (more info?)

Consecutive numbering

(Excel: mac 2001 but will also have to run on PC 2000)

Entries in C2 (starting at a specifiable row, in this instance R11) are
numbered consecutively (1, 2, 3, 4, etc) in C1

Traditionally I generate the numbers manually by typing 1 in R11C1 and 2 in
R12C1 and then selecting both and dragging down as far as necessary - ok, it
may show my age (Multiplan and all that), but there must be a slicker way

=1+R[-1]C is no good because I have to insert/remove rows from time to time
and so need a macro to quickly renumber C1, first finding out how far down
C2 extends

Thanks for any suggestions

Francis

 >> Stay informed about: Consecutive numbering 
Back to top
Login to vote
Bob Greenblatt

External


Since: May 27, 2004
Posts: 109



(Msg. 2) Posted: Fri Aug 06, 2004 8:54 am
Post subject: Re: Consecutive numbering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 8/6/04 5:24 AM, in article BD390CF8.7985%fh.2.net@ntlworld.com, "Francis
Hookam" <fh.2.net RemoveThis @ntlworld.com> wrote:

 > Consecutive numbering
 >
 > (Excel: mac 2001 but will also have to run on PC 2000)
 >
 > Entries in C2 (starting at a specifiable row, in this instance R11) are
 > numbered consecutively (1, 2, 3, 4, etc) in C1
 >
 > Traditionally I generate the numbers manually by typing 1 in R11C1 and 2 in
 > R12C1 and then selecting both and dragging down as far as necessary - ok, it
 > may show my age (Multiplan and all that), but there must be a slicker way
 >
 > =1+R[-1]C is no good because I have to insert/remove rows from time to time
 > and so need a macro to quickly renumber C1, first finding out how far down
 > C2 extends
 >
 > Thanks for any suggestions
 >
 > Francis
 >

Entering the first few numbers in a series, and then filling down is pretty
straight forward, and "slick" in my opinion. Why is this a problem? You
could use Edit-fill-Series if you don't feel like dragging. A macro to do
this is pretty simple, but you'd need to select it from the macros menu, or
hit a key to initiate it, which is not any "slicker" in my opinion.

--
Bob Greenblatt [MVP], Macintosh
bobgreenblattATmsnDOTcom<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Consecutive numbering 
Back to top
Login to vote
JE McGimpsey

External


Since: Mar 07, 2004
Posts: 3828



(Msg. 3) Posted: Fri Aug 06, 2004 11:45 am
Post subject: Re: Consecutive numbering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <BD390CF8.7985%fh.2.net@ntlworld.com>,
Francis Hookam <fh.2.net RemoveThis @ntlworld.com> wrote:

 > Entries in C2 (starting at a specifiable row, in this instance R11) are
 > numbered consecutively (1, 2, 3, 4, etc) in C1
 >
 > Traditionally I generate the numbers manually by typing 1 in R11C1 and 2 in
 > R12C1 and then selecting both and dragging down as far as necessary - ok, it
 > may show my age (Multiplan and all that), but there must be a slicker way
 >
 > =1+R[-1]C is no good because I have to insert/remove rows from time to time
 > and so need a macro to quickly renumber C1, first finding out how far down
 > C2 extends

I agree with Bob that fill down is pretty slick. Having said that,
however, I have a separate testing toolbar that I use to generate a
range of lists (sequential by 1s, 2,s 5s, 10s, etc., random integers,
random decimals, SSNs, mixed Alphanumeric, etc.). The specific macros I
use wouldn't be of much interest, but you could attach a macro like this
to a toolbar button (or, as Bob said, to a keyboard shortcut) to fill
the first column of the selection:

Public Sub FillFirstColumn()
Dim vArr As Variant
Dim i As Long
With Selection
ReDim vArr(1 To .Rows.Count)
For i = 1 To UBound(vArr)
vArr(i) = i
Next i
.Columns(1).Value = Application.Transpose(vArr)
End With
End Sub<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Consecutive numbering 
Back to top
Login to vote
Willis Eschenbach

External


Since: Aug 07, 2004
Posts: 7



(Msg. 4) Posted: Fri Aug 06, 2004 9:54 pm
Post subject: Re: Consecutive numbering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I use a function I wrote called "numberabove":

Function numberabove(r)
Application.Volatile
Set here = r.Offset(-1, 0)
While Application.IsNumber(here.Value) = False And here.Row > 1
Set here = here.Offset(-1, 0)
Wend
numberabove = here.Value
End Function

This finds the first number above the range "r". To use it in a list, say I
want the next number in cell "C11". In cell C11 I put the formula

= numberabove(c11)+1

w.

---====---


in article jemcgimpsey-565174.10454406082004.TakeThisOut@msnews.microsoft.com, JE
McGimpsey at jemcgimpsey.TakeThisOut@mvps.org wrote on 7/8/04 4:45 AM:

 > In article <BD390CF8.7985%fh.2.net@ntlworld.com>,
 > Francis Hookam <fh.2.net.TakeThisOut@ntlworld.com> wrote:
 >
  >> Entries in C2 (starting at a specifiable row, in this instance R11) are
  >> numbered consecutively (1, 2, 3, 4, etc) in C1
  >>
  >> Traditionally I generate the numbers manually by typing 1 in R11C1 and 2 in
  >> R12C1 and then selecting both and dragging down as far as necessary - ok, it
  >> may show my age (Multiplan and all that), but there must be a slicker way
  >>
  >> =1+R[-1]C is no good because I have to insert/remove rows from time to time
  >> and so need a macro to quickly renumber C1, first finding out how far down
  >> C2 extends
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Consecutive numbering 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Major bug in week numbering for 2004 (Format(..,"ww",..)) - I just discovered that week numbering, Nordic style, for 2004 doesn't work in my Excel X 10.1.4 (on Panther). Try this in your VBA code: x = Format(#1/1/2004#, "ww", vbMonday, vbFirstFourDays) and notice that in Mac Office X it returns &quo...

Sequential Numbering from Blank Document (k) - I am trying to create an Excel master document that when opened, automatically creates a new version of itself with a number that grows with each open. So if the number starts at 00000 and the master template document is opened as an Excel sheet open...

Excel Macro Problem - I just upgraded my Mac to Office 2004. I am trying to open some older Excel files that were created on a PC that have Macros in them. The opened fine in Office X. They open fine but when I close the Excel file it says the Excel has unexpectedly quit. It....

unicode characters - read only error ? - Using an Excel 2001 file across a Mac network under OS 9. Getting the following error from networked users: "This file has unicode charaters that could not be converted to the active codepage. Since some data has been lost, the workbook is being ...

Snap to grid and/or shape - Snap to grid and/or shape (Excel: mac 2001 but will also have to run on PC 2000) Having formed an object with ŒSnap to gridč and/or ŒSnap to shapeč, how can I unsnap it and change the size and position at will? Deselecting Snap to Grid and Snap to..
   Macintosh computer (Home) -> Excel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]