Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Row Numbering dependant on amount in a cell

Hi there,

I am creating a Spreadsheet that calculates sample sizes depending on a
number of criteria. Once the size has been established in a cell I want that
number of rows to be numbered on another sheet starting at row 10. Does
anyone know if I am able to achive this?

Many thanks for your time!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Row Numbering dependant on amount in a cell


Sub numberRows()
Const cellValue As String = "E1"
r = 10
If IsNumeric(Worksheets("Sheet1").Range(cellValue).Va lue) Then
For i = 1 To Worksheets("Sheet1").Range(cellValue).Value
Worksheets("Sheet2").Range("A" & r).Value = i
r = r + 1
Next
End If
End Sub
"Monkey" wrote:

Hi there,

I am creating a Spreadsheet that calculates sample sizes depending on a
number of criteria. Once the size has been established in a cell I want that
number of rows to be numbered on another sheet starting at row 10. Does
anyone know if I am able to achive this?

Many thanks for your time!

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
CALCULATE GST AMOUNT FROM AMOUNT IN OTHER CELL Cruisie Suzie Excel Worksheet Functions 1 October 27th 08 07:51 AM
Show or blank out a cell dependant on an selection in another cell Larsb001 Excel Discussion (Misc queries) 0 July 10th 08 02:55 PM
Dependant cell tracking Iriemon Excel Worksheet Functions 1 April 24th 08 04:33 PM
sales tax total amount from one cell amount to another cell ROSIEMSM Excel Discussion (Misc queries) 1 May 19th 07 03:15 PM
Returning a Value dependant on a cell which could have different d RemySS Excel Worksheet Functions 2 August 25th 05 03:04 PM


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

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"