+ Reply to Thread
Results 1 to 5 of 5

Countifs w/criteria equal to vlookup result

  1. #1
    Registered User
    Join Date
    06-08-2018
    Location
    Ohio
    MS-Off Ver
    2013
    Posts
    2

    Countifs w/criteria equal to vlookup result

    I'm trying to do a countif formula using a vlookup result as a criteria. I know that the issue is that excel is reading the formula, not the returned result, but I can't figure out the fix! Please help.

    Column A, note that all these are generated via vlookup
    CO
    FO
    IN
    GV
    IN
    IN
    GV

    Column B
    CO
    IN

    Column C
    =countif(A:A,b1) [s/b =1]
    =countif(A:A,b2) [s/b =3]
    Last edited by jg10009; 09-10-2019 at 10:06 AM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Countifs w/criteria equal to vlookup result

    Hello and welcome to the forum.

    I know that the issue is that excel is reading the formula, not the returned result
    This is not how Excel works. Excel uses the result of the formula the same as if it were manually typed.

    What's more likely is that the cells do not match exactly. Maybe there are leading or trailing spaces.

    I recommend uploading a small representative sample of your data where you are experiencing the issue along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Countifs w/criteria equal to vlookup result

    The excel doesn't read the formula, but the actual result. Try to wrap your vlookup in a TRIM, or =trim(substitute(your vlookup,char(160),"")) or something like that to get rig of spaces or breaking spaces. If is not working, upload a sample using Go advanced - Manage Attachments -
    Click the * to say thanks.

  4. #4
    Registered User
    Join Date
    06-08-2018
    Location
    Ohio
    MS-Off Ver
    2013
    Posts
    2

    Re: Countifs w/criteria equal to vlookup result

    Thanks for the speedy replies! It's working now. I'm going to mark this as solved but does this happen to anyone else where you write a formula and it returns nothing until you close and reopen the xls, thereby causing all the calculations to rejigger? It happens ALL.THE.TIME to me. Arrays don't update, formulas return old results even though the dataset has changed, etc.?? What am I doing wrong?

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Countifs w/criteria equal to vlookup result

    Check that calculations are set to automatic and not manual.

+ 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. Replies: 4
    Last Post: 02-17-2019, 05:43 PM
  3. [SOLVED] Excel Formula with SUM+COUNTIFS and NOT EQUAL TO multiple criteria's
    By mchilapur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2018, 06:28 AM
  4. [SOLVED] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  5. [SOLVED] Countifs using not equal
    By rrcrossman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2013, 11:33 AM
  6. Replies: 9
    Last Post: 12-09-2012, 08:37 PM
  7. Replies: 0
    Last Post: 12-16-2011, 09:01 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