+ Reply to Thread
Results 1 to 3 of 3

Vlookup & Countifs

  1. #1
    Registered User
    Join Date
    08-20-2010
    Location
    uk
    MS-Off Ver
    Office Pro Plus 2016
    Posts
    87

    Vlookup & Countifs

    Hi All

    Having trouble with this formula which is clearly not right but not sure what I am doing wrong.

    =VLOOKUP(A4,DAYROTA!$C$6:$C$14,(COUNTIF(DAYROTA!$R$6:$AD$14,"H")))

    On the 'day rota' tab in cells C6 to C14 lists the employees, in cells R6:AD14 contains holiday booked data with "H" to identify a days holiday.

    I want to count the total number of days holiday booked and pull onto a 'summary data' tab by each employee, names listed in A3:A14 with the data to show in column B

    Thanks
    Last edited by janger; 03-05-2021 at 12:01 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Vlookup & Countifs

    Without worksheet, just guess:

    =SUMPRODUCT(('day rota'!$C$6:$C$14=$A3)*('day rota'!$R$6:$AD$14="H"))

    Drag down

    If it does not work, try to attach a sample WS.
    Quang PT

  3. #3
    Registered User
    Join Date
    08-20-2010
    Location
    uk
    MS-Off Ver
    Office Pro Plus 2016
    Posts
    87

    Re: Vlookup & Countifs

    Thank you, makes sense and works a treat.

+ 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: 6
    Last Post: 03-19-2019, 09:14 PM
  2. [SOLVED] Combining COUNTIFS with VLOOKUP?
    By jeptik in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-08-2018, 01:59 PM
  3. [SOLVED] Countifs and vlookup?
    By clevername1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-29-2015, 03:41 PM
  4. CountIfs - IF - or - Vlookup?
    By robbfamily in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2015, 12:12 PM
  5. [SOLVED] VLOOKUP and COUNTIFS
    By tamille in forum Excel General
    Replies: 7
    Last Post: 11-25-2013, 04:15 PM
  6. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  7. Help with COUNTIFS and VLOOKUP
    By Ponce in forum Excel General
    Replies: 1
    Last Post: 05-11-2011, 02:10 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