+ Reply to Thread
Results 1 to 4 of 4

IF or SUMIF possibly?

  1. #1
    Registered User
    Join Date
    08-14-2006
    Posts
    8

    IF or SUMIF possibly?

    Trying to determine the commission based off of a particular margin and I'm stuck.
    Trying to make a certain percentage show up in L2.
    This is what I think it should say, just can't make it into a function properly.
    If J2 is between 41 and 100 then L2 = 8
    If J2 is between 31 and 40 then L2 = 7
    and so on and so forth.
    My head feels like a monday. Can anyone help?
    Thanks!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =LOOKUP(J2,{31,41},{7,8})
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    08-14-2006
    Posts
    8
    When I run into the situation of J2 being between 41 and 100, it returns an N/A, so I don't know if LOOKUP will work the way I want it to.
    Thanks for that quick reply though.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    The formula will return 8 if cell J2 greater than or equal 41.

    Example of lookup

    if it's text like
    between 41 and 100
    in J2 then set up a table and use vlookup

    http://www.contextures.com/xlFunctions02.html

    VBA Noob

+ 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