TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gomathi Raguprasad
NA
4
12.3k
Read excel cell value using Closedxml
Sep 8 2016 2:27 AM
Hi,
I am using closedxml to read excel 2013(.xlsx) file. The excel sheet have formula cell with in. I am not able to read particular cell as this has long formula. Currently using below code to read the cell value.
foreach (IXLCell cell in row.Cells())
{
if (cell.HasFormula)
dtable.Rows[dtable.Rows.Count - 1][i] = cell.ValueCached;
else
dtable.Rows[dtable.Rows.Count - 1][i] = cell.Value.ToString();
i++;
}
The particular cell value is - 3. I want to retrieve the value 3 and assign to datatable. Please provide if any solution for this.
Also let me know if there any way to fill worksheet values to datatable in one stretch.
Thanks.
Reply
Answers (
1
)
how to get processes belonging to Win32 in c#
can i pass whole table as parameter in procedure to insert o