Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Table creation help please

I have to create a worksheet for a highway design class. I need to be able to
create a table between certain chainage stations.

example:
I need to create a table starting from 10+000 to 12+000 at 20 metre intervals.

Is this possible so a table is created with a column of station numbers
10+000, 10+020, 10+040, 10+060....... 11+080, 12+000.

Any help or ideas is greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default Table creation help please

One way, with a macro:

Sub CreateStations()

Const FirstPartLower = 10
Const FirstPartUpper = 11
Const SecondPartLower = 0
Const SecondPartUpper = 80
Const FinalPart = 12
Dim i As Long
Dim j As Long
Dim k As Long

k = 1

For i = FirstPartLower To FirstPartUpper Step 1
For j = SecondPartLower To SecondPartUpper Step 20
Range("A" & k) = _
Application.WorksheetFunction.Text(i, "00") & _
"+" & _
Application.WorksheetFunction.Text(j, "000")
k = k + 1
Next j
Next i

Range("A" & k) = _
Application.WorksheetFunction.Text(FinalPart, "00") & _
"+" & _
Application.WorksheetFunction.Text(0, "000")

End Sub


Adjust the constants as required

Regards

Trevor


"Dave" wrote in message
...
I have to create a worksheet for a highway design class. I need to be able
to
create a table between certain chainage stations.

example:
I need to create a table starting from 10+000 to 12+000 at 20 metre
intervals.

Is this possible so a table is created with a column of station numbers
10+000, 10+020, 10+040, 10+060....... 11+080, 12+000.

Any help or ideas is greatly appreciated.



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
Getting line on line chart to display after creation from Pivot Table dcsi_jim Charts and Charting in Excel 8 February 6th 07 08:54 PM
Creation Date Kjell Forssen Excel Discussion (Misc queries) 4 June 3rd 06 11:46 AM
Pivot table column creation: Mission Impossible ? mrchong Excel Discussion (Misc queries) 7 April 19th 06 04:41 PM
Formula creation...if possible Kelly C Excel Worksheet Functions 2 February 22nd 06 11:11 PM
Spreadsheet Creation TimJ Excel Discussion (Misc queries) 2 May 18th 05 07:16 PM


All times are GMT +1. The time now is 03:06 AM.

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"