Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Cone
 
Posts: n/a
Default How can i build up a Matrix in EXCEl ?

Mischa,

You can use VBA code.
This assumes the airport lists are in column A and Column B and that
the combined list will go in column C.
It takes about 30 seconds to run.
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware

'----------------------------------
Sub MixAndMatchAirportCodes()
Dim rngOne As Excel.Range
Dim rngTwo As Excel.Range
Dim rng1 As Excel.Range
Dim rng2 As Excel.Range
Dim lngN As Long
Const str_dash As String = " - "

Set rngOne = Range("A1:A250")
Set rngTwo = Range("B1:B250")
lngN = 1
Application.ScreenUpdating = False
For Each rng1 In rngOne
For Each rng2 In rngTwo
Cells(lngN, 3).Value = rng1.Value & str_dash & rng2.Value
lngN = lngN + 1
Next
Next
Application.ScreenUpdating = True
Set rngOne = Nothing
Set rngTwo = Nothing
End Sub
'------------------------------


"Mischa Sollberger" <Mischa
wrote in message...
Hello i need urgently help:

how can i build a Matrix in Excel combining 250 items (ex. airports) with
250 items (ex. airports)?
i schould create a row with the 62500 possible combinations... there must be
a formula to make this autmatically.
ex. ZHR JFK ATL ....
ZHR
JFK
ATL
.....
And then I should get a list in one row :

ZHR-JFK
ZHR-ATL
......
JFL-ZHR
JFK-ATL
.....
ATL-ZHR
ATL-JFK

thank you very much for your help.
regards
Mischa


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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
How do I print an excel spreadsheet including the matrix lines? Lexus New Users to Excel 1 October 23rd 05 03:14 AM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
How do I print a file holder label from Excel to a dox matrix pri. Al_R Excel Discussion (Misc queries) 0 January 5th 05 10:05 PM


All times are GMT +1. The time now is 02:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"