+ Reply to Thread
Results 1 to 5 of 5

Please help!!! This is hard to explain!

  1. #1
    Registered User
    Join Date
    01-10-2005
    Posts
    11

    Question Please help!!! This is hard to explain!

    I need the ranges to go from $250 to $2800 in increments of $25
    The formula needs to be from $250-$2800

    Examples:
    If A1 was $22.50 A2 would be $25
    If A1 was $1525.01 than A2 would be 1550

    I need to create something that will give me the following ranges:

    Ranges:
    $250-275 will go to 275
    $275.01-300 will go to300
    $300.01-325 will go to325

    So if the formula read something like =IF(A1=<250,"$ amount to low")IF(A1=*more than 250 but less than or equal to 275 than 275*) IF(A1=*more than 275 but less than or equal to 300 than 300*)

    Should I create another worksheet to write the formula to than reference it to sheet 1?
    I know almost nothing about excel 2002 so please be easy on me

    Thanks!
    Robert J. Sadler
    robertjsadler@msn.com

  2. #2
    Registered User
    Join Date
    01-11-2005
    Posts
    6
    Robert,

    You want the =ceiling() function.

    If the data is in cell A1, then your function in A2 would be

    =ceiling(A2,25)

    If you want the values outside your bounds to go to the bounds then you would have:

    =if(A2<250,250,if(A2>2800,2800,ceiling(A2,25))

  3. #3
    Registered User
    Join Date
    08-13-2004
    Posts
    46
    What he said

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451
    What he said except change the A2 in each formula to A1.

  5. #5
    Registered User
    Join Date
    01-10-2005
    Posts
    11

    Talking Awsome!!! Thanks guys!!!

    Thank you.

    This is the final code
    =IF(A1<250,"$ To Small",IF(A1>2800,"$ To Large",CEILING(A1,25)))

    This is sweet!
    -Robert-

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1