473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

calling a paricular data from excel sheet

I want to extract one property of steam say enthalpy for a particular pressure and temperature from a table which has a list for pressures, temperatures and enthalpy, these data is stored in an excel file how do I call these particular value of enthalpy in c++ programme
Oct 11 '08 #1
4 1541
archonmagnus
113 100+
Ah, a fellow thermodynamist! Unfortunately, you wouldn't be able to extract data from an excel file directly without knowing the filetype specification. Excel files are "binary" and data cannot be read using C++ as you would do with a simple ASCII data file. You would have to read a bytestream and parse the data according to the specification to find the particular thermal property reference of interest.

Here's a link to the specification.
Oct 11 '08 #2
Ah, a fellow thermodynamist! Unfortunately, you wouldn't be able to extract data from an excel file directly without knowing the filetype specification. Excel files are "binary" and data cannot be read using C++ as you would do with a simple ASCII data file. You would have to read a bytestream and parse the data according to the specification to find the particular thermal property reference of interest.

Here's a link to the specification.
in that case please advise what should be done as I have to enter enthalpy at any cost no other go
Oct 11 '08 #3
donbock
2,426 Expert 2GB
Ah, a fellow thermodynamist! Unfortunately, you wouldn't be able to extract data from an excel file directly without knowing the filetype specification. Excel files are "binary" and data cannot be read using C++ as you would do with a simple ASCII data file. You would have to read a bytestream and parse the data according to the specification to find the particular thermal property reference of interest.

Here's a link to the specification.
Actually, you can export from Excel into a CSV (comma separated values) file. This is a text file where each rows are separated by newlines and columns are separated by commas. You should find it easier to parse the CSV file.
Oct 11 '08 #4
archonmagnus
113 100+
Actually, you can export from Excel into a CSV (comma separated values) file. This is a text file where each rows are separated by newlines and columns are separated by commas. You should find it easier to parse the CSV file.
True that could be done, but if the OP's spreadsheets are those typical of the thermodynamical analytics field, they tend to have formulae and macros and cross references and sharks with lasers on their heads. Trust me, I speak from experience. I spent a good portion of last year converting those types of spreadsheet/VB macro calculation files into "real" programs that were much easier to use.
Oct 19 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Ksenia Marasanova | last post by:
Hi, I have a little problem with encoding. Was hoping maybe anyone can help me to solve it. There is some amount of data in a database (PG) that must be inserted into Excel sheet and emailed....
8
by: Ilan | last post by:
Hi all I need to add data from two Excel sheets (both on the same workbook) to an existing table in my SQL DB. The problem is that each sheet holds different fields for the same record, though...
2
by: Niyazi | last post by:
Hi, I have to retrieve a data from AS400 DB2 and after working with data I have to export into one of existing Excel file. I can connect into specific library in AS400 DB2 using AS400...
1
by: Steven Stewart | last post by:
I have a user who has been using Excel for a while to keep statistics and print reports. She finds using it cumbersome because of long formulas and a lot of copying and pasting. I have designed...
3
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown....
11
by: Hi5 | last post by:
Hi, I am new to access I usedto work in Oracle and Mysql. I am after a way that enables me to populate a database I designed in access with lots of data which can be sorted in excel sheets, ...
0
by: Mamatha | last post by:
Hi When i clicked a button, i want to insert data from listview in VB.NET to Excel sheet. If you know the solution either above or below is ok for me. I know how to insert from a textfile,but...
3
by: natrajsr | last post by:
Hi, I want to load the data of a excel sheet or in the exact excel sheet format into a Rich TextBox control. I have already worked with loading WORD into a Rich TextBox. It is working fine.;...
1
by: manishabh77 | last post by:
I will be obliged if anybody can help me with this problem: I am trying to extract data from an excel sheet that matches IDs given in column 4 of the excel sheet.I have stored those query IDs in an...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.