Hi,
i have an excel file with around 1000(may be more in future) rows and 5 cololums like
Age, Name,Address,ID,School i have 1000 data in excel sheet
what i have to do this I need to update Name, ID,School (only 3) coloumns with new random data or new values.I dont have that new values stored anywer.How we will automate this process in c#.Please help me

Ganesan CRank #369 · 6.8K reputationPosted Aug 19, 2021, 8:04 AM EDT
Shweta LodhaRank #31 · 39.8K reputationPosted Aug 18, 2021, 7:24 PM EDT
Uehara AyakaRank #2,730 · 512 reputationPosted Aug 18, 2021, 9:10 PM EDT
Sujeet RamanRank #1,329 · 1.3K reputationPosted Aug 19, 2021, 1:12 AM EDT
I have converted an excel to csv using this.But how can update?you have any links for me for the same task? i am completly new to this.
Ganesan CRank #369 · 6.8K reputationPosted Aug 19, 2021, 2:06 AM EDT
Sujeet RamanRank #1,329 · 1.3K reputationPosted Aug 19, 2021, 4:42 AM EDT
Ganesan CRank #369 · 6.8K reputationPosted Aug 19, 2021, 5:02 AM EDT
Sujeet RamanRank #1,329 · 1.3K reputationPosted Aug 19, 2021, 6:49 AM EDT
Ganesan CRank #369 · 6.8K reputationPosted Aug 19, 2021, 7:05 AM EDT
Sujeet RamanRank #1,329 · 1.3K reputationPosted Aug 19, 2021, 7:46 AM EDT
what i meant is when i given path it should automatically calculate the rowcount?
int rowCount value dynamicaly calculate
Ganesan CRank #369 · 6.8K reputationPosted Aug 19, 2021, 8:01 AM EDT
Sujeet RamanRank #1,329 · 1.3K reputationPosted Aug 19, 2021, 8:25 AM EDT
thanks i couldnt find any solution if i want to attach some text or number to cell value what i will do?
suppose i have DOB column. value is only 1989. dob colomn is in 5th column. i need to attach random mm/dd in to that year. I will generate random mm/dd but how can i attach?
what i have to pass LastRowTotal("what i will pass")
static int LastRowTotal(Excel.Worksheet sheet)
{
Excel.Range lastCell = sheet.Cells.SpecialCells(Excel.XlCellType.xlCellTypeLastCell, Type.Missing);
return lastCell.Row;
}
Ganesan CRank #369 · 6.8K reputationPosted Aug 19, 2021, 8:51 AM EDT