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

429
Views
C# Epplus - how to sort all data except very first row

I have the following line of code, which sorts data in the worksheet according to specific columns, ascending. The problem is, it takes the very first row into account (cells A1, B1, etc).

worksheet.Cells["A:AA"].Sort(new int[] { 5, 10 }, new bool[] { false, false });

What ExcelRange should I specify in order to take into account only cells below the first row?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This does the trick:

worksheet.Cells["A2:AA"].Sort(new int[] { 5, 10 }, new bool[] { false, false });
over 4 years ago · Santiago Trujillo Report
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!