Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default concatenate with arrays

On Fri, 31 Jul 2009 15:00:01 -0700, hande
wrote:

Hello,

I want to porduce a list from two arrays.


A 1
B 2
C 3

I want the result to be
A1
A2
A3
B1
B2
B3
C1
C2
C3

I really have no clue.

Thanks


If your two arrays are in column A and B starting on row 1 and with a
blank cell below the data, you may try this formula in cell C1

=IF(ROW()(MATCH("_","_"&A$1:A$100,0)-1)*(MATCH("_","_"&B$1:B$100,0)-1),"",
INDEX(A$1:A$100,(ROW()-1)/(MATCH("_","_"&B$1:B$100,0)-1)+1)&
INDEX(B$1:B$100,MOD(ROW()-1,(MATCH("_","_"&B$1:B$100,0)-1))+1))

Note: This is an array formula that has to be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.

Copy the formula down as far as needed.

Hope this helps / Lars-Åke

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
concatenate with arrays Ashish Mathur[_2_] Excel Worksheet Functions 3 August 4th 09 12:38 AM
concatenate with arrays Bernd P Excel Worksheet Functions 0 August 1st 09 09:11 AM
VBA arrays Matt Excel Discussion (Misc queries) 3 February 22nd 09 06:36 PM
3D Arrays DB Excel Worksheet Functions 2 October 10th 05 03:50 PM
I know how to concatenate ,can one de-concatenate to split date? QUICK BOOKS PROBLEM- New Users to Excel 1 July 26th 05 05:07 PM


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