+ Reply to Thread
Results 1 to 10 of 10

vlookup and if formula help

  1. #1
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    vlookup and if formula help

    Table:B2:E4
    Tracking Number Processed Shipped 2nd Scan
    991120330008956 X X GOOD
    991120330008957 X X GOOD
    991120330008958 X X GOOD

    Formula Used:
    =IF(A3=VLOOKUP($A$2,$A$2:$A$999,1,FALSE),"DUPLICATE",A6)

    I'm trying to enter data in column a and return a duplicate result or the cells value as put in. The beginning of the formula is where I am tested. What is wrong with it?
    Last edited by srollins13; 04-17-2010 at 11:28 PM.

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: vlookup and if formula help

    G'day

    The formula and the table you have display don't seem to match

    More information is required. Maybe post a dummy example of what your trying to achieve. Before and after results will help.

    Cheers

    RC
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  3. #3
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: vlookup and if formula help

    Okay I attached a workbook i am using to create the format and formulas. I hope this helps.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: vlookup and if formula help

    G'day

    Still unsure of what your trying to achieve but here a shot in the dark.

    Copy and paste into B2 and copy drag down

    =IF(COUNTIF(A:A,A2)>=2,"DUPLICATE",A2)

    Cheers

    RC

  5. #5
    Registered User
    Join Date
    11-20-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: vlookup and if formula help

    Good day srollins13,

    May be you are trying to find the duplicates.

    better sort it and use if(a3=a2, "duplicate","good") in the next coloumn and drag down.

    hope it works

  6. #6
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: vlookup and if formula help

    Sorry for being so vague. I am creating a spreadsheet to track shipping labels going out of the processing office, then out of the shipping area. a scanner will be used to input the tracking number on both ends. Column A would be hidden, which is where the original scan will be placed. I need a way to prevent the duplication of tracking numbers, if the data entered matches any number in the above cells in that column I need a result of "Duplicate". If the data matches nothing from above, the result would be the data entered. At the same time I need an X placed in the adjacent corresponding column,ie: "Processed" or "Shipped". Then when the label is scanned the second time, it needs to look up the data in column A. If it matches the display "Good", if not, then display "Not Found".

  7. #7
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: vlookup and if formula help

    Okay we just need to adjust the cell B2 formula then you can copy drag down.

    =IF(COUNTIF($A$2:A2,A2)>=2,"DUPLICATE",A2)


    Quote Originally Posted by srollins13 View Post
    .......Then when the label is scanned the second time, it needs to look up the data in column A. If it matches the display "Good", if not, then display "Not Found".
    Sorry you lost me again....I guess the 2nd scan is placed in Col F ?

    If it matches a cell or is it found in Col A.

    Cheers

    RC

  8. #8
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: vlookup and if formula help

    Yes, the second scan is placed in Col F. The data entered in Col F needs to be compared to the original data entered in Col A. If there is a match the result would be "good" or "Not Found" in Col E. BTW I really appreciate your help. Thank you.

  9. #9
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: vlookup and if formula help

    G'day

    Please see attachment

    Cheers

    RC
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-14-2010
    Location
    california, usa
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: vlookup and if formula help

    works great! thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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