+ Reply to Thread
Results 1 to 8 of 8

Need Help with Vlookup + Countif

  1. #1
    Registered User
    Join Date
    04-01-2016
    Location
    Bangalore
    MS-Off Ver
    2013
    Posts
    34

    Need Help with Vlookup + Countif

    Hello All,

    I have a attendance report for Jan/Feb/Mar & April'16 but it is in different sheets and I want to count the number off "CO" "PH" "SL" and "AL" that each one has taken.

    snp.PNG

    Attached is the excel file, I need your help in getting the correct formula.

    Thank you for your help.

    Regards,
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need Help with Vlookup + Countif

    one way (in B5, copied across and down):
    =IFERROR(SUMPRODUCT(--(INDIRECT("'"&B$4&"'!$C$3:$C$7")=Summery!$A5)*(INDIRECT("'"&B$4&"'!$A$3:$AH$7")="CO")),"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need Help with Vlookup + Countif

    Bertter to adjust to allow for a few more data rows..

    =IFERROR(SUMPRODUCT(--(INDIRECT("'"&B$4&"'!$C$3:$C$100")=Summery!$A5)*(INDIRECT("'"&B$4&"'!$A$3:$AH$100")="CO")),"")
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-09-2015
    Location
    england
    MS-Off Ver
    2003
    Posts
    33

    Re: Need Help with Vlookup + Countif

    Can't attach my resolution as per restrictions on my works pc but type the following formula into the first cell and enter through with Ctrl, shift and enter. Then copy across the grid

    =SUM((Jan!$C$3:$C$7=Summery!$A5)*(Jan!$D$3:$AJ$7=Summery!N$3))+SUM((Feb!$C$3:$C$7=Summery!$A5)*(Feb!$D$3:$AJ$7=Summery!N$3))+SUM((Mar!$C$3:$C$7=Summery!$A5)*(Mar!$D$3:$AJ$7=Summery!N$3))+SUM((Apr!$C$3:$C$7=Summery!$A5)*(Apr!$D$3:$AJ$7=Summery!N$3))

  5. #5
    Registered User
    Join Date
    12-09-2015
    Location
    england
    MS-Off Ver
    2003
    Posts
    33

    Re: Need Help with Vlookup + Countif

    by the way if you don't enter the formula (go into the formula and then press the following) through with Ctrl, shift and enter (turning it into an array formula) then it will not work.

  6. #6
    Registered User
    Join Date
    04-01-2016
    Location
    Bangalore
    MS-Off Ver
    2013
    Posts
    34

    Re: Need Help with Vlookup + Countif

    Thank you Glenn for Helping it worked.

  7. #7
    Registered User
    Join Date
    04-01-2016
    Location
    Bangalore
    MS-Off Ver
    2013
    Posts
    34

    Re: Need Help with Vlookup + Countif

    Dear Steeler Thank you for helping me, it worked.. You guys in this form are amazing

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need Help with Vlookup + Countif

    You're welcome.

+ 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. vlookup & countif
    By Mahmoud_Rawas in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-17-2014, 02:26 AM
  2. [SOLVED] Vlookup and Countif Together
    By Rocky_123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-09-2013, 02:06 AM
  3. VLOOKUP and COUNTIF together?
    By wrekin in forum Excel General
    Replies: 2
    Last Post: 01-28-2010, 03:36 PM
  4. [SOLVED] Vlookup & Countif help
    By sumonrezadu in forum Excel General
    Replies: 6
    Last Post: 01-25-2010, 09:27 AM
  5. vlookup with countif
    By spinkung in forum Excel General
    Replies: 2
    Last Post: 12-22-2009, 10:47 AM
  6. Vlookup & countif help
    By myarna in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2009, 07:23 PM
  7. [SOLVED] vlookup and countif???
    By Joe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-13-2006, 06:33 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