Hi All,
Probably a dumb question, but can you use a wildcard in decimals?
For example if I want the formula to round up or down depending on the decimal value something like this?
=IF(A1>"*.8",Ceiling(A1,1),Floor(A1,1)
If it can be done, how do I do this???
Rhani
assuming that you want different things to happen for different decimals, why not have a lookup table that adds or subtracts the right decimal to the whole number
eg
.1.........0
.2.........0
.3.........0.25
.4.........0.5
.5..........5
if number in A1 = 3.1, decimal is number minus integer of number
in B1 put =int(A1)+vlookup(A1-int(A1),tablename,2)
Good morning rhani111
No you can't, but excel provides enough functions for you to find a way round most things. Try this formula :can you use a wildcard in decimals?
=IF(A1-INT(A1)>0.8,CEILING(A1,1),FLOOR(A1,1))
HTH
DominicB
Now available : Ultimate Add-In 2007
Integrates directly into the Office Excel Ribbon
Download Ultimate Add-In v1.52 from www.dom-and-lis.co.uk
90+ Utilities, 200+ Sub utilities last updated 25th April 2008
Free!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks