+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Lookup, Vlookup, or IF

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    70

    Lookup, Vlookup, or IF

    Good Morning!

    Been poking around trying to find a solution, but..... I have a report that I've created (attached) which shows net sales for a given month, with a Region Manager, Territory Manager, and Sales Rep. Each manager, terriroty and rep is assigned a number.

    Commission is paid on net sales to each sales rep on the report, EXCEPT those accounts where a sales manager is the sales rep.

    In those instances, the commission rate should be 0.

    I'm trying to have a formula/function look in column G, determine whether or not it's a rep or a manager, then either keep the rate or make it zero.

    I know I could use the Lookup Function, but can I nest it in an IF statement?

    This may be a round about way to do this, but in order to create this report to begin with, there's 4 seperate tables, many vlookups and sumifs functions to go thru first.

    Anyone have any ideas?

    Thanks as always...
    Attached Files Attached Files
    Last edited by Rick K; 06-14-2011 at 01:03 PM.

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

    Re: Lookup, Vlookup, or IF

    I think you meant look in column D, correct?

    Try:

    =IF(ISNUMBER(SEARCH(","&D3&",",","&$L$6&",")),0,J3)

    copied down
    Last edited by NBVC; 06-14-2011 at 12:40 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.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Lookup, Vlookup, or IF

    Hi Rick,

    Put this formula in K3 and pull it down.
    Please Login or Register  to view this content.
    Last edited by MarvinP; 06-14-2011 at 10:59 AM. Reason: Needed to make formula better
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    08-05-2009
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Lookup, Vlookup, or IF

    Thanks guys, I'll give it a try...

  5. #5
    Registered User
    Join Date
    08-05-2009
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Lookup, Vlookup, or IF

    Quote Originally Posted by NBVC View Post
    I think you meant look in column D, correct?
    Yes, column D. Sorry about that! Both formulas work great! THANKS for your help guys.

+ 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