+ Reply to Thread
Results 1 to 4 of 4

Embedded Vlookups in IFS formula and subtotaling?

  1. #1
    Registered User
    Join Date
    03-31-2012
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2007
    Posts
    43

    Embedded Vlookups in IFS formula and subtotaling?

    I have attached an example I what I am looking for. The yellow highlights fields is what we want. And that is a subtotal of the claims in the Data Set 2 tab.


    2 Sets of data, and from those two things we have to match up on 2 fields. Location, then cost center.

    So If location # is 4, and cost center is 100100, the yellow cell for that in total claims should have a quantity of 3. Because there are 3 claims on data set 2 tab, that meet the criteria of location 4 and cost center 100100. And then in the next yellow for ext claims i would want it to read 2, because there are 2 yes' on data set 2 tab.


    I am having trouble with the subtotaling into the vlookup to be able to embed that into an IFS formula.

    I think an option would be tabling the second data set tab, but im not familiar with tables to vlookups that would then be embedded.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: Embedded Vlookups in IFS formula and subtotaling?

    I think you should be looking at SUMIFS, or using a Pivot Table, rather than using IF and VLOOKUP.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-31-2012
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Embedded Vlookups in IFS formula and subtotaling?

    Not familiar at all with SUMIFs, and I don't know how to get the Pivot table to display sums of the both counts in a layout form to make it total the criteria?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Embedded Vlookups in IFS formula and subtotaling?

    In D2
    =COUNTIFS('Data Set 2'!A:A,A2,'Data Set 2'!C:C,B2)

    In E2
    =COUNTIFS('Data Set 2'!A:A,A2,'Data Set 2'!C:C,B2,'Data Set 2'!D:D,"Yes")


    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] 2 VLOOKUPS in Formula
    By Catsonheat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2018, 04:54 AM
  2. [SOLVED] Max/Min formula with vlookups
    By Panfergrrl18 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2015, 02:20 AM
  3. VLookups? Or another formula?
    By AliaC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2015, 09:02 PM
  4. [SOLVED] Multiple VLookups in on formula
    By superchew in forum Excel General
    Replies: 14
    Last Post: 12-25-2014, 03:52 PM
  5. [SOLVED] Formula for subtotaling
    By jericho14444 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-28-2013, 03:00 PM
  6. Replies: 1
    Last Post: 02-21-2013, 12:11 PM
  7. Excel 2007 : Formula using two vlookups
    By Rebel_42MDx in forum Excel General
    Replies: 4
    Last Post: 03-17-2010, 01:07 AM

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