#1   Report Post  
Posted to microsoft.public.excel.misc
Tim
 
Posts: n/a
Default Function question

I want to take a number and then do a sum similiar to a factorial.

Example:

In cell A1 I input 5

then in cell A2 the function adds 5+4+3+2+1

if I put in 3 it adds 3+2+1

is there a function that does this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Function question

=a1*(a1+1)/2

It's a neat formula that some kid figured out a long time ago...

Say you want to add 1+2+3+4+5+6+...+100
Call that Sum S

We can write it two ways:
S = 1 + 2 + 3 + ... + 100
S = 100 + 99 + 98 + ... + 1

We add those two lines and we get:

2*S = 101 + 101 + 101 + ... + 101 (100 times)
so
2*S = 100 * 101

S = 100 * 101 / 2

Replace that 100 with an arbitrary N:

S = N*(N+1)/2



Tim wrote:

I want to take a number and then do a sum similiar to a factorial.

Example:

In cell A1 I input 5

then in cell A2 the function adds 5+4+3+2+1

if I put in 3 it adds 3+2+1

is there a function that does this?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bill Martin
 
Posts: n/a
Default Function question

The kid was Issac Newton. The story is that as punishment the teacher told
the whole class to add up the numbers from 1 to 100. Newton stared at it a
bit and just wrote down the answer. You can imagine the teacher's
response.

Bill
--------------------
On Wed, 22 Feb 2006 12:21:03 -0600, Dave Peterson wrote:

=a1*(a1+1)/2

It's a neat formula that some kid figured out a long time ago...

Say you want to add 1+2+3+4+5+6+...+100
Call that Sum S

We can write it two ways:
S = 1 + 2 + 3 + ... + 100
S = 100 + 99 + 98 + ... + 1

We add those two lines and we get:

2*S = 101 + 101 + 101 + ... + 101 (100 times)
so
2*S = 100 * 101

S = 100 * 101 / 2

Replace that 100 with an arbitrary N:

S = N*(N+1)/2

Tim wrote:

I want to take a number and then do a sum similiar to a factorial.

Example:

In cell A1 I input 5

then in cell A2 the function adds 5+4+3+2+1

if I put in 3 it adds 3+2+1

is there a function that does this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Function question

I think it was Carl Friedrich Gauss, actually.

Bill Martin wrote:

The kid was Issac Newton. The story is that as punishment the teacher told
the whole class to add up the numbers from 1 to 100. Newton stared at it a
bit and just wrote down the answer. You can imagine the teacher's
response.

Bill
--------------------
On Wed, 22 Feb 2006 12:21:03 -0600, Dave Peterson wrote:

=a1*(a1+1)/2

It's a neat formula that some kid figured out a long time ago...

Say you want to add 1+2+3+4+5+6+...+100
Call that Sum S

We can write it two ways:
S = 1 + 2 + 3 + ... + 100
S = 100 + 99 + 98 + ... + 1

We add those two lines and we get:

2*S = 101 + 101 + 101 + ... + 101 (100 times)
so
2*S = 100 * 101

S = 100 * 101 / 2

Replace that 100 with an arbitrary N:

S = N*(N+1)/2

Tim wrote:

I want to take a number and then do a sum similiar to a factorial.

Example:

In cell A1 I input 5

then in cell A2 the function adds 5+4+3+2+1

if I put in 3 it adds 3+2+1

is there a function that does this?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
icestationzbra
 
Posts: n/a
Default Function question


http://www.newton.dep.anl.gov/askasc.../math99224.htm


--
icestationzbra
------------------------------------------------------------------------
icestationzbra's Profile: http://www.excelforum.com/member.php...fo&userid=4580
View this thread: http://www.excelforum.com/showthread...hreadid=515441



  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Function question

Even though the link has Newton in its address, it still refers to Gauss <vbg.

icestationzbra wrote:

http://www.newton.dep.anl.gov/askasc.../math99224.htm

--
icestationzbra
------------------------------------------------------------------------
icestationzbra's Profile: http://www.excelforum.com/member.php...fo&userid=4580
View this thread: http://www.excelforum.com/showthread...hreadid=515441


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
Bill Martin
 
Posts: n/a
Default Function question

You're absolutely right! Somehow I've apparently had that wrong for 30
years. Makes me wonder what else I "know that isn't true?

Thanks.

Bill
-----------------------
On Wed, 22 Feb 2006 14:22:42 -0600, Dave Peterson wrote:

I think it was Carl Friedrich Gauss, actually.

Bill Martin wrote:

The kid was Issac Newton. The story is that as punishment the teacher told
the whole class to add up the numbers from 1 to 100. Newton stared at it a
bit and just wrote down the answer. You can imagine the teacher's
response.

Bill

  #8   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Function question

It gets worse, Bill........believe me........<g

Vaya con Dios,
Chuck, CABGx3



"Bill Martin" wrote:

You're absolutely right! Somehow I've apparently had that wrong for 30
years. Makes me wonder what else I "know that isn't true?

Thanks.

Bill
-----------------------
On Wed, 22 Feb 2006 14:22:42 -0600, Dave Peterson wrote:

I think it was Carl Friedrich Gauss, actually.

Bill Martin wrote:

The kid was Issac Newton. The story is that as punishment the teacher told
the whole class to add up the numbers from 1 to 100. Newton stared at it a
bit and just wrote down the answer. You can imagine the teacher's
response.

Bill


  #9   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Function question

"Tim" wrote:
I want to take a number and then do a sum similiar to a factorial.
Example:
In cell A1 I input 5
then in cell A2 the function adds 5+4+3+2+1
if I put in 3 it adds 3+2+1
is there a function that does this?


Function? I don't know. But there is a well-known formula
for this sum. In Excel, it would be:

=A1*(A1+1)/2
  #10   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Function question

In B1, put formula =FACT(A1)

HTH,

--
AP

"Tim" a écrit dans le message de
...
I want to take a number and then do a sum similiar to a factorial.

Example:

In cell A1 I input 5

then in cell A2 the function adds 5+4+3+2+1

if I put in 3 it adds 3+2+1

is there a function that does this?





  #11   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Function question

=SUMPRODUCT(--(ROW(INDIRECT("1:"&A1))))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Tim" wrote in message
...
I want to take a number and then do a sum similiar to a factorial.

Example:

In cell A1 I input 5

then in cell A2 the function adds 5+4+3+2+1

if I put in 3 it adds 3+2+1

is there a function that does this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum Product Function Question RUSH2CROCHET Excel Discussion (Misc queries) 10 October 6th 05 09:12 PM
DB (depreciation) function Help question Youngblood Excel Worksheet Functions 1 July 14th 05 12:11 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
INDIRECT function question Joe Excel Worksheet Functions 1 February 14th 05 03:54 PM
Function question cindi Excel Worksheet Functions 3 January 5th 05 02:45 PM


All times are GMT +1. The time now is 07:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"