Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

222
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda