+ Reply to Thread
Results 1 to 5 of 5

If statement

  1. #1
    Registered User
    Join Date
    12-01-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    38

    If statement

    Hi,

    I have a spreadsheet which has various calculations. I would like excel to display a numeric percentage if a calculated value is greater than a certain no. If it is less than a certain number I would like it display a different value.

    i.e. if total is greater than or equal to 0 but less than 1.9 then excel will display 10%
    and
    if total is greater than or equal to 2 but less than 2.9 then excel will display 15%
    and finally
    if total is greater than or equal to 3 but less than 4 the excel will display 30%

    Any help is much appreciated,

    Kind Regards,

    Karo
    Last edited by karobonas; 12-03-2010 at 07:18 AM.

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

    Re: If statement

    Perhaps?

    =LOOKUP(A1,{0,2,3,4},{0.1,0.15,0.3,""})

    where A1 contains total.

    you can replace the "" with a number if you want a value to appear if A1 is greater than or equal to 4.
    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.

  3. #3
    Registered User
    Join Date
    12-01-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: If statement

    Hi,

    Thanks for your pompt response....

    It seems to work fine for any value over 4, please see attached jpeg to display my results. The other values however do not seem to work. What changes do you propose I make to rectify?

    Thanks again for your help.
    Attached Images Attached Images

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

    Re: If statement

    Adjust the formatting of all the cells to Percentage (Format|Cells >> Number)

  5. #5
    Registered User
    Join Date
    12-01-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: If statement

    Perfect... thank you!

+ 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