Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to combine items in 3 columns and produce all combinations usi

like a table
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to combine items in 3 columns and produce all combinations usi

nest 3 loops. Each loop loops over the values in one of the columns.

--
Regards,
Tom Ogilvy

"Kumar_KP" wrote in message
...
like a table



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to combine items in 3 columns and produce all combinations usi

Dim rw as Long, col as Long
dim cellA as Range, cellB as Range
dim cellC as Range
rw = 1
col = 5
for each cellA in Range("A1:A10")
for each cellB in Range("B1:B15")
for each cellC in Range("C1:C8")
cells(rw,col).value = CellA
cells(rw,col+1).value = CellB
cells(rw,col+2).value = CellC
rw = rw + 1
if rw 60000 then
rw = 1
col = col + 4
end if
Next
Next
Next

--
Regards,
Tom Ogilvy

--
Regards,
Tom Ogilvy

"kumar" wrote in message
u...
pls can you explain how to do it??


"Tom Ogilvy" wrote in message
...
nest 3 loops. Each loop loops over the values in one of the columns.

--
Regards,
Tom Ogilvy

"Kumar_KP" wrote in message
...
like a table







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default how to combine items in 3 columns and produce all combinations usi

Hi
see your other post

--
Regards
Frank Kabel
Frankfurt, Germany

"Kumar_KP" schrieb im Newsbeitrag
...
like a table


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default how to combine items in 3 columns and produce all combinations usi

pls can you explain how to do it??


"Tom Ogilvy" wrote in message
...
nest 3 loops. Each loop loops over the values in one of the columns.

--
Regards,
Tom Ogilvy

"Kumar_KP" wrote in message
...
like a table





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
line up items in column a with items in columns b, c, etc meera123 Excel Discussion (Misc queries) 0 September 2nd 08 02:20 PM
Counting unique combinations in two columns [email protected] Excel Discussion (Misc queries) 3 May 6th 07 03:03 AM
Like items will not combine in a pivot table. markh Excel Worksheet Functions 4 April 1st 07 06:06 PM
produce a formulate to produce assigned seats for dinner DavidJoss Excel Worksheet Functions 0 October 4th 05 02:29 AM
How do I combine four data items into one in a Pivot Table? robjworsley Excel Discussion (Misc queries) 3 September 19th 05 06:19 PM


All times are GMT +1. The time now is 01:34 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"