[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.excel.programming

How to Use Relative Reference in Array Formula

huamingjian

12/16/2006 3:45:00 AM

Hello, Experts,

I wanted to make array formula in multiple cells with relative
references, such as:

In cell C1: {=SUM(LEN(A1:A5))}
In cell C2: {=SUM(LEN(A2:A6))}
In cell C3: {=SUM(LEN(A3:A7))}
In cell C4: {=SUM(LEN(A4:A8))}
In cell C5: {=SUM(LEN(A5:A9))}
....
....
....

but when I highlited range C1:C5 and enter the array by presss
Control/Shift/Enter, the array formula in these cells became
{=SUM(LEN(A1:A5))}. Is there some way to force the array formula to
adopt relative reference?

thanks.

4 Answers

Martin Fishlock

12/16/2006 7:44:00 AM

0

You put the array formula in cell c1
pressing ctrl+shft+enter
and then copy down

--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"huamingjian@yahoo.com" wrote:

> Hello, Experts,
>
> I wanted to make array formula in multiple cells with relative
> references, such as:
>
> In cell C1: {=SUM(LEN(A1:A5))}
> In cell C2: {=SUM(LEN(A2:A6))}
> In cell C3: {=SUM(LEN(A3:A7))}
> In cell C4: {=SUM(LEN(A4:A8))}
> In cell C5: {=SUM(LEN(A5:A9))}
> ....
> ....
> ....
>
> but when I highlited range C1:C5 and enter the array by presss
> Control/Shift/Enter, the array formula in these cells became
> {=SUM(LEN(A1:A5))}. Is there some way to force the array formula to
> adopt relative reference?
>
> thanks.
>
>

Bob Phillips

12/16/2006 10:56:00 AM

0

Don't select C1:C5 and enter the formula, just select C1 and array enter it,
then copy down.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


<huamingjian@yahoo.com> wrote in message
news:1166240704.182498.54040@80g2000cwy.googlegroups.com...
> Hello, Experts,
>
> I wanted to make array formula in multiple cells with relative
> references, such as:
>
> In cell C1: {=SUM(LEN(A1:A5))}
> In cell C2: {=SUM(LEN(A2:A6))}
> In cell C3: {=SUM(LEN(A3:A7))}
> In cell C4: {=SUM(LEN(A4:A8))}
> In cell C5: {=SUM(LEN(A5:A9))}
> ...
> ...
> ...
>
> but when I highlited range C1:C5 and enter the array by presss
> Control/Shift/Enter, the array formula in these cells became
> {=SUM(LEN(A1:A5))}. Is there some way to force the array formula to
> adopt relative reference?
>
> thanks.
>


huamingjian

12/16/2006 11:04:00 AM

0

Martin and Bob,
Thank you both for your help.
Huaming

PapaDos

12/16/2006 10:53:00 PM

0

To avoid having to "array enter" the formula, replace SUM by SUMPRODUCT

--
Regards,
Luc.

"Festina Lente"


"huamingjian@yahoo.com" wrote:

> Hello, Experts,
>
> I wanted to make array formula in multiple cells with relative
> references, such as:
>
> In cell C1: {=SUM(LEN(A1:A5))}
> In cell C2: {=SUM(LEN(A2:A6))}
> In cell C3: {=SUM(LEN(A3:A7))}
> In cell C4: {=SUM(LEN(A4:A8))}
> In cell C5: {=SUM(LEN(A5:A9))}
> ....
> ....
> ....
>
> but when I highlited range C1:C5 and enter the array by presss
> Control/Shift/Enter, the array formula in these cells became
> {=SUM(LEN(A1:A5))}. Is there some way to force the array formula to
> adopt relative reference?
>
> thanks.
>
>