excel上载.....输入字符串格式不正确 [英] excel upload.....input string not in a correct format
本文介绍了excel上载.....输入字符串格式不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Excel工作表中有35行.我需要从excel sheel上传数据...
当检查重复项时,由于输入字符串的格式不正确,我遇到了错误...当我使用断点检查时,我才知道,它绑定了一个空白行.如何消除这种情况?
i am having 35 rows in a excel sheet.. i need to upload the datas from excel sheel...
while checking for duplicates i am getting error as input string was not in a correct format...while i had checked with breakpoints, i came to know that,its binding one blank row.. how to eliminate this?
推荐答案
我无法直接在Excel电子表格中工作.在导入和导出数据时,Excel电子表格存在非常奇怪的格式设置问题.我会将您的数据从电子表格中导入数据库,然后从那里处理数据.
有时,在导出到db或转储文件时,我会将电子表格中的所有数据格式化为文本/字符串,然后根据需要重新格式化.
最终,我将竭尽所能消除Excel作为工作数据存储的问题.
-HTH
I would not work directly from an Excel spreadsheet. Excel spreadsheets have very weird formatting issues when importing and exporting data. I would get your data from the spreadsheet, into a database, and work with the data from there.
I sometimes will format ALL data from the spreadsheet as text/string upon export to a db or dump file and then re-format as needed.
Ultimately, I would do everything I could to eliminate Excel as a working data store.
-- HTH
这篇关于excel上载.....输入字符串格式不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文