Getting info out of an excel file like a database

Hi,
The problem i have is that i have to get info out of an excel file like a database. So i have to be able to perform a kind of query, but to an excel file. Is this possible?
lay-out excel file:
number | request | chemical composition
| | C | Mn | Si | ....
125654 | |0.20%|0.10%|0.05%|.....
i should have to be able to search on the number and read the differend % (C, Mn, Si). This % are used in a formula to calculate a value that is used for DAQ
I can do this action with an acces DB, but not with excel. The problem is that they used excel for some years now (where i work) and changing the excel file to a DB would be a very long w
ork.
If someone could help i'd appreciate it
thx

I tried it like you said, but i get the error: -2147217865
exception occured.
[Microsoft][ODBC Excel Driver] The microsoft jet database engine could not find the object 'Sheet1'. Make sure the object exists...
So he doesn't seem to recognize a datasheet as a table (if i may compare it like this) when i choose the microsoft Excel driver with the workbook as described in your answer.
Any ideas?
i putted some attachements, maybe they make it easier to understand
Attachments:
test_excel_query.vi ‏37 KB
test_query_excel.xls ‏90 KB

Similar Messages

  • Uses the library to get UTL_FILE to read a excel file in PL SQL?

    Good day.
    Someone can give me some code that uses the library to get UTL_FILE to read a excel file in PL SQL?
    I intend to use this library because I want to run a script on my machine to treat an excel file without having to make changes on the server.
    Thank you.

    163d6dc5-fa66-4eb1-b7d5-653dea63bbc8 wrote:
    Good day.
    Someone can give me some code that uses the library to get UTL_FILE to read a excel file in PL SQL?
    I intend to use this library because I want to run a script on my machine to treat an excel file without having to make changes on the server.
    Thank you.
    Ranit's links are useful, you should read them.
    Also check out the FAQ on this forum:Re: 5. How do I read or write an Excel file?
    UTL_FILE is not the best choice for reading data from Excel files.
    It also will not be able to read an Excel file located on your client computer.  As with any PL/SQL code on the database, it can only access things that the server itself can see, so that doesn't include hacking across the network, bypassing network security, and hacking into the client computers operating system to read files directly from it's hard disk.  This isn't how client server architecture is intended to work.

  • How to get Number of Column in Excel file

    Hi All,
                   My requirment is to get Number of Column in Excel file which i want to upload,
      so please suggest if there is any possible way to get this functionality.
    Thanks
    Anirudh

    Use FM "ALSM_EXCEL_TO_INTERNAL_TABLE".
    Adjust the values of i_begin_col & i_end_col parameters in this FM.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                      =
          I_BEGIN_COL                   =
          I_BEGIN_ROW                   =
          I_END_COL                     =
          I_END_ROW                     =
        TABLES
          INTERN                        =
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    BBR.

  • Jsp to get info out of servlet question

    Hey, I'm looking for a good site or tutorial with examples in how to get info out of a bean or servlet.
    for example I have a bean that querys a db for info. how do I print that info to a jsp page with out using the out.printWriter? I know I need to use the <jsp:useBean...
    but after I instantiate the bean how do I pull info off of it?

    The Sun Java Developer site has a tutorial for almost everything. Check out the J2EE tutorial at http://java.sun.com/j2ee/tutorial/1_3-fcs/index.html
    There is a section on using JavaBeans in JSP pages.

  • HT203433 I am having trouble moving my music to my new computer. I have enable homeshare. it does not show any files in my homeshare. How do i get them out of the normal files into home share

    I am having trouble moving my music to my new computer. I have enable homeshare. it does not show any files in my homeshare. How do i get them out of the normal files into home share

    Welcome to the Apple Community.
    The following article(s) may help you.
    Moving your iTunes library to a new computer

  • I can't download Ikea 3D kitchen planner.  It's really frustrating - a message is appearing on my mac book pro that I ned to get info and check that various files are unlocked.  I've checked that all other requirements are fulfilled, still won't download

    I can't download Ikea 3D kitchen planner.  It's really frustrating - a message is appearing on my mac book pro that I ned to get info and check that various files are unlocked.  I've checked that all other requirements are fulfilled, still won't download.  Any help very gratefully received.  Thank you.

    Hi, I'm not really very good with computers and am having the same problems when trying to install the Ikea 3D kitchen planner, please could you take me through the steps?
    1. Download (save) the disk image file 2020PluginInstaller.dmg
    I double click on the link which says "Install 3D Planner"
    I agree to the t&cs
    A file downloads to my download folder called 2020PluginInstaller_IKEA.dmg
    2. Mount the disk image (open/run the downloaded file) if not mounted automatically
    I double click on the downloaded file
    3. Find the 2020PluginInstaller window (might be behind the window on top)
    A small window opens up with a lego brick called 2020PluginInstaller_IKEA.dmg and a folder called Internet plug ins.  I highlight the lego brick and do File, Get info and unlock it
    4. Drag the lego piece to the folder (if you do not have admin privileges you will be prompted to authenticate)
    I do this and put in a password to authenticate
    5. Restart the browser (it is not enough to close the browser window, you need to restart the browser
    application)
    I've tried restarting Safari, I've tried re-starting the computer
    6. Access the same link and you will now see the Start button and be able to start planning your room!"
    When I go back to the IKEA kitchen planner I don't see a start button, I just see the exact same screen as before prompting me to install the 3D planner
    Please can you help?

  • How to export the data from an excel file to Oracle database by using macro

    Hi,
    I want to export data from an excel file into Oracle database.There is one method that by creating the macros through excel we are able to do this.
    can anybody please send me the code to create macros?
    Thanks in advance.
    Regards,
    Surendra.V

    There are several resources on the web, but you could start analyzing if this code fits your needs --> VBA Macro for Excel 2003 Export of Text File with Comma and Quote Delimiters.
    ~ Madrid

  • Problems by getting info out of XML file with a HTTP request

    Hi,
    I have a litte question. I'm working on an application that works together with google maps. In my java code, I get general information about address out of one database table, and I want to add some geographic information like coordinates that I want to retrieve from Google Maps through HTTP:
    Right now my code is like:
    while (resultSet.next())
                             title = resultSet.getString("title").replaceAll("'","''").toUpperCase();
                             author = resultSet.getString("author").replaceAll("'","''").toUpperCase();
                             location = resultSet.getString("location").replaceAll("'","''").toUpperCase();
                             straatnaam = resultSet.getString("straatnaam").replaceAll("'","''").toUpperCase();
                             nummer = resultSet.getString("nummer");
                             landcode = resultSet.getString("landcode").replaceAll("'","''").toUpperCase();
                             address = straatnaam + " " + nummer + " , " + location + " " + landcode;
                             url = "http://maps.google.com/maps/geo?q=" + address + "&output=xml&key=+key+";
                             String query = "INSERT INTO data2 VALUES ('" + i + "','" + title + "','" + author + "','" + resultSet.getString("date1") + "','" + resultSet.getString("date2") + "','" + location + "','" + resultSet.getString("postcode") + "','" + straatnaam + "','" + resultSet.getString("nummer") + "','" + landcode + "','+something like url.getCoordX+','something like url.getCoordY')";
                             success = sql2.executeUpdate(query);
                             i++;
    Now I don't know how I can handle that. Is it possible to do an HTTP request in Java without using Java Script of servlets? I just want to get the X and Y coordinates out of the XML file.
    The XML file will be something like:
    <kml xmlns="http://earth.google.com/kml/2.0">
    <Response>
    <name>1600 amphitheatre mountain view ca</name>
    <Status>
    <code>200</code>
    <request>geocode</request>
    </Status>
    <Placemark>
    <address>
    1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA
    </address>
    <AddressDetails Accuracy="8">
    <Country>
    <CountryNameCode>US</CountryNameCode>
    <AdministrativeArea>
    <AdministrativeAreaName>CA</AdministrativeAreaName>
    <SubAdministrativeArea>
    <SubAdministrativeAreaName>Santa Clara</SubAdministrativeAreaName>
    <Locality>
    <LocalityName>Mountain View</LocalityName>
    <Thoroughfare>
    <ThoroughfareName>1600 Amphitheatre Pkwy</ThoroughfareName>
    </Thoroughfare>
    <PostalCode>
    <PostalCodeNumber>94043</PostalCodeNumber>
    </PostalCode>
    </Locality>
    </SubAdministrativeArea>
    </AdministrativeArea>
    </Country>
    </AddressDetails>
    <Point>
    <coordinates>-122.083739,37.423021,0</coordinates>
    </Point>
    </Placemark>
    </Response>
    </kml>
    many greetings and thanks in advance
    Mathias

    Hi, sorry for being not so clear. My question was actually if it is possible to do a HTTP request in Java without using servlets or being in Java Script. Actually my question was more specific for Google maps, because it didn't seem to work. It was my mistake, and already solved, to forget to make the webservice-call "URL-encoded". Because of that, I always received a HTTP 400 error, and that's why I thought it wouldn't be possible.
    But now I have another, perhaps for you guys stupid question. The result I get from the webservice URL is of the form:
    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://earth.google.com/kml/2.0">
    <Response>
         <name>nieuwelaan 38, Hamme</name>
         <Status>
              <code>200</code>
              <request>geocode</request>
         </Status>
         <Placemark id="p1">
              <address>Nieuwelaan 38, 9220 Hamme, Hamme, Belgium</address>
              <AddressDetails Accuracy="8" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
              <Country>
                   <CountryNameCode>BE</CountryNameCode>
                   <AdministrativeArea>
                        <AdministrativeAreaName>Vlaams Gewest</AdministrativeAreaName>
                        <SubAdministrativeArea>
                             <SubAdministrativeAreaName>Oost-Vlaanderen</SubAdministrativeAreaName>
                             <Locality>
                                  <LocalityName>Hamme</LocalityName>
                                  <DependentLocality>
                                       <DependentLocalityName>Hamme</DependentLocalityName>
                                       <Thoroughfare>
                                            <ThoroughfareName>Nieuwelaan 38</ThoroughfareName>
                                       </Thoroughfare>
                                       <PostalCode>
                                            <PostalCodeNumber>9220</PostalCodeNumber>
                                      </PostalCode>
                                 </DependentLocality>
                            </Locality>
                        </SubAdministrativeArea>
                   </AdministrativeArea>
             </Country>
             </AddressDetails>
             <Point>
                   <coordinates>4.126295,51.097724,0</coordinates>
             </Point>
         </Placemark>
    </Response>
    </kml> Now I want to get the value of the coordinates field.
    This is my code:
    address = URLEncoder.encode(address, "UTF-8");
    urlString = "http://maps.google.com/maps/geo?q=" + address + "&output=xml&key=ABQIAAAA9fEXNK-q6vKpPU0JCmPPkxQjbVBpjtblJJYkDfbMo0e51afwehRmujfvBtJqx1Qehg6e6QgCRY8poA";
    url = new URL(urlString);
    XPath xPath = XPathFactory.newInstance().newXPath();
    Document domDoc = processData(url);
    path = "/kml/Response/Placemark/Point/coordinates";
    coord = xPath.evaluate(path, domDoc);
    System.out.println("coord : " + coord);Now, in the last line, by writing out the value of coord to my screen, I get the value "1", instead of "4.126295,51.097724,0" I would expect, anyone knows what I'm doing wrong?
    greetings
    Mathias

  • How to get data from an existing Excel file using report generation toolkit

    I'm trying to use the Excel Get Data vi from the report generation toolkit, but i can't figure out how to turn a browsable path into the right type for the VI.  I've tried using the New Report.vi, but that doesn't work unless you use a template.  It won't open an existing excel file and make it an open report to pull data from.
    Essentially, i have a bunch of excel files that have data in them and i want to use a VI to analyze the data.  So, i'm trying to pull in all the data directly from the excel file so i don't have to reproscess them all into text so i can use the more standard spreadsheet VIs.  But to even convert the excel file programtically in labview won't i still need to be able to open the excel file and get the data?
    Solved!
    Go to Solution.

    I C.
    Got it,
    the reason why I can view it using my Excel file because its in .CSV.
    I open Microsoft Excel to open .CSV file.
    But you can also open .csv file with notepad.
    So, you cannot open .xls with Read Spreadsheet File
    I learn something everyday
    Best regards,
    Krispiekream

  • Report out put to Excel file

    Hi,
    Please help me in this requirement.
    Is there any option to get the out put of report 6i out put to excel format file.

    Its not possible to export data directly from 6i to excel but you can export in text file and then open it in excel it will open very easily but keep it in you mind first eliminate all report groups.
    and
    There is a trick to capture Oracle Reports output (text output) into a excel sheet.
    Basic Steps :
    1) Set the output format for the report to XML
    2) Run the report to generate output.
    3) Save the output file locally as a XML file.
    4) Open the file using MS Excel.
    5) To make it more beautiful, you may use a MS Excel Template
    and read below may be this will be helpful to u
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=853876
    Reports 6i Matrix Output in Excel Format

  • How do i get allsearchapp out of firefox - it is like a plague!

    the other day i went to update firefox. i guess i clicked a wrong link and wound up with allsearchapp polluting my firefox and ie. I got allsearchapp out of IE but how to get it out of firefox and the registry is eluding me. this is a serious problem. how do i get rid of the damned thing?

    hello rockpile, please try these steps:
    # [[Reset Firefox – easily fix most problems|reset firefox]] (this wil keep your bookmarks and passwords)
    # afterwards go to firefox > addons > extensions and in case there are still extensions listed there, disable them.
    # finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] to make sure that adware isn't present in other places of your system as well.
    [[Troubleshoot Firefox issues caused by malware]]

  • How to build out the deployment JAR file like Visual Cafe?

    Hi everybody,
    I am wondering if there is tool within JDK could generate the JAR file like Visual Cafe's Deployment function.
    It seems that simply to include those library file (jar file's) in the target Jar could not solve the problem.
    Looking for the reply.

    You must to create your META-INF file.
    see more details :
    http://java.sun.com/docs/books/tutorial/jar/

  • Connecting an excel file as a database source in crystal

    Hi
      I have crystal 2011 on my pc and I can easily access information in an excel file by connecting it as a data source.
    However, when i copy the excel file onto the SAP server and try to connect to the excel file there, it connects ok
    but there is only displays Add Command and i can access Final Budget Table.
    I know it is probably a simple issue but i cant seem to see it.
    The server is using crystal 2008 and does not have excel installed.
    The excel file has been into the same folder the report exists in.
    I will eventually want to run this report through Inforview, what way does that work with regards the excel file?
    Thanks
    Rachael

    Hi Rachael,
    Go to the Database Expert > Right-click the connection name > Select Options > Make sure there is nothing typed in under 'Table Name LIKE'.
    -Abhilash

  • Manupulating Excel File Stored In Database

    Is there any way I can manipulate the excel file that is stored in the database as LONG RAW ?
    I need to allow user to manupulate the excel file that is stored in database and accordingly fetch the specific data from that manipulated Excel File of Database.

    Your best bet is to keep the data in tables and generate a new excel file each time. Search this forum on how to generate excel files.. Here are three techniques... I like the XML method..
    1) OLE2
    2) XML
    3) CSV
    I have also done this using webutil..
    1) retrieve excel blob from db to client using webutil function db_to_client_with_progress()
    2) manipulate excel file on client using CLIENT_OLE2
    3) put excel file back in db using webutil function client_to_db_with_progress()
    Sorry.. Just re-read your post and didnt notice the Long-raw part.. :)
    Message was edited by:
    Mark Reichman

  • "get info" not recalculating "size" field in iTunes XML database correctly

    I have updated some of my mp3 files directly in the iTunes directory. The update changed from CBR to VBR at a higher bit rate. I selected the files and used 'get info' to update the iTunes database with the new bit rate information, which seemed to work fine. The resulting update works fine on the 1G nano, the 3G nano and the 1G iPod (yes, 1G!), but does not work on the iPod 5G (Video 80Gb). On the 5G iPod the changed songs will play for about a minute, then jump to the end of the song.
    After much investigation, I found that deleting the song from iTunes and re-adding it solved the problem. When I examined the iTunes database had a different value for the size field. It went from
    <key>Size</key><integer>4969036</integer>
    to
    <key>Size</key><integer>4967106</integer>
    There are other changes, but this seems to be the most significant.
    Is there any way to force iTunes to re-calculate this field?
    Thanks,
    Jonathan
    PS I will post this on the iPod forum as well.

    My own experience with truncated songs on the iPod is that I flag them when they happen. When I get back to iTunes, I resync and pull up the recently played and find those songs. Note the time, which is usually shown as the abbreviated version. If I then double click them to play, iTunes will normally update the time to the correct time. Resyncing to the iPod fixes the problem.
    Oh I should mention that I give truncated songs on my iPod a 3-star rating as a tag. So after I "re-play" the song on iTunes to fix the time, I then change the rating back to no-stars. So this also forces an update back to the iPod. So you might have to tweak something after fixing the time to get it to reupdate back to the iPod.
    Patrick

