Hello,
Say I have a column that I want to work on with a formula. I want to take
each value from the column, apply the formula to it, and total the result
in a footer cell for the column. Example: subtract 3 and multiply by 1/2
1
2
3
4
will produce -1 + -1/2 + 0 + 1/2 = -1. I would like to do this without a
hidden column to hold the intermediate results of applying the function
to each cell - so this is NOT what I want:
1 -1
2 -0.5
3 0
4 0.5
and sum the intermediate column to find the answer. Is there a way to do
this? I'm using Excel 2002
Thanks,
Andrew
NC - 27 Jan 2005 06:22 GMT
Andrew
you can use array formula which can be entered as below
=SUM(((A1:A10)-3)*0.5)
but take care of pressing shift+control+enter when you use this formula
so that excel will treat this as array formula
after this formula will look like
{=SUM(((A1:A10)-3)*0.5)}
Regards
NC
Andrew Clark - 28 Jan 2005 19:29 GMT
"NC" <nnchoudhari@yahoo.com> wrote in news:1106806978.762731.140710
@f14g2000cwb.googlegroups.com:
> Andrew
>
[quoted text clipped - 8 lines]
> Regards
> NC
That works beautifully! Thank you, I never new how to do it.
Andrew
Ken Russell - 27 Jan 2005 06:23 GMT
Will this do what you want?
=(SUM(D4:D8)-(COUNT(D4:D8)*3))/2

Signature
Ken Russell
kenrussellyourhat@optushome.com.au
Remove yourhat to reply by e-mail
.
> Hello,
>
[quoted text clipped - 21 lines]
> Thanks,
> Andrew
Dana DeLouis - 27 Jan 2005 12:03 GMT
Here are two similar ideas. This is an array formula...(Ctrl-Shift-Enter)
=SUM(A1:A4-3)/2
and this is a non-array entered formula...
=SUMPRODUCT(A1:A4-3)/2
HTH

Signature
Dana DeLouis
Win XP & Office 2003
> Hello,
>
[quoted text clipped - 21 lines]
> Thanks,
> Andrew