Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

225
Views
How to read particular column data from Excel using Microsoft Interop?

I want to read a particular column data from worksheet based on column name and store those values into Array or List. I have written the code to read particular sheet from workbook but now I want to ignore empty cells and find out particular column then want to read those data.

For example, let say I have a column with header "pAge" how I can I skip empty cells then find and loop into the column and read all the values from this particular column.

I want to write a logic which should not cost application performance.

Can someone please help me achieve this logic using C# Microsoft Interop?

oExcel = new Excel.Application();
oWorkBook = oExcel.Workbooks.Open(myExcel);
oWorksheet = oWorkBook.Worksheets.OfType<Excel.Worksheet>().FirstOrDefault(ws => ws.Name.Equals(mySheet));

Sample

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!