+ Reply to Thread
Results 1 to 3 of 3

Using Vlookup when you have two values to look up

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    Islamabad,Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Using Vlookup when you have two values to look up

    I might be limiting myself to Vlookup here but lets take that as a starting point. You can suggest other ways too. I am working on a report where I have "Team" as well as information about whether the team is active or not. Eventually, I need to allot the distribution of costs to Active and nonactive areas.

    I am attaching a dummy sheet which has the pivot table that I have applied. I am looking at the formula tab now, it would have been very easy for me if I just had to use vlookup for one thing like team. But since I have to look up team and then whether they were active or not, I am confused about which formula to use.

    So in a perfect world the formula tab should show costs in the Active and Nonactive columns.

    I hope I explained myself well. Please let me know if you have any questions.
    Attached Files Attached Files
    Last edited by OmerTariq; 02-14-2012 at 01:40 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Using Vlookup when you have two values to look up

    Try pasting the following into cell B2 on the formula sheet and copying down and across.

    =SUMIFS('Raw Data'!$C:$C,'Raw Data'!$A:$A,$A2,'Raw Data'!$B:$B,B$1)
    Martin

  3. #3
    Registered User
    Join Date
    02-14-2012
    Location
    Islamabad,Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Using Vlookup when you have two values to look up

    Thanks a lot mrice! I worked

    This was my first post in the forum and what a nice start.

+ 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