+ Reply to Thread
Results 1 to 4 of 4

return the number of times a value appears in another worksheet with VLOOKUP

  1. #1
    Registered User
    Join Date
    09-07-2011
    Location
    Brighton, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Question return the number of times a value appears in another worksheet with VLOOKUP

    I have a spreadsheet that uses a VLOOKUP to return the name of a contact from another sheet:

    =IF(ISNA(VLOOKUP(A2,coord!A:B,2,FALSE)),"",VLOOKUP(A2,coord!A:B,2,FALSE)) Column A contains the contact's company reference and B contains the contact's name. This data is exported from the Company database each week and imported into my spread sheet.

    This works well. However there are many instances where the company may have more than one contact and I need to identify these to confirm that the contact data I have is up to date.
    I want to add another column alongside the column with the formula above that simply returns the number of times the company reference number appears in sheet 'coord' so the data can be checked as sometimes a contact leaves but the record is not updated. I could then be sending emails to someone who is no longer with the client company.

    Any help very much apreciated.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: return the number of times a value appears in another worksheet with VLOOKUP

    Try

    =COUNTIF(coord!A:A,A2)

  3. #3
    Registered User
    Join Date
    09-07-2011
    Location
    Brighton, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Thumbs up Re: return the number of times a value appears in another worksheet with VLOOKUP

    Great thanks, I had tried various versions of this formula but not in the right order!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: return the number of times a value appears in another worksheet with VLOOKUP

    Great, glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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