+ Reply to Thread
Results 1 to 7 of 7

Can you have a 3 if statements in one cell?

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Can you have a 3 if statements in one cell?

    Here's my problem. I need for a cell to produce 3 different answers based on the number in a referenced cell.

    If the the referenced cell is < 2,000 then I want the other cell to add 15% to the number.

    If the referenced cell is 2,000 to 9,999 then I want the other cell to add 10%

    and If the the referenced cell is 10,000 or greater, I want the other cell to add 5%

    I also would like the result to be be rounded up to the nearest hundred.

    I've managed to make a working formula for the 1st 2 statement but I can't figure out had to add the 3rd.

    Here is the formula that I have:

    =ROUNDUP(IF('Text Prep.Presswork.Bind'!B12<2000, 'Text Prep.Presswork.Bind'!B12*1.15, 'Text Prep.Presswork.Bind'!B12*1.1),-2)

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Can you have a 3 if statements in one cell?

    You don't need 3 but 2 IF's:

    =A1*(IF(A1<2000, 1.15, IF(A1<10000, 1.1,1.05)))
    Last edited by zbor; 03-31-2010 at 10:39 AM.
    Never use Merged Cells in Excel

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Can you have a 3 if statements in one cell?

    And this for rounding:


    =MROUND(A1*(IF(A1<2000,1.15,IF(A1<10000,1.1,1.05))),"100")

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Can you have a 3 if statements in one cell?

    Quote Originally Posted by zbor View Post
    And this for rounding:


    =MROUND(A1*(IF(A1<2000,1.15,IF(A1<10000,1.1,1.05))),"100")

    Where MROUND is an Analysis Toolpak Addin function for pre XL2007
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    03-31-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Can you have a 3 if statements in one cell?

    Quote Originally Posted by zbor View Post
    You don't need 3 but 2 IF's:

    =A1*(IF(A1<2000, 1.15, IF(A1<10000, 1.1,1.05)))
    This is exactly what i enter following your instructions:

    ='Text Prep.Presswork.Bind'!B12*(IF('Text Prep.Presswork.Bind'!B12<2000, 1.15, IF('Text Prep.Presswork.Bind'!B12<10,000, 1.1, 1.05)))

    I received an error message that said: You've entered too many arguments for this funtion

    Did I do something Wrong?

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Can you have a 3 if statements in one cell?

    remove , from number:

    ='Text Prep.Presswork.Bind'!B12*(IF('Text Prep.Presswork.Bind'!B12<2000, 1.15, IF('Text Prep.Presswork.Bind'!B12<10,000, 1.1, 1.05)))

    and write just 10000

  7. #7
    Registered User
    Join Date
    03-31-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Can you have a 3 if statements in one cell?

    Quote Originally Posted by zbor View Post
    remove , from number:

    ='Text Prep.Presswork.Bind'!B12*(IF('Text Prep.Presswork.Bind'!B12<2000, 1.15, IF('Text Prep.Presswork.Bind'!B12<10,000, 1.1, 1.05)))

    and write just 10000
    This totally worked!!! Thanks so much for your help!!!

+ 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