+ Reply to Thread
Results 1 to 3 of 3

Countif Vlookup formula works in one cell but not another

  1. #1
    Registered User
    Join Date
    12-05-2017
    Location
    San Diego, CA
    MS-Off Ver
    2010
    Posts
    2

    Countif Vlookup formula works in one cell but not another

    Hey there!

    I'm working on a vlookup table that uses countif to sum variables (e.g. "Clinic 1" shows up 7 times in the data set).

    I'm finding that the formula =COUNTIF(C:C,VLOOKUP(A3,PSS,1,FALSE)) works in one cell for data in column C, but when I move to the next row for data in column D and insert =COUNTIF(D:D,VLOOKUP(A4,PSS,2,FALSE)) it returns a 0, although I know that's incorrect. Can anyone see where I might be going wrong with this?

    Thanks!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Countif Vlookup formula works in one cell but not another

    Have you tried changing the 2 to a 1?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-05-2017
    Location
    San Diego, CA
    MS-Off Ver
    2010
    Posts
    2

    Re: Countif Vlookup formula works in one cell but not another

    Yes I have.

+ 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. WHy countif works with a value not a cell reference?
    By Granite-Granny in forum Excel General
    Replies: 12
    Last Post: 10-02-2020, 02:35 PM
  2. Help with Vlookup Countif Formula
    By formexcel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-07-2017, 01:01 AM
  3. [SOLVED] COUNTIF and VLOOKUP in one formula
    By Iwant2learnmore in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2015, 04:17 AM
  4. VLOOKUP works- but drag formula and get #REF!
    By she_dont_sleep in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-30-2015, 12:25 PM
  5. Replies: 0
    Last Post: 09-26-2012, 02:02 PM
  6. VLOOKUP and COUNTIF in the same formula
    By Stepper in forum Excel General
    Replies: 5
    Last Post: 11-04-2010, 09:16 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