Closed Thread
Results 1 to 3 of 3

VBA Code Request for tracing duplicates on invoice

  1. #1
    Registered User
    Join Date
    05-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    18

    VBA Code Request for tracing duplicates on invoice

    Hi All,

    Goodevening,

    I have the following a set of Data on sheet1 and look table in sheet 2. My goal is to look for job ref numbers listed in Column A on sheet1 and once these job numbers are found on sheet 2 in column A, I want the value corresponding in Column B on sheet 2. Basically I am trying to find job numbers in current invoice which might be invoiced to us in previous months. Sheet 1 has jobs invoiced for the current month(max rows:1000) and sheet 2 has got a report of all job numbers invoiced on previous 12 months approx rows:4000).I have tried recording macro(if, isna, vookup functions) for this, it works fine for just one data set, but the limitation is that every time i feed in new data sets, i get run time errors and date format problems, basically i always have to do manually my IF(isna(vlookup...... I am looking for VBA code so I can just assign a button and all results(invoiced months from sheet 2) can be feeded in columnB in sheet1 and are marked in red colour.

    Data Set:
    On Sheet1 On Sheet 2
    Column A Column B Column A Column B
    3600012345 June 3600011111 April
    3600012346 3600022222 May
    3600012347 July 3600012345 June
    3600012348 3600033333 June
    3600012349 3600012347 July
    3600012350


    So i know that in above case 3600012345 & 3600012347 has been invoiced to us before in June and July respectively so I will block the payment.


    any help would be greatly appreciated.

    thanks & regards
    Manav

  2. #2
    Registered User
    Join Date
    05-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: VBA Code Request for tracing duplicates on invoice

    sorry te data set looked very messy, i have attached an xl file. hope this helps.
    Attached Files Attached Files

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA Code Request for tracing duplicates on invoice

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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