+ Reply to Thread
Results 1 to 5 of 5

Two references and two answers

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    8

    Two references and two answers

    Hi all, I'm trying to figure this out and would be greatful if someone knows how to do this:

    I have to col B with a date and col C with a name - col D and E contain an action taken by col C. I want to reference the date and the name with these two actions and count how many times Name has taken certain actions on which date. Attached a sample sheet to show what I mean.

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,136

    Re: Two references and two answers

    hi Jafs. something like this in J5 maybe?
    =COUNTIFS($B$2:$B$37,$I5,$D$2:$D$37,J$4,$C$2:$C$37,"Mike")

    not sure how your name varies. if you have just the first name, this would work too:
    =COUNTIFS($B$2:$B$37,$I5,$D$2:$D$37,J$4,$C$2:$C$37,LEFT($J$3,FIND(" ",$J$3)-1))

    the 2 formulas above can be copied to K5. for L5, change the reference to range Column E instead:
    =COUNTIFS($B$2:$B$37,$I5,$E$2:$E$37,L$4,$C$2:$C$37,LEFT($J$3,FIND(" ",$J$3)-1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    20,978

    Re: Two references and two answers

    Put this in J5:

    =COUNTIFS($B:$B,$I5,$C:$C,"Mike",$D:$D,J$4)

    and copy it to K5:L5. The formula in L5 needs a slight amendment to the range:

    =COUNTIFS($B:$B,$I5,$C:$C,"Mike",$E:$E,L$4)

    The formula can be copied down if you put other dates in column I.

    Hope this helps.

    Pete

  4. #4
    Forum Guru XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,508

    Re: Two references and two answers

    Hi,

    Enter this formula in cell J5 and copy across to the right:

    =SUMPRODUCT(($B$2:$B$37=$I5)*($C$2:$C$37=TRIM(SUBSTITUTE($J$3,"stats","")))*($D$2:$E$37=J4))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    05-09-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Two references and two answers

    Thanks guys, awesome got it to work with your 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. Replies: 0
    Last Post: 02-11-2013, 08:12 AM
  2. [SOLVED] Count the number of matches in a row of one word answers with a row of correct answers
    By flammer4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2012, 01:17 PM
  3. Answers YES and NO
    By Michelle66 in forum Excel General
    Replies: 3
    Last Post: 12-17-2011, 10:00 PM
  4. Dissecting a formula string into references/non-references
    By quekbc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2011, 10:52 AM
  5. [SOLVED] How to rename references from range names to cell references
    By Abbas in forum Excel General
    Replies: 1
    Last Post: 05-24-2006, 01:25 PM

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