ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   HOW TO CONSTRUCT AN ARRAY FORMULA (https://www.excelbanter.com/excel-programming/438456-how-construct-array-formula.html)

Faraz A. Qureshi

HOW TO CONSTRUCT AN ARRAY FORMULA
 
Sure would oblige if one would kindly provide the code for developing a UDF
for simple formula of reversing the column values like the following:

=OFFSET($A$1,ROWS($A$1:$A$20)-ROWS($B$1:B1),0)

Thus, if a UDF like the following, is entered in an array form:
{=REVCOL(A1:A20)}
on the range B1:B20, the B1:B20 would represent the data of A1:A20 but in
the reverse order.

Thanx in advance,
Best Regards,

Faraz

Stefi

HOW TO CONSTRUCT AN ARRAY FORMULA
 
Entering in B1 and filled down to B20 this normal (not array) formula gives
A1:A20 in reverse order:
=INDEX($A$1:$A$20,21-INDIRECT("A"&ROW()))


--
Regards!
Stefi



€˛Faraz A. Qureshi€¯ ezt Ć*rta:

Sure would oblige if one would kindly provide the code for developing a UDF
for simple formula of reversing the column values like the following:

=OFFSET($A$1,ROWS($A$1:$A$20)-ROWS($B$1:B1),0)

Thus, if a UDF like the following, is entered in an array form:
{=REVCOL(A1:A20)}
on the range B1:B20, the B1:B20 would represent the data of A1:A20 but in
the reverse order.

Thanx in advance,
Best Regards,

Faraz


Faraz A. Qureshi

HOW TO CONSTRUCT AN ARRAY FORMULA
 
I know several others as well Stefi. It is the programming section I have my
query placed! A code for a UDF is required not a formula.
--
Thanx in advance,
Best Regards,

Faraz


"Stefi" wrote:

Entering in B1 and filled down to B20 this normal (not array) formula gives
A1:A20 in reverse order:
=INDEX($A$1:$A$20,21-INDIRECT("A"&ROW()))


--
Regards!
Stefi



€˛Faraz A. Qureshi€¯ ezt Ć*rta:

Sure would oblige if one would kindly provide the code for developing a UDF
for simple formula of reversing the column values like the following:

=OFFSET($A$1,ROWS($A$1:$A$20)-ROWS($B$1:B1),0)

Thus, if a UDF like the following, is entered in an array form:
{=REVCOL(A1:A20)}
on the range B1:B20, the B1:B20 would represent the data of A1:A20 but in
the reverse order.

Thanx in advance,
Best Regards,

Faraz



All times are GMT +1. The time now is 01:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com