+ Reply to Thread
Results 1 to 2 of 2

Copy cells based on a condition

Hybrid View

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    1

    Copy cells based on a condition

    Hi,

    I have a data set which includes the list of companies and their financial data. The format is like below

    CompanyId, Name, Sales2010, Sales2009, Sales2009, Profit2010, Profit2008....

    the list has a 2364 firms, and I would like to change the format to a time series data such as

    Year, Company, Sales, Profit etc.
    2010, a, 123.45, 234.56
    2009, a, 121.23, 345.21
    2008, a, 132.34, 212.21

    Basically, I can manually move the data but i have more than 200 difference financial data for 2364 firms, and it is a very big work. I would like to have a small formula or macro, which will look at the column name of the existing table, and if it has the same character such as Sales, Profit etc and then also check the year number from the column number and then move to the right cell. For example, if the Sales2009 is in the G column on my table, then G02 will be 2365th row under the new Sales column.

    help is very approciated.

    thanks, ozgur
    Attached Files Attached Files
    Last edited by ozdemirozgur; 10-25-2011 at 04:47 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Copy cells based on a condition

    I dont think you have attached the correct file as it doesnt bear any resemblance to the issue you have explained.
    Please check and re-upload.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1