Array formula techniqes

  • Thread starter Thread starter Jack Schitt
  • Start date Start date
J

Jack Schitt

Is it in theory possible to create a single-cell array formula that
simulates the effect of the following?



=Function(Mid(A1,1,1))&Function(Mid(A1,2,1)...&Function(Mid(A1,i,1)...&Funct
ion(A1,n,1)



where n is a variable equal to LEN(A1)

and "Function" is the same throughout

?



I have seen examples of array formulae that use

ROW(INDIRECT("1:"&LEN(A1)))

to identify the value of "i",

but the examples that I have seen always just SUM the elements instead of
concatenating them.



Is there a web page that talks me through these techniques, please? I had a
look at Chip Pearson's otherwise splendid site but the stuff on array
formulae does not seem to go into that depth (or perhaps I missed it).
 
Jack Schitt said:
I have seen examples of array formulae that use

ROW(INDIRECT("1:"&LEN(A1)))

to identify the value of "i",

but the examples that I have seen always just SUM the elements instead
of concatenating them.

Generalized concatentation isn't possible in Excel using built-in functions
even involving array formulas. Excel simply doesn't provide anything more
than pairwise concatenation. So unlike + and SUM, for which {1,2}+{3;4} ==
{4,5;5,6} while SUM({1,2},{3;4}) == 10, & and CONCATENATE just do the same
thing, {1,2}&{3;4} == {"13","23";"14","24"} and CONCATENATE({1,2},{3;4})
returns the same array rather than "1234".

If you want general concatenation you have to use a udf.
Is there a web page that talks me through these techniques, please?
I had a look at Chip Pearson's otherwise splendid site but the stuff
on array formulae does not seem to go into that depth (or perhaps I
missed it).

There's no theoretical treatise on array formulas. Learning by doing is
best, but next best is reading posts in this newsgroup and in
microsoft.public.excel.worksheet.functions. Search these newsgroups using
Google Groups on the term 'array'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Array formula 4
Scrabble Value calculation for Welsh words 0
Formula Correction 5
Delimit using a formula 2 4
Use formulas for array elements 3
Formula for naming tabs 10
RANK function 4
data validation formula 4

Back
Top