#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default round figures

If I enter the numbers as follows

1 2 2.5 3.4 6

it should only add up 1,2 and 6 as it are full figures and not .5 and .4
figures

Thanx


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default round figures

Hi,
What would you like to achieve, why you don't include 2.5 and 3.4 in your sum

"ekkeindoha" wrote:

If I enter the numbers as follows

1 2 2.5 3.4 6

it should only add up 1,2 and 6 as it are full figures and not .5 and .4
figures

Thanx


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default round figures

With your numbers in A1:A10 try the below; please note that this is an array
formula. Within the cell in edit mode (F2) paste this formula and press
Ctrl+Shift+Enter to apply this formula. If successful in 'Formula Bar' you
can notice the curly braces at both ends like "{=<formula}"

=SUM(IF(INT(A1:A10)=A1:A10,A1:A10))

If this post helps click Yes
---------------
Jacob Skaria


"ekkeindoha" wrote:

If I enter the numbers as follows

1 2 2.5 3.4 6

it should only add up 1,2 and 6 as it are full figures and not .5 and .4
figures

Thanx


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default round figures

One way:
=SUMPRODUCT(--(INT(A2:A6)=A2:A6),A2:A6)
--
David Biddulph

"ekkeindoha" wrote in message
...
If I enter the numbers as follows

1 2 2.5 3.4 6

it should only add up 1,2 and 6 as it are full figures and not .5 and .4
figures

Thanx




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default round figures

Or a variation on the same theme:
=SUMPRODUCT(--(MOD(A2:A6,1)=0),A2:A6)
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
One way:
=SUMPRODUCT(--(INT(A2:A6)=A2:A6),A2:A6)
--
David Biddulph

"ekkeindoha" wrote in message
...
If I enter the numbers as follows

1 2 2.5 3.4 6

it should only add up 1,2 and 6 as it are full figures and not .5 and .4
figures

Thanx








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default round figures

excellent - thanks

"David Biddulph" wrote:

One way:
=SUMPRODUCT(--(INT(A2:A6)=A2:A6),A2:A6)
--
David Biddulph

"ekkeindoha" wrote in message
...
If I enter the numbers as follows

1 2 2.5 3.4 6

it should only add up 1,2 and 6 as it are full figures and not .5 and .4
figures

Thanx





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default round figures

Just to show you there are usually more than one way to solve a problem...

=SUMPRODUCT(A2:A6*(MOD(A2:A6,1)=0))

--
Rick (MVP - Excel)


"ekkeindoha" wrote in message
...
excellent - thanks

"David Biddulph" wrote:

One way:
=SUMPRODUCT(--(INT(A2:A6)=A2:A6),A2:A6)
--
David Biddulph

"ekkeindoha" wrote in message
...
If I enter the numbers as follows

1 2 2.5 3.4 6

it should only add up 1,2 and 6 as it are full figures and not .5 and
.4
figures

Thanx






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 to round figures? Efren Llarinas Excel Discussion (Misc queries) 2 July 2nd 09 01:48 AM
Changing positive figures to minus figures Louise Excel Worksheet Functions 2 September 14th 05 10:05 AM
I want to get brackets round my figures not minus signs Peru Excel Discussion (Misc queries) 3 February 3rd 05 09:30 PM
how do i add figures exactly, do not round up. hitch Excel Discussion (Misc queries) 2 January 19th 05 10:37 AM
Why does Excell round-off figures when adding them? SandiG Excel Discussion (Misc queries) 1 December 9th 04 04:48 PM


All times are GMT +1. The time now is 12:38 AM.

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"