+ Reply to Thread
Results 1 to 8 of 8

double vlookup with count required..... I think!

  1. #1
    Registered User
    Join Date
    02-02-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    26

    double vlookup with count required..... I think!

    Hi - wondering if anyone can help. I have a large spreadsheet with lots of data on it which I have tried to replicate in the attachment. I want to then look at the departments and match those on sheet 2 and where the departments match then total up all the groups within that under each heading.

    I have very basic knowledge of excel and think that this will involve more than one formula - would be delighted if anyone could help.

    Thanks

    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: double vlookup with count required..... I think!

    Sounds like a SUMPRODUCT. There's only one tab on your attachment though.

  3. #3
    Registered User
    Join Date
    02-02-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: double vlookup with count required..... I think!

    yes sorry I saved it as a csv in error. See if this one works. Can you tell me the formula I would write.

    Thank you.
    Attached Files Attached Files

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: double vlookup with count required..... I think!

    Which column are we adding up?

    Are we counting the number of matches or the total No's?

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: double vlookup with count required..... I think!

    Let me break SUMPRODUCT down for you the way we are using it:

    =SUMPRODUCT((range1=criteria1)*(range2=criteria2))


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will total the matches for each Column B & Row 1 combination.

    From C2 just drag that across and down.

  6. #6
    Registered User
    Join Date
    02-02-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: double vlookup with count required..... I think!

    Hi - hope this makes sense. What I need to do is first check Sheet 1 Column B to find the department that matches in TEST (there can be several entries). If it does then I need it to look at C1 in Sheet 1 first of all and see if it matches anything in the TEST. If it does then I need to total these up to put the total in Sheet 1 Column C against the relevant department.

    My test spreadsheet is very small compared to the data I am going to be running obviously.

    thank you - appreciate any help you can give.

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: double vlookup with count required..... I think!

    The solution I posted should work fine for that. It will count all of the matches.

  8. #8
    Registered User
    Join Date
    02-02-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: double vlookup with count required..... I think!

    Excellent thanks, played around with this today and managed to get correct results - noted that the ranges needed to match.

    Thank you so much for the help

+ 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] Urgent Help Required! Double string macro to remove the 1st & last part of Forumla
    By Chrisbaberd in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 05-08-2012, 04:43 AM
  2. Replies: 1
    Last Post: 02-24-2012, 08:46 AM
  3. Double If Count
    By XCESIV in forum Excel General
    Replies: 3
    Last Post: 08-31-2009, 01:48 AM
  4. Double lookup condition required
    By heatwave in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2009, 05:38 PM
  5. double quotes syntax required
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2006, 02:00 PM

Tags for this Thread

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