Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 271
Default Nine IF's in a formula

I was trying to write a formula with 9 if's in the formula but am not able to
can someone help me please:

Is there a formula which would be more concise that would just say round any
number up to the next decimal that would end in ._ 9. In other words we want
every scenario:

..00 - .09 = .09
..10 - .19 = .19
..20 - .29 = .29
and so on up to .90 - .99 = .99

Any help would be appreciated

Thank you!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Nine IF's in a formula

=ROUNDUP(A2,1)-0.01

"SUSAN" wrote:

I was trying to write a formula with 9 if's in the formula but am not able to
can someone help me please:

Is there a formula which would be more concise that would just say round any
number up to the next decimal that would end in ._ 9. In other words we want
every scenario:

.00 - .09 = .09
.10 - .19 = .19
.20 - .29 = .29
and so on up to .90 - .99 = .99

Any help would be appreciated

Thank you!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 271
Default Nine IF's in a formula

Thank you!

"Ian Grega" wrote:

=ROUNDUP(A2,1)-0.01

"SUSAN" wrote:

I was trying to write a formula with 9 if's in the formula but am not able to
can someone help me please:

Is there a formula which would be more concise that would just say round any
number up to the next decimal that would end in ._ 9. In other words we want
every scenario:

.00 - .09 = .09
.10 - .19 = .19
.20 - .29 = .29
and so on up to .90 - .99 = .99

Any help would be appreciated

Thank you!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Nine IF's in a formula

=ROUNDUP(A2,1)-0.01

Any value in full increments of 10 get rounded down:

0.10 = 0.09
0.20 = 0.19
0.30 = 0.29

Try this:

=CEILING(A1+0.01,0.1)-0.01


--
Biff
Microsoft Excel MVP


"Ian Grega" wrote in message
...
=ROUNDUP(A2,1)-0.01

"SUSAN" wrote:

I was trying to write a formula with 9 if's in the formula but am not
able to
can someone help me please:

Is there a formula which would be more concise that would just say round
any
number up to the next decimal that would end in ._ 9. In other words we
want
every scenario:

.00 - .09 = .09
.10 - .19 = .19
.20 - .29 = .29
and so on up to .90 - .99 = .99

Any help would be appreciated

Thank you!




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
Too Many If's Rianne Excel Worksheet Functions 10 March 22nd 07 08:13 PM
How many 'if's'? Lynneth Excel Discussion (Misc queries) 1 May 4th 06 03:59 PM
to many 'IF's'?? boufant Excel Worksheet Functions 4 July 2nd 05 10:58 AM
Formula with multiple IF'S Kim46770 Excel Discussion (Misc queries) 2 May 17th 05 10:31 PM
How many if's? Christopher Anderson Excel Discussion (Misc queries) 4 January 5th 05 03:16 PM


All times are GMT +1. The time now is 02:33 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"