+ Reply to Thread
Results 1 to 8 of 8

I have duplicate field values - in need of a formula

  1. #1
    Registered User
    Join Date
    02-03-2016
    Location
    St. Louis, MO
    MS-Off Ver
    2013
    Posts
    3

    Exclamation I have duplicate field values - in need of a formula

    On Spreadsheet A I have 2 columns, one displaying Employer ID #'s and School Districts, ranging from A2:B63.
    On Spreadsheet B I have just the Employer ID #'s; however, I have duplicates in these fields, and they are necessary because they belong to different employees.

    For the below formula, here is a key to understand the data:
    C2 = Employer ID on Spreadsheet B
    'Employer Data'!A2:B63,2,FALSE = Spreadsheet A information.

    I've tried =VLOOKUP(C2,'Employer Data'!A2:B63,2,FALSE) but that only provides me with the first result of all the duplicate Employer ID #'s, the rest result in #N/A.

    Is there any formula that I can use that will help me get around this duplicate error?

    Thanks in advance!

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I have duplicate field values - in need of a formula

    Check the format of ID's. If you lookin' number (C2) but col col A has a text format - formula say: #N/A, and vice versa.
    C2 and col A on sheet 1 should have the same format.

  3. #3
    Registered User
    Join Date
    02-03-2016
    Location
    St. Louis, MO
    MS-Off Ver
    2013
    Posts
    3

    Re: I have duplicate field values - in need of a formula

    Sandy, thank you for your reply!

    I've been Google searching for this issue for a couple of days and your suggestion was one that I came across already. Both are in general format, but the issue seems to be with VLOOKUP.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I have duplicate field values - in need of a formula

    could be fine to see any example file (xlsx not picture)

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I have duplicate field values - in need of a formula

    btw. =VLOOKUP(C2,'Employer Data'!$A$2:$B$63,2,FALSE) becuase if you drag down formula it will changing range so you get NA in effect. as result
    Last edited by sandy666; 02-03-2016 at 06:39 PM.

  6. #6
    Registered User
    Join Date
    02-03-2016
    Location
    St. Louis, MO
    MS-Off Ver
    2013
    Posts
    3

    Re: I have duplicate field values - in need of a formula

    My goodness! That did it!

    What does adding the $ sign in front of the search criteria do to the formula?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I have duplicate field values - in need of a formula

    you mean C2 > $C$2 or $A$2:$B$63
    C2 should be as iis because if not you will get always the same result
    $A$2:$B$63 should be with $$ because if not you will get changed range every row , A2:B63, A3:B64, A4:B65, and so on, and every time you move the range down out of data

    check without $$ , drag formula down and select middle cell , click on formula in formula bar . it will highlight ranges in use

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I have duplicate field values - in need of a formula

    Thanks for rep and don't forget mark thread as SOLVED. Thank you

+ 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. detecting duplicate values in a column (values are made of formula)
    By louiemangaring in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2015, 06:25 AM
  2. [SOLVED] formula for duplicate values
    By fulldeen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2015, 04:37 PM
  3. [SOLVED] Formula for duplicate values
    By lukesmith7 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-17-2014, 04:21 AM
  4. [SOLVED] Formula to duplicate row values
    By mattmc419 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2014, 09:20 PM
  5. Find duplicate field values and export those records to excel file
    By sirhacksalot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2013, 10:59 AM
  6. I get duplicate values when I convert a hyperlink field to text
    By Sharon15 in forum Access Tables & Databases
    Replies: 1
    Last Post: 08-28-2009, 04:52 PM
  7. [SOLVED] Duplicate values in Pivot table Page Field dropdown..
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 10:50 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