Parsing Excel Spreadsheet

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hugh McLaughlin

    #1

    Parsing Excel Spreadsheet

    Hello Everyone and thanks for your help in advance. I am
    working on an application that requires the parsing of an
    Excel spreadsheet that will be loaded into a SQL Server
    table. An example of the spreadsheet is located at:


    ratesheets/IFRS1_20030722_ 094227.xls

    At the heart of the problem is the sometimes varying
    layout of the spreadsheet. For example, the application
    requires that the date between cells H13 and D23 be
    loaded into the table. However, the same data may be
    located between H12 and D22 tomorrow. So the application
    needs to be able to determine the starting point of the
    data. Fortunately, the headings do not change, so one of
    the obvious ways to handle this is to move through each
    cell (i.e. A1, A2, B1, B2) until the known header value
    is achieved. However, this seems to be a very
    inefficient way to handle this. Is there another way to
    identify the starting point to begin processing, i.e. in
    English "Find the cell that equals 30 YEAR FIXED -
    Program 100". Any ehlp would be greatly appreciated.
    Thanks.
Working...