+ Reply to Thread
Results 1 to 4 of 4

Vlookup and count

  1. #1
    Registered User
    Join Date
    05-11-2017
    Location
    thailand
    MS-Off Ver
    MS 365
    Posts
    32

    Vlookup and count

    Hi, attached is my sample file. Sheet1 will be the data input by user. In sheet2 i would like to vlookup and count the total. But not sure how to do it.
    User will need to enter highlighted in yellow. Example user enter Red, it will vlookup Red colour in Sheet1 and count.

    Help needed. Thanks.
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Vlookup and count

    you don't need VLOOKUP() to count values. this will suffice:
    Please Login or Register  to view this content.

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

    Re: Vlookup and count

    It's quite easy with COUNTIFS - put this in B5:

    =COUNTIFS(Sheet1!$B:$B,$A$2,Sheet1!C:C,$A5)

    Copy into D5 and F5, then copy down as required.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    05-11-2017
    Location
    thailand
    MS-Off Ver
    MS 365
    Posts
    32

    Re: Vlookup and count

    Quote Originally Posted by Pete_UK View Post
    It's quite easy with COUNTIFS - put this in B5:

    =COUNTIFS(Sheet1!$B:$B,$A$2,Sheet1!C:C,$A5)

    Copy into D5 and F5, then copy down as required.

    Hope this helps.

    Pete
    Thanks is working fine.

+ 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] Vlookup/count if
    By MJLG in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2018, 02:11 PM
  2. [SOLVED] Count with vlookup
    By nicoan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2017, 08:40 AM
  3. vlookup and also get the count as well
    By krayziez in forum Excel General
    Replies: 3
    Last Post: 09-02-2016, 09:19 PM
  4. Vlookup & count
    By Zaid in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-23-2015, 07:59 AM
  5. Vlookup / count
    By RO24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2014, 04:09 PM
  6. [SOLVED] Using VLOOKUP to count.
    By shakey1181 in forum Excel General
    Replies: 3
    Last Post: 05-12-2006, 07:40 AM
  7. count &vlookup
    By marcie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2005, 11:06 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