Maybe you are looking for

  • Mail going to Trash Folder?

    Almost all my mail is going straight to the trash folder on my iPad? Please Help?

  • Recommended storage for Network-based accounts?

    Hello everyone. Sorry in advance for all the following information, but I want to thorough in hopes of allowing you to offer better input. I'm using an Xserve 2 x 2.8 Ghz. Quad Xeon (Mac OS X Server 10.6.6) with 22 GBs RAM and 6 GB NIC LACP bond to o

  • Getting an Error:-9672  when trying to add printer through airport express

    Hi everyone, I have a canon colour laser printer (LBP5000) works fine when I pop the usb straight in to the mac, but when I try setting it up by plugging the usb into my airport express I get an Error:-9672 this happens when setting up the printer in

  • How can i add camera raw Plug-ins (PS CC) to CS6?

    is there anyway i add camera raw Plug-ins (PS CC) to CS6? In photoshop CC have camera raw Plug-in under filter menu, i can use any time i want, but in CS6 only when i open raw file, but i don;t want use smart object, thanks

  • After 10.6 update, cannot connect to remote speakers

    After I updated itunes on my windows 7 (64 bit) machine to version 10.6.1.7, itunes does not show my remote speakers connected through an airport express.  My windows XP machine with itunes version 10.5.3.3 does show my remote speakers and can stream