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 6364733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:12:09+00:00 2026-05-25T00:12:09+00:00

I am working on C# VSTO ( Visual Studio Tools for Office ) Excel.

  • 0

I am working on C# VSTO (Visual Studio Tools for Office) Excel.

I have column “C” which is having around 30 values from C1 to C30. I can take these values in the list.

I want to accomplish 2 tasks:

  1. Detect duplicate elements in the whole column.
  2. Print cell no. of the both the elements (duplicate). e.g.: If C12 and C28 have same element I need to print the “C12” and “C28”.

What can be the fastest way to do this?

  • 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. Editorial Team
    Editorial Team
    2026-05-25T00:12:10+00:00Added an answer on May 25, 2026 at 12:12 am

    Pseudocode, untested: (!!!)

    var myDictionary = new Dictionary<string,int>();
    string col="C";
    for(int row = 1; row<numberOfRows; ++row)
    {
         string elemValue = myWorkSheet.Range[col + row].Text.ToString();
         if(myDictionary.ContainsKey(elemValue))
         {
              Console.WriteLine(col + myDictionary[elemValue] + " = " + col + row);
         }
         else
         {
              myDictionary[elemValue]=row;
         }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a VSTO visual studio application in Visual Studio 2008. It's working
I have made an Excel VSTO Application(WPF) which call a WCF working with IIS
I am working with Visual Studio 2010 and it's integrated testing functionality. I have
I'm working with Crystal Reports in VB.NET in Visual Studio 2005. I have a
I am working on a VSTO Excel project and I am having some troubles
I often build and modify databases from within Visual Studio 2010 Pro. I have
I am working on C# VSTO(excel). I have created excel workbook project. I have
I have been working on an application which integrate with VSTO components in order
We have an Excel workbook which has c# VSTO code in it and two
I'm working on an Excel Addin (VSTO) in .NET that connects to an Oracle

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.