Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 142063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:52:37+00:00 2026-05-11T07:52:37+00:00

I have to search for a value over 5000 records from excel. What is

  • 0

I have to search for a value over 5000 records from excel.

What is the best approach to accomplish this in windows .net application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:52:37+00:00Added an answer on May 11, 2026 at 7:52 am

    Since you are trying to search thro’ 5000 records, I assume you must be attempting to search thro’ values. You could use the ‘Range.Find’ from the interop API to do it.

    private void OpenExcelFile() {      Excel.Application exlApp = new Microsoft.Office.Interop.Excel.Application();      if (exlApp == null)     {         MessageBox.Show('Excel app object could not be created');     }     else     {          exlFileSelector.FileName = @'*.xls';          if (exlFileSelector.ShowDialog() == DialogResult.OK)         {             Excel.Workbook wrkBook = exlApp.Workbooks.Open(exlFileSelector.FileName, 0, true, 5, '', '', true, Excel.XlPlatform.xlWindows, '\t', false, false, 0, true, true, true);             Excel.Sheets sheetList = wrkBook.Sheets;              Excel.Range search = exlApp.get_Range('A1', 'C5');             search.Find('FindMe', null, Excel.XlFindLookIn.xlValues, Excel.XlLookAt.xlWhole, Excel.XlSearchOrder.xlByRows, Excel.XlSearchDirection.xlNext, false, null, null);          }     } } 

    Further reading: How to: Search for Text in Worksheet Ranges

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have search all over the web but could not find answer to this
Caution: This question is over nine years old! Your best option is to search
I have an array, which I'd like to search for a value in and
I have :set hlsearch as default value. When I search for something, search terms
I have search through the web to figure this out but no luck. I
I have an ASP.NET page that contains two div's. Both have search fields and
The question raised from the question here . In order to have search engines
I have a search functionality on my site that is accessible from every page.
I have search for roughly 5 hours now on what would be the best
I have this part of code string query = SELECT ID, COL1 FROM TABLE1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.