Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rounding numbers to the nearest thousand | Excel Discussion (Misc queries) | |||
rounding question | Excel Discussion (Misc queries) | |||
Banker's Rounding - need help! | Excel Discussion (Misc queries) | |||
An easy macro question and one I believe to be a little more diffi | Excel Worksheet Functions | |||
How do I make Excel stop rounding off my numbers that are 16 digi. | Excel Discussion (Misc queries) |