+ Reply to Thread
Results 1 to 4 of 4

multiple if or function

  1. #1
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    multiple if or function

    This works
    =if(OR(F32<3000,F32<4000),0%,2%)
    This does not
    =if(OR(F32<3000,F32<4000,F32<5000),0%,2%,3%)
    I have 7 different levels of discounts I need to do but I cant get past two without an error
    Thanks for any help
    Last edited by mojobaabby; 09-16-2010 at 08:26 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: if or

    Please amend your title to something searchable as per forum rules.

    For an If statement there is a True and a False. You have too much going on.
    IF(logical_test, value_if_true, [value_if_false])

    Look at Excel's help file and while you are there check out Lookup
    LOOKUP(lookup_value, lookup_vector, result_vector)

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

    Re: if or

    IF() only takes on 3 arguments in total... the condition, the what to do if true and the what to do if false...

    The OR() is the condition... you can only have 2 options after that.

    I think you are looking for something more like:L

    =Lookup(F32,{0,3001,4001},{0,0.02,0.03})

    and you can add more... the first array represents the lower bounds and the second array the respective percentages.

    ...and yes, please do amend your title....
    Last edited by NBVC; 09-16-2010 at 07:59 PM.
    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.

  4. #4
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: multiple if or function

    another one solved thanks a heap
    Southwest Granite & Glass
    Quality, It's what we do
    http://www.swgg.ca

+ 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