#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default 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



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



All times are GMT +1. The time now is 01:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"