+ Reply to Thread
Results 1 to 6 of 6

Checking in two tables and display the result in Excelsheet.

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Checking in two tables and display the result in Excelsheet.

    Hi All

    I want VBA code that will perform the following steps. The Table1 has following fields: ScanDate,NewBatchNo,BatchNo,PolicyNo

    1. First of all look into Table1 the scandate<=29082014 and then check if there is No NewBatchNo of the corresponding record then capture its corresponding BatchNo of each record whose scandate<=29082014

    2.Then check for the batchno that we have captured in another table Table2 and if its present then return corresponding PolicyNo. Now keep on searching that policy no in Table2 as it could be present 50 times in the table and then return corresponding batch numbers in excel sheet of that Policy No as below:

    BatchNo - Policy No - Batch No1 - Batch No2 - Batch No3 ---------------

    I hope i made it clear. ANy questions please do ask me.

    Thanks

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Checking in two tables and display the result in Excelsheet.

    Hi aman1234,

    My suggestion - This would be better in MS Access.

    Cheers
    Remember you are unique, like everyone else

  3. #3
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Checking in two tables and display the result in Excelsheet.

    Hi aman1234,

    My suggestion - This would be better in MS Access.

    Cheers

  4. #4
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Checking in two tables and display the result in Excelsheet.

    Thanks, I have done the 1st step. i.e now sheet 1 contains all the captured Batch numbers in column A whose scandate<=29082014.

    Now in sheet1, column A all the Batch nos are present. So now how can I check each batch number if its present in Table2 and then perform rest of the actions.

    Thanks

  5. #5
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Checking in two tables and display the result in Excelsheet.

    Hi All

    Please see attached the Excel workbook. Now in Sheet1 , In column A there are all the Batch nos present from Table1. So I want to write down the VBA code that will Check for Column A batchno in Table2 to make sure if they exist or not. If they exist then find the corresponding policy numbers and store in Column B of the attached workbook. This is step2. Any help would be much appreciated.
    Thanks
    Attached Files Attached Files

  6. #6
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Checking in two tables and display the result in Excelsheet.

    Hi aman1234,

    I see the 'BatchNo Not Scanned' field & the njmbers.

    Where is the list to compare it to?

+ 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. i am still cant display batchheaders in my excelsheet
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2014, 07:20 AM
  2. Checking multiple tables, then 2 axes to display a number.
    By Bwest2013 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2013, 02:20 PM
  3. Disable Solver Result Dialog Box & Display Result in Cell
    By yauchildchew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2010, 01:46 PM
  4. Display barcode of a number in excelsheet
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2009, 11:31 AM
  5. Display the result in excelsheet from Access table
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2009, 06:52 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