#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Excel Formula

Row A contains numbers either 1, 1.5, 2 or 3
At the end of the row is a formula to add up the numbers but I would like a
formula that adds them up but if there is 1.5 in the cell I want the formula
to think of it as 1 for example.

instead of 1, 1, 1, 1.5 = 4.5
I would like it to total 4

Is this possible

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Excel Formula

=INT(SUM(A1:D1))

"grobertson" wrote:

Row A contains numbers either 1, 1.5, 2 or 3
At the end of the row is a formula to add up the numbers but I would like a
formula that adds them up but if there is 1.5 in the cell I want the formula
to think of it as 1 for example.

instead of 1, 1, 1, 1.5 = 4.5
I would like it to total 4

Is this possible

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Excel Formula

It depends on when you want the transformation to occur...

Example:
If A1:D1 contains 1.5 1.5 1.5 1.5

This formula =INT(SUM(A1:D1)) returns 6

but
This formula =SUMPRODUCT(INT(A1:D1)) returns 4

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"grobertson" wrote:

Row A contains numbers either 1, 1.5, 2 or 3
At the end of the row is a formula to add up the numbers but I would like a
formula that adds them up but if there is 1.5 in the cell I want the formula
to think of it as 1 for example.

instead of 1, 1, 1, 1.5 = 4.5
I would like it to total 4

Is this possible

  #4   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Excel Formula

another way would be to use an array formula
=sum(if(A1:Z1=1.5,1,A1:Z1))
enter as <control-shift-enter

"grobertson" wrote:

Row A contains numbers either 1, 1.5, 2 or 3
At the end of the row is a formula to add up the numbers but I would like a
formula that adds them up but if there is 1.5 in the cell I want the formula
to think of it as 1 for example.

instead of 1, 1, 1, 1.5 = 4.5
I would like it to total 4

Is this possible

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Excel Formula

If you want to add elements of Col_C where corresponding cells in Col_A are
NOT blank then your syntax is a bit off.

Try this:
=SUMIF($A:$A,"<"&"",$C:$C)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"grobertson" wrote:

Row A contains numbers either 1, 1.5, 2 or 3
At the end of the row is a formula to add up the numbers but I would like a
formula that adds them up but if there is 1.5 in the cell I want the formula
to think of it as 1 for example.

instead of 1, 1, 1, 1.5 = 4.5
I would like it to total 4

Is this possible



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Excel Formula

Well, that post sure ended up in the wrong bucket!
I suspect a hardware problem......probably a loose nut in front of my
keyboard.



"Ron Coderre" wrote in message
...
If you want to add elements of Col_C where corresponding cells in Col_A
are
NOT blank then your syntax is a bit off.

Try this:
=SUMIF($A:$A,"<"&"",$C:$C)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"grobertson" wrote:

Row A contains numbers either 1, 1.5, 2 or 3
At the end of the row is a formula to add up the numbers but I would like
a
formula that adds them up but if there is 1.5 in the cell I want the
formula
to think of it as 1 for example.

instead of 1, 1, 1, 1.5 = 4.5
I would like it to total 4

Is this possible



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
Excel Formula Doesn't Execute (Shows formula-not the calcuation) Keys1970 Excel Discussion (Misc queries) 4 November 15th 06 02:12 PM
match formula - 2 excel files:#1 hasthis formula, 2nd has the Raw DS Excel Worksheet Functions 4 October 7th 06 12:25 AM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
i edit a formula (excel) then it displays formula not answer caiman Excel Discussion (Misc queries) 2 September 9th 05 02:09 AM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM


All times are GMT +1. The time now is 12:31 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"