+ Reply to Thread
Results 1 to 2 of 2

Compare data from a column in a crystal report to a column in excel and post data

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2003
    Posts
    7

    Compare data from a column in a crystal report to a column in excel and post data

    I am trying to compare the data from a crystal report to the data in an excel sheet. I am attempting to have the spreadsheet compare a list of names from the spreadsheet to the ones on the crystal report. From this, data from the crystal report is supposed to flow into the spreadsheet. The process should do this with each name on the list. I will attempt to visually demonstrated below. I could do this via an IF statement but there are too many variables as the list contains 20 to 30 names. If this can't be done with a crystal report, I can convert the crystal report to excel if I must. I would be willing to do this either via VB script or within the cell. Thanks in advance for any assistance. Also, I apologize if this should be posted elsewhere....

    CRYSTAL REPORT ..................................................SPREADSHEET
    Column 1..........Column 2........................................Column A........... Column B
    ____________________________________________________________________
    Billy Thomas..... 1405..............................................Aron Smith........ (false)
    Steve Carr....... 990................................................Brian Long......... (false)
    Cathy Roost..... 1202..............................................Billy Thomas....... (1405)
    ...........................................................................Steve Carr......... (990)
    ...........................................................................Cathy Roost....... (1202)

    (the ....... are only for formatting purposes to show up correctly on the screen) Basically, the spreadsheet is to find a match from column 1 on the crystal report and then transfer the number from column 2 of the crystal report into the spreadsheet.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Compare data from a column in a crystal report to a column in excel and post data

    dkr welcome to the forum.

    without seeing an actual sample workbook, its hard to say, but give this a try...

    =vlookup(A1,column1:column2,2,false)

    i have NO idea if this will work with excel looking into a crystal report though, so my references may also be completely off
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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