Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2005

Tip: Looking for answers? Try searching our database.

Applying a formula to a column

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Clark - 27 Jan 2005 04:55 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.