+ Reply to Thread
Results 1 to 4 of 4

putting data for panel in an efficient way

  1. #1
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    putting data for panel in an efficient way

    Dear Community,

    I want to create a panel for 5 firms, let's call them A-E, for very large time span. In reality I have daily data from 2006 till now. The first column contains date and the second column should contain a company name. I want to have in the second column a company name A from let's say 01.01.2000 till 26.07.2000 and than again from 01.01.2000 till 26.07.2000 name B for company name. And than for C till E. In reality it is very time consuming and error yielding to use Ctrl+Space to fill in the names. The time span is for more than 4000 rows, so it is no way to me to copy and paste. I would be very grateful for any hints how to do it efficiently

    I attached the sample of my data
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: putting data for panel in an efficient way

    Use:

    ="01/01/2000"+MOD(SEQUENCE(1040)-1,208)

    and

    =INDEX(I1:I5,INT(SEQUENCE(1040,,1,1/208)))

    where I1:I5 contain company names. Column H explains where 1040 and 208 came from and can be deleted. In D, you may need ; instead of ,
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: putting data for panel in an efficient way

    Thank you Glenn. On Office 365 it works. However at my job I use Excel 2016. I didn't want to abuse your kindness and tried to find the solution on my own. However, I wasn't successufl

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: putting data for panel in an efficient way

    D2:
    ="01/01/2000"+MOD((ROWS(D$2:D2)-1),208)

    E2:
    =INDEX($I$1:$I$5,1+INT((ROWS(E$2:E2)-1)/208))

    both copied down.



    It's always a good idea to state the Excel version you want it to work for IF that version is NOT what it says in your profile.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. panel data format
    By ryu132 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2020, 02:57 AM
  2. Even Vectors out - Panel Data
    By Natarajan95 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2019, 06:26 AM
  3. Panel data.
    By donkyklonk in forum Excel General
    Replies: 3
    Last Post: 03-29-2016, 10:16 AM
  4. Orbis databse to panel data
    By dbven in forum Excel General
    Replies: 7
    Last Post: 01-13-2016, 06:12 AM
  5. [SOLVED] panel data charts
    By lana86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2015, 04:30 PM
  6. Panel Data Graph
    By Insert Name in forum Excel General
    Replies: 1
    Last Post: 03-22-2013, 12:07 AM
  7. Creating PANEL data for STATA
    By powsuarez in forum Excel General
    Replies: 0
    Last Post: 08-09-2012, 07:18 AM

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