I am trying to use this CsvHelper from https://github.com/JoshClose/CsvHelper/blob/master/src/CsvHelper.Example/Program.cs
to extract relevant information and save it to a text file.
if the Measured Value (F) is already in the exponential form
9.79E-11
in the Excel file, how are we able to extract out the value such that it is 97.92pF in the text file, without manipulating the Excel file contents?
how to manipulate to show the Frequency in Hz, kHz and MHz?
appreciate any useful comment and help.
see attached files.
VulpesRank #55 · 29.2K reputationPosted Jul 15, 2013, 2:09 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 12, 2013, 2:36 AM EDT
However, it's not difficult to do what you've described using 'ordinary' code and then save it to a separate text file so that it doesn't overwrite the original:
The resulting text file, test1a.csv, looks like this:
Poppa Wallace97 reputationPosted Jul 12, 2013, 2:45 AM EDT
http://filehelpers.sourceforge.net/
Jay
arjun44 reputationPosted Jul 12, 2013, 2:52 AM EDT
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 12, 2013, 6:26 AM EDT
thanks for your effort and hard work...it is more or less close, but I need to produce the text file to be identical with the JPEG file, is it possible? I need the correct alignments as well.
Also, postive value of Measured Dev (%) needs to have a '+' appended. Voltage needs to be 5.0V, 1.0V or 4.0V.
I re-attached the JPEG file again, with its test1.csv. Take note that there is an additional first row "Capacitor Value (F):","9.741e-011".
also, take note that Allowed Deviation (%) on the .csv file is on the 3rd column, while the text file, it is on the 5th column.
VulpesRank #55 · 29.2K reputationPosted Jul 12, 2013, 7:54 AM EDT
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 12, 2013, 3:49 PM EDT
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 14, 2013, 11:25 PM EDT
I try with the attached code, but could not produce what is desired from the picture file. Could you help? thanks.
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 15, 2013, 5:01 AM EDT
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 17, 2013, 1:06 AM EDT
For the Measured Value, I am still wondering why the generated .csv file produce 5 decimal places which are not the same as the picture file attached. I understand the original file already does not contain enough decimal places... so it puts a zero on the 5th decimal places.
But why the picture file able to get those precise decimal places? it is also produce from that original file...
puzzled.....
VulpesRank #55 · 29.2K reputationPosted Jul 17, 2013, 1:17 AM EDT
Perhaps the raw data (i.e. the .csv file) is itself a snapshot of an original .xls file which contained more accurate data?
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 17, 2013, 1:59 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 17, 2013, 2:12 AM EDT
If all you have is the .csv file, then I suggest you edit that to include the extra decimal places before reproducing the figures in the image.
TAN WhoAMIRank #5,790 · 286 reputationPosted Jul 17, 2013, 2:32 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts