Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default in a cell what is formula to make the numbers 1,2,3,4 = 8


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

=1+2+3+4
but the answer is 10 not 8
Maybe we need the question reworded
Pease use the white space to ask it.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Toey" wrote in message
...



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

Sorry for confusion. I want to be able to put the number 1 or 2 or 3 or 4 in
a cell and when i add the colum up each of those numbers woul = 8
ie. 1
2
_
16
"Bernard Liengme" wrote:

=1+2+3+4
but the answer is 10 not 8
Maybe we need the question reworded
Pease use the white space to ask it.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Toey" wrote in message
...




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

I would create a helper column, using the formula

=if(a1<=4,8,a1)

Adjust a1 to suit your range. Then add up the numbers in the helper column.

Regards,
Fred.

"Toey" wrote in message
...
Sorry for confusion. I want to be able to put the number 1 or 2 or 3 or 4
in
a cell and when i add the colum up each of those numbers woul = 8
ie. 1
2
_
16
"Bernard Liengme" wrote:

=1+2+3+4
but the answer is 10 not 8
Maybe we need the question reworded
Pease use the white space to ask it.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Toey" wrote in message
...





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

Still unsure of question but try
=COUNT(A1:A10)*8
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email


"Toey" wrote in message
...
Sorry for confusion. I want to be able to put the number 1 or 2 or 3 or 4
in
a cell and when i add the colum up each of those numbers woul = 8
ie. 1
2
_
16
"Bernard Liengme" wrote:

=1+2+3+4
but the answer is 10 not 8
Maybe we need the question reworded
Pease use the white space to ask it.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Toey" wrote in message
...








  #6   Report Post  
Posted to microsoft.public.excel.misc
hjc hjc is offline
external usenet poster
 
Posts: 17
Default in a cell what is formula to make the numbers 1,2,3,4 = 8


Toey,

If every cell in the column will contain a 1 or 2 or 3 or 4, then Bernard's
answer (in his second post) will give you what you want. If some cells might
contain other values that you do not wish to count, you can get the right
result as follows.

Assuming (as Bernard did) that the data you want to sum are in the range
A1:A10, enter the following formula in the cell where you want the sum to be:

= 8 * ( countif( a1:a10, "=1" ) + countif( a1:a10, "=2" ) + countif(
a1:a10, "=3" ) + countif( a1:a10, "=4" ) )

If all the cells will contain integers, you can simplify the formula to:

= 8 * ( countif( a1:a10, "<=4" ) - countif( a1:a10, "<1" ) )

I hope this helps,
Hugh John

"Toey" wrote:

Sorry for confusion. I want to be able to put the number 1 or 2 or 3 or 4 in
a cell and when i add the colum up each of those numbers woul = 8
ie. 1
2
_
16
"Bernard Liengme" wrote:

=1+2+3+4
but the answer is 10 not 8
Maybe we need the question reworded
Pease use the white space to ask it.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Toey" wrote in message
...




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

Odd question...

=SUM(-1+2+3+4) equals 8

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

Odd question...

=SUM(-1+2+3+4) equals 8


Why choose that instead of this?

=SUM(1+2*3+4^0)

<g

I think the OP needs to re-ask his question and using more words and all
that white space that comes free with his messages.

By the way, I would note that the SUM function call is not necessary for
either of our formulas.

Rick

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

Maybe this?

With 1234 in A1 enter formula in B1

=SUMPRODUCT(--MID($A$1,ROW(INDIRECT("1:" & LEN($A$1))),1))

Returns 10..........if you want 8 use this

=MIN(8,(SUMPRODUCT(--MID($A1,ROW(INDIRECT("1:"&LEN($A1))),1))))


Gord Dibben MS Excel MVP

On Thu, 17 Jan 2008 10:40:02 -0800, Toey wrote:


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

Is this one of those logic puzzles, like use four 4s and any
arithmetic operation to create the numbers 1 to 10, eg:

44/44 = 1,
4/4 + 4/4 = 2,
(4+4+4)/4 = 3

and so on?

If so, then 4 + 3 + 2 - 1 = 8

Is this what you want?

Pete

On Jan 17, 6:40*pm, Toey wrote:




  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

.... or =1-2+3^sqrt(4)
--
David Biddulph

"Pete_UK" wrote in message
...
Is this one of those logic puzzles, like use four 4s and any
arithmetic operation to create the numbers 1 to 10, eg:

44/44 = 1,
4/4 + 4/4 = 2,
(4+4+4)/4 = 3

and so on?

If so, then 4 + 3 + 2 - 1 = 8

Is this what you want?

Pete

On Jan 17, 6:40 pm, Toey wrote:



  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default in a cell what is formula to make the numbers 1,2,3,4 = 8

Do you think it is possible we may never know OP's logic or real purpose?

That will drive me nuttier<g


Gord

On Thu, 17 Jan 2008 22:48:44 -0000, "David Biddulph" <groups [at]
biddulph.org.uk wrote:

... or =1-2+3^sqrt(4)


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
how make a formula for 2 different numbers jake30 Excel Discussion (Misc queries) 2 October 2nd 07 02:28 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
How to make a cell hold numbers as a length of time in xcel? Randall Clark Excel Discussion (Misc queries) 2 August 22nd 05 06:43 PM
need to make a cell with numbers ascend when printed in multiple? needhelp Excel Worksheet Functions 1 June 13th 05 06:37 PM


All times are GMT +1. The time now is 06:50 PM.

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

About Us

"It's about Microsoft Excel"