Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PastorHankWi
 
Posts: n/a
Default Rounding Question

I am using the roundown function and everything works fine. However, one of
my number when rounded down = 1 when 1 is divided in 1/2 (which I have to do)
the rounddown function takes it to a zero when instead I need it to stay at
1. If there any to test for a greater than or less than value in a cell? or
how would ya'll suggest I handle this situation.

Thank you
Hank
PS, I'm a real excel newbie....
  #2   Report Post  
Carlos Antenna
 
Posts: n/a
Default

a1=value
b1=rounddown(a1,0)
c1=if(b1=1,1,rounddown(b1/2,0))

-- Carlos

"PastorHankWi" wrote in message
...
I am using the roundown function and everything works fine. However, one
of
my number when rounded down = 1 when 1 is divided in 1/2 (which I have to
do)
the rounddown function takes it to a zero when instead I need it to stay
at
1. If there any to test for a greater than or less than value in a cell?
or
how would ya'll suggest I handle this situation.

Thank you
Hank
PS, I'm a real excel newbie....



  #3   Report Post  
Jane
 
Posts: n/a
Default

If you want anything less than one to be one and you never want any zeros,
try IF(ROUNDDOWN(A1,0)=0,1,ROUNDDOWN(A1,0)). If there are legitimate zero
cells, try IF(A10,IF(ROUNDDOWN(A1,0)=0,1,ROUNDDOWN(A1,0)),0)

Hope that helps.

Jane

"PastorHankWi" wrote:

I am using the roundown function and everything works fine. However, one of
my number when rounded down = 1 when 1 is divided in 1/2 (which I have to do)
the rounddown function takes it to a zero when instead I need it to stay at
1. If there any to test for a greater than or less than value in a cell? or
how would ya'll suggest I handle this situation.

Thank you
Hank
PS, I'm a real excel newbie....

  #4   Report Post  
PastorHankWi
 
Posts: n/a
Default

Fantastic, thank you ma'am, that's exactly what I wanted to do. I program
with VFP and couldn't find anything about IF statements in the Excel Doc.

Thanks again.
H


"Jane" wrote:

If you want anything less than one to be one and you never want any zeros,
try IF(ROUNDDOWN(A1,0)=0,1,ROUNDDOWN(A1,0)). If there are legitimate zero
cells, try IF(A10,IF(ROUNDDOWN(A1,0)=0,1,ROUNDDOWN(A1,0)),0)

Hope that helps.

Jane

"PastorHankWi" wrote:

I am using the roundown function and everything works fine. However, one of
my number when rounded down = 1 when 1 is divided in 1/2 (which I have to do)
the rounddown function takes it to a zero when instead I need it to stay at
1. If there any to test for a greater than or less than value in a cell? or
how would ya'll suggest I handle this situation.

Thank you
Hank
PS, I'm a real excel newbie....

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
Rounding numbers to the nearest thousand Mark Excel Discussion (Misc queries) 2 March 10th 05 12:13 PM
rounding question Amie Excel Discussion (Misc queries) 2 January 21st 05 04:44 PM
Banker's Rounding - need help! Somecallmejosh Excel Discussion (Misc queries) 3 January 20th 05 09:53 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
How do I make Excel stop rounding off my numbers that are 16 digi. Aida Excel Discussion (Misc queries) 1 December 6th 04 04:34 PM


All times are GMT +1. The time now is 03:56 AM.

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"