ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   formula (https://www.excelbanter.com/excel-programming/413226-formula.html)

Himansu

formula
 

Hello everyone,

I can't seem to get this formula to work:

=IF(B2=1000.01,ROUNDUP(B2,-2)),IF(B2=25.01,CEILING(B2,5)),IF(B2=15.01,25)
,IF(B2=10.01,15),IF(B2=0.01,10),IF(B2=0,25)

---

Am I doing something wrong? Please advise.

--
Thanks,
Himansu



Bob Umlas, Excel MVP

formula
 
Much misplaced parentheses:
=IF(B2=1000.01,ROUNDUP(B2,-2),IF(B2=25.01,CEILING(B2,5),IF(B2=15.01,25,IF(B 2=10.01,15,IF(B2=0.01,10,IF(B2=0,25))))))

"Himansu" wrote:


Hello everyone,

I can't seem to get this formula to work:

=IF(B2=1000.01,ROUNDUP(B2,-2)),IF(B2=25.01,CEILING(B2,5)),IF(B2=15.01,25)
,IF(B2=10.01,15),IF(B2=0.01,10),IF(B2=0,25)

---

Am I doing something wrong? Please advise.

--
Thanks,
Himansu




Rick Rothstein \(MVP - VB\)[_2190_]

formula
 
You have closed off everyone of your IF statements with an extra/misplaced
closing parentheses. Try it this way...

=IF(B2=1000.01,ROUNDUP(B2,-2),IF(B2=25.01,CEILING(B2,5),IF(B2=15.01,25,IF(B 2=10.01,15,IF(B2=0.01,10,IF(B2=0,25))))))

Rick


"Himansu" wrote in message
...

Hello everyone,

I can't seem to get this formula to work:

=IF(B2=1000.01,ROUNDUP(B2,-2)),IF(B2=25.01,CEILING(B2,5)),IF(B2=15.01,25)
,IF(B2=10.01,15),IF(B2=0.01,10),IF(B2=0,25)

---

Am I doing something wrong? Please advise.

--
Thanks,
Himansu




Himansu

formula
 

Thanks everyone.


"Rick Rothstein (MVP - VB)" wrote in
message ...
You have closed off everyone of your IF statements with an extra/misplaced
closing parentheses. Try it this way...


=IF(B2=1000.01,ROUNDUP(B2,-2),IF(B2=25.01,CEILING(B2,5),IF(B2=15.01,25,IF
(B2=10.01,15,IF(B2=0.01,10,IF(B2=0,25))))))

Rick


"Himansu" wrote in message
...

Hello everyone,

I can't seem to get this formula to work:


=IF(B2=1000.01,ROUNDUP(B2,-2)),IF(B2=25.01,CEILING(B2,5)),IF(B2=15.01,25)
,IF(B2=10.01,15),IF(B2=0.01,10),IF(B2=0,25)

---

Am I doing something wrong? Please advise.

--
Thanks,
Himansu







All times are GMT +1. The time now is 12:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com