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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:06:59+00:00 2026-05-26T21:06:59+00:00

Hi all i have written a code to read the excel data from an

  • 0

Hi all i have written a code to read the excel data from an excel, but i don’t know which was the best way to store the data my data in excel is as follows

               2000-01       2001-02     2002-03    2003-04   2004-05

Some text        65%           52%          51.3%      *        6.1%
Some text        65%           52%          51.3%      *        6.1%
Some text        65%           52%          51.3%      *        6.1%
Some text        65%           52%          51.3%      *        6.1%
Some text        65%           52%          51.3%      *        6.1%

The data seems to be as this in my excel file i know how to retrieve the data but i was looking for the best method to store the data can any one help me

AT present i am storing data in to List<string> as follows

Microsoft.Office.Interop.Excel.Range range = worksheet.get_Range("A11", "G21");
System.Array myvalues = (System.Array)range.Cells.Value2;
List<string> newList = AnyListToStrList(myvalues);

But i am not sure that it was the right method so i am looking for the better one..

  • 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-26T21:06:59+00:00Added an answer on May 26, 2026 at 9:06 pm

    I would create 2 tables:

    main (
    id int,
    description varchar(255)
    )
    
    period
    (
    main_id int (fk main(id))
    period int,
    period_length int, --in months or years, whatever is more appropriate
    period_value float
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written the following code snippet to read data from the database :
I have written an importer which copies data from a flat table into several
I have written code that opens 16 figures at once. Currently, they all open
I have written some code to ensure that items on an order are all
I have written a Windows service to collect information from all of our SQL
Hi all i have written a small code to open a particular text file.
I have written a code that solves MST using Prim method. I read that
I have written an AJAX script to read information from a database and inject
To use code I have written for performing calculations, I need to read in
I have a written a method to get all the records and return in

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.