Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.excel.programming > #107996

VBA Rounding

Path csiph.com!xmission!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.newsgroupbanter.com!news.newsgroupbanter.com.POSTED!not-for-mail
NNTP-Posting-Date Wed, 26 Aug 2015 16:49:00 -0500
From Gene Haines <Gene.Haines.1023e9c8@excelbanter.com>
Newsgroups microsoft.public.excel.programming
Subject VBA Rounding
Date Wed, 26 Aug 2015 22:29:58 +0100
Message-ID <Gene.Haines.1023e9c8@excelbanter.com> (permalink)
Organization ExcelBanter.com
User-Agent
X-Newsreader
X-Originating-IP
Lines 31
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-rJmPI3Z+K+jnQ1XF9BULfPcF5jjyIMd3x8xbRyn3SfymzO4IVVXlUnj04Eehriau7WEInnegjHDuFft!CqmsldI96q6ErbJYkKpLqQ17Wi53vxmuA/rxzwLw5bM7cDkr0cqx0xKBF/awgvR+PF8fYRvXQuZk!4TYIYD4njO9Rgw==
X-Complaints-To abuse@newsgroupbanter.com
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Lines 23
X-Original-Bytes 1539
X-Received-Bytes 1673
X-Received-Body-CRC 4120322990
Xref csiph.com microsoft.public.excel.programming:107996

Show key headers only | View raw


I am trying to see if the VBA rounding function will round to even. As
an example:

Cell  A1:A6   
2.45                                            
2.75                                            
2.89                                            
2.67                                            
2.56                                            
2.32                                            

Result from above  
2.4
2.8
2.8
2.6
2.6
2.4

I cannot find anything online that will accomplish this. Does anyone
know the code in VBA that may work?

Thank you

Gene Haines




-- 
Gene Haines

Back to microsoft.public.excel.programming | Previous | NextNext in thread | Find similar | Unroll thread


Thread

VBA Rounding Gene Haines <Gene.Haines.1023e9c8@excelbanter.com> - 2015-08-26 22:29 +0100
  Re: VBA Rounding "Peter T" <askformy@gmail.com> - 2015-08-27 09:50 +0100
  Re: VBA Rounding Gene Haines <Gene.Haines.10256579@excelbanter.com> - 2015-08-28 01:05 +0100
    Re: VBA Rounding witek <witek7205@gazeta.pl.invalid> - 2015-08-27 20:49 -0500

csiph-web