PC Review


Reply
Thread Tools Rate Thread

Calculating more than one value in a function

 
 
Charlie Johnson
Guest
Posts: n/a
 
      19th Nov 2003
Hi all,

Can something like this be done: Cos(A1:A10)? That is calculate the value
of Cos(A1) through Cos(A10). If so, how? I keep gettting an error.

Lurch


 
Reply With Quote
 
 
 
 
Peo Sjoblom
Guest
Posts: n/a
 
      19th Nov 2003
The trick is to first select for instance B1:B10, then in the formula bar
put your formula and enter it
with ctrl + shift & enter

--

Regards,

Peo Sjoblom


"Charlie Johnson" <cj-(E-Mail Removed)> wrote in message
news:WpNub.10411$(E-Mail Removed)...
> Hi all,
>
> Can something like this be done: Cos(A1:A10)? That is calculate the value
> of Cos(A1) through Cos(A10). If so, how? I keep gettting an error.
>
> Lurch
>
>



 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      19th Nov 2003
Charlie,

In cell B1, you can simply enter
=Cos(A1)
and then copy down to B10.

Otherwise, you could select B1:B10, type =Cos(A1) and press
Ctrl-Enter.

Or, your could select B1:B10, type =Cos(A1:A10) and press
Ctrl-Shift-Enter.

If you want to use all the Cosine values in one cell, you could (for
example) sum them using
=SUM(Cos(A1:A10))
entered with Ctrl-Shift-Enter.

A better explanation of what you are doing would help us help you.

HTH,
Bernie
MS Excel MVP

"Charlie Johnson" <cj-(E-Mail Removed)> wrote in message
news:WpNub.10411$(E-Mail Removed)...
> Hi all,
>
> Can something like this be done: Cos(A1:A10)? That is calculate the

value
> of Cos(A1) through Cos(A10). If so, how? I keep gettting an error.
>
> Lurch
>
>



 
Reply With Quote
 
Charlie Johnson
Guest
Posts: n/a
 
      19th Nov 2003

"Charlie Johnson" <cj-(E-Mail Removed)> wrote in message
news:WpNub.10411$(E-Mail Removed)...
> Hi all,
>
> Can something like this be done: Cos(A1:A10)? That is calculate the value
> of Cos(A1) through Cos(A10). If so, how? I keep gettting an error.
>
> Lurch


>
>

Also,

When I try to compute the cos(pi()/2) , I keep getting 6.12574E-17. Does
that mean 0? I know from computer programming that something that small is
essentially 0. Is that how Excel represents 0? If so, I would have thought
MS could have programmed that into Excel.

Lurch


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      20th Nov 2003
It's a problem with any program that represents numbers in base 2.

This is a number very close to 0.
0.0000000000000000612574


You could wrap your formula with =round() (or one of its sibling functions) to
get as close as you wanted

=ROUND(COS(PI()/2),5)

will round to 5 decimal places.

Charlie Johnson wrote:
>
> "Charlie Johnson" <cj-(E-Mail Removed)> wrote in message
> news:WpNub.10411$(E-Mail Removed)...
> > Hi all,
> >
> > Can something like this be done: Cos(A1:A10)? That is calculate the value
> > of Cos(A1) through Cos(A10). If so, how? I keep gettting an error.
> >
> > Lurch

>
> >
> >

> Also,
>
> When I try to compute the cos(pi()/2) , I keep getting 6.12574E-17. Does
> that mean 0? I know from computer programming that something that small is
> essentially 0. Is that how Excel represents 0? If so, I would have thought
> MS could have programmed that into Excel.
>
> Lurch


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF function not calculating rvctrey Microsoft Excel Misc 3 24th Jul 2009 11:17 PM
Sum function not calculating? enchristi Microsoft Excel Misc 1 6th Mar 2008 06:34 PM
Re: If function calculating date extrudebg Microsoft Excel Worksheet Functions 0 22nd Aug 2006 06:42 PM
Re: If function calculating date extrudebg Microsoft Excel Worksheet Functions 0 22nd Aug 2006 06:42 PM
If function calculating date extrudebg Microsoft Excel Worksheet Functions 0 22nd Aug 2006 06:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 AM.