+ Reply to Thread
Results 1 to 6 of 6

Formula to find ID numbers in 1000+ records

Hybrid View

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    26

    Formula to find ID numbers in 1000+ records

    Hi there.

    I have a spreadsheet with a list 915 Master ID numbers. These ID numbers sit in column A of a single tab

    In a second tab I have a list over 5000 related Child ID numbers, which correlate directly to the above 915 IDs.
    - The child ID numbers sit in column C of the 2nd Tab
    - The associated master IDs are referenced in column D of the 2nd tab

    I need some simple formulas to tell me of the 915 Master IDs, which ones do not have a correlating child ID record

    Any help would be appreciated??
    Last edited by RohanF; 04-17-2015 at 12:07 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,501

    Re: Formula to find ID numbers in 1000+ records

    Use COUNTIF, something like
    Formula: copy to clipboard
    =IF(COUNTIF('2nd Tab'!$D:$D,$A2)=0, "no child ID", "")



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    26

    Re: Formula to find ID numbers in 1000+ records

    Thanks TMS, a fair few others said use a MATCH formula.

    IF/COUNTIF worked prefectly though, great prompt response, very awesome

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,501

    Re: Formula to find ID numbers in 1000+ records

    You're welcome.

    "a fair few others" where? You could use MATCH, probably with IFERROR for the case(s) where there is no child ID.

    You choose



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  5. #5
    Registered User
    Join Date
    04-16-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    26

    Re: Formula to find ID numbers in 1000+ records

    Hi TMS,

    I will go with yours as it was quick and easy.
    a few of the analysts in the office put their 2 cents in and said to use MATCH, but i never seem to have any luck using it. Probably doing it wrong

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,501

    Re: Formula to find ID numbers in 1000+ records

    Well,the thing with MATCH is it gives you a row number if there is a match, but #N/A if there isn't. And it's actually the #N/A you would want .... and you can pick that up with IFERROR. BUT you'd need an IF round the MATCH to discard any row numbers it does return. So, not ideal.

    Regards, TMS

+ 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. CopyFromRecordset does return only 1000 records while recordset have 4000 records
    By KRUSHNAT in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2012, 05:47 PM
  2. EXTRACTING 1000 records at a time with a parenthesis.
    By fintan06 in forum Excel General
    Replies: 4
    Last Post: 01-13-2010, 01:07 PM
  3. Looping Through and Processing 1000 records at a time.
    By NBVC in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-30-2008, 12:51 PM
  4. [SOLVED] macro to plot charts of >1000 records automatically possible?
    By Ross in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2005, 08:05 PM
  5. how do I see more than 1000 records filtered
    By ml in forum Excel General
    Replies: 1
    Last Post: 04-13-2005, 04:06 PM

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