ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF / AND formula (https://www.excelbanter.com/excel-worksheet-functions/190755-if-formula.html)

talltom

IF / AND formula
 
I am creating a small spreadsheet with the following.

I need a formla to roundup to the next whole number.

for example;
If A1 <=10, 1
If A1 10 and <21, 2
If A1 20 and <31, 3, etc up to 10.

I think I will run out of "IF" statements after 7.

Any help will be appreciated, Thank You

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

IF / AND formula
 
Try this instead of IF statements...

=1+INT((A1-1)/10)

Rick


"talltom" wrote in message
...
I am creating a small spreadsheet with the following.

I need a formla to roundup to the next whole number.

for example;
If A1 <=10, 1
If A1 10 and <21, 2
If A1 20 and <31, 3, etc up to 10.

I think I will run out of "IF" statements after 7.

Any help will be appreciated, Thank You



talltom

IF / AND formula
 
Thank You Rick, It works great.

"Rick Rothstein (MVP - VB)" wrote:

Try this instead of IF statements...

=1+INT((A1-1)/10)

Rick


"talltom" wrote in message
...
I am creating a small spreadsheet with the following.

I need a formla to roundup to the next whole number.

for example;
If A1 <=10, 1
If A1 10 and <21, 2
If A1 20 and <31, 3, etc up to 10.

I think I will run out of "IF" statements after 7.

Any help will be appreciated, Thank You





All times are GMT +1. The time now is 02:10 PM.

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