+ Reply to Thread
Results 1 to 5 of 5

Adding lagged factor

  1. #1
    Registered User
    Join Date
    03-23-2021
    Location
    Belgium
    MS-Off Ver
    16.45
    Posts
    6

    Adding lagged factor

    Hi everyone,

    I wanted to insert a column which includes a lagged factor (a delay) of the difference of 15 days. So that means that the first of January now has to be linked to the difference of the 15th of January. This is easy done, when you have a list representing only one country. If you just equalise the lagged value on the first of January to the 15th of January, it works for the beginning of the period covered but not at the end since it will just start considering the values of the next country in the list.

    So the question is, how to insert a lagged factor without taking the values of the next country into account?

    The attached file represents the countries Aruba and Belgium and are only 2 of the 132 considered countries.

    Thank you in advance.
    DanVG
    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,064

    Re: Adding lagged factor

    Instead of giving us 500 blank rows ... please give us about 10-20 rows and EXPECTED RESULTS, manually calculated (as requested in the yellow banner - top of page) for about 3 countries.
    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
    03-23-2021
    Location
    Belgium
    MS-Off Ver
    16.45
    Posts
    6

    Re: Adding lagged factor

    Thank you for your answer!

    A new example is provided.

    Dan
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Adding lagged factor

    d2=LOOKUP(2,1/((A$2:A$60=A2)*(B$2:B$60<B2+14)),C$2:C$60)
    try this formula, copy and paste towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    03-23-2021
    Location
    Belgium
    MS-Off Ver
    16.45
    Posts
    6

    Re: Adding lagged factor

    Thank you very much Samba! It worked

+ 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. Adding up cells based on a conditional factor.
    By blinddeafmute in forum Excel General
    Replies: 11
    Last Post: 02-22-2017, 12:32 AM
  2. [SOLVED] Factor Up and Factor Down Values Formula
    By alive555 in forum Excel General
    Replies: 6
    Last Post: 08-14-2015, 12:01 PM
  3. Factor Analysis
    By Mary in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2012, 09:29 PM
  4. The 'WOW' Factor
    By Hopefull in forum Excel General
    Replies: 1
    Last Post: 09-11-2011, 04:07 PM
  5. Packing factor
    By Navneet in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-03-2010, 09:50 AM
  6. Generate lagged dummy variables
    By tianyi86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-30-2009, 01:28 PM
  7. [SOLVED] IF FACTOR?
    By Bernadette in forum Excel General
    Replies: 2
    Last Post: 06-08-2006, 09:20 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