+ Reply to Thread
Results 1 to 3 of 3

Count using VLOOKUP

  1. #1
    Registered User
    Join Date
    08-11-2016
    Location
    Oakville, Ontario
    MS-Off Ver
    2016
    Posts
    2

    Count using VLOOKUP

    I have a scenario that I've been scratching my head at for a while now. I will try to simplify the data so my question is easily understood.
    I'm looking for a formula that can count the number of times a cell has a value in a separate file. For Example (where "-" means no price is available, "#N/A" means Car is not available, and all prices are in text format:

    Book1.xlsx Book2.xlsx
    Cars Prices
    Acura ten thousand
    Honda -
    Ford #N/A

    I need a formula to put in a separate tab in Book1.xlsx that will check Book1 for cars, then check Book2.xlsx for the values if they are there. In this example the correct answer is 1, there is 1 car that contains a price, which is the Acura. Unfortunately combining the two books is not an option.

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

    Re: Count using VLOOKUP

    Why don't you put them all in the same sheet?

    You can use this formula to count the entries in column A, excluding the heading, any "-" or any errors:

    =COUNTIFS(A:A,"?*",A:A,"<>-")-1

    If that formula is in C1 of Book2, for example, then you can just link directly to C1 from the other book(s).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-11-2016
    Location
    Oakville, Ontario
    MS-Off Ver
    2016
    Posts
    2

    Re: Count using VLOOKUP

    I cannot combine them into the same sheet because Book2 contains a lot of garbage and a lot of important information, and these files change every month or so with new data. It would not be sustainable to dissect Book2 and add the information to Book1 every time we get a new one.

    I'll give the COUNTIFS a try, I have to do it through Excel Online as 2016 Desktop doesn't support the new IFS functions.

    Thanks

+ 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] Count if , Vlookup
    By cardonas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2016, 07:38 PM
  2. Vlookup / count
    By RO24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2014, 04:09 PM
  3. Need Help... Vlookup and count
    By spykozen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2014, 07:04 PM
  4. Count if & vlookup help
    By floricita in forum Excel General
    Replies: 11
    Last Post: 09-26-2011, 08:33 AM
  5. Count VLOOKUP #N/A
    By rdirvngjr in forum Excel General
    Replies: 5
    Last Post: 03-15-2011, 07:47 PM
  6. Vlookup - Count
    By topgunnerp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2007, 07:22 AM
  7. Using VLOOKUP to count.
    By shakey1181 in forum Excel General
    Replies: 3
    Last Post: 05-12-2006, 07:40 AM

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