+ Reply to Thread
Results 1 to 12 of 12

Autofill year for data transformation

  1. #1
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Autofill year for data transformation

    Hello, kindly help me on what formula to use to autofill in years (having a data for start and end year)
    or any tricks to make it autofill without dragging.


    I want to do this, from
    autofill 1.PNG

    to
    autofill 2.PNG

    Thank you so much. Appreciate the help.
    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
    43,986

    Re: Autofill year for data transformation

    Next time, please attach a sample sheet (see yellow banner at top of page). This time, your sitiuation was easy to reproduce:

    =INDEX($A$2:$A$6,MATCH(0,INDEX(--(COUNTIF($F$1:F1,$A$2:$A$6)=1+$C$2:$C$6-$B$2:$B$6),0),0))&""

    and

    =IF(F2="","",IF(F1=F2,G1+1,VLOOKUP(F2,$A$2:$B$6,2,FALSE)))

    see attachment for layout.
    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
    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
    43,986

    Re: Autofill year for data transformation

    LoL... Did you add the attachment later? Or was I just stupid?

  4. #4
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Re: Autofill year for data transformation

    Quote Originally Posted by Glenn Kennedy View Post
    Next time, please attach a sample sheet (see yellow banner at top of page). This time, your sitiuation was easy to reproduce:

    =INDEX($A$2:$A$6,MATCH(0,INDEX(--(COUNTIF($F$1:F1,$A$2:$A$6)=1+$C$2:$C$6-$B$2:$B$6),0),0))&""

    and

    =IF(F2="","",IF(F1=F2,G1+1,VLOOKUP(F2,$A$2:$B$6,2,FALSE)))

    see attachment for layout.
    I did attach a sample sheet from the start fyi sir

  5. #5
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Re: Autofill year for data transformation

    Thank you for this sir. This is the only way right?

  6. #6
    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
    43,986

    Re: Autofill year for data transformation

    No there may be others. What's wrong with it?

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Autofill year for data transformation

    Alternative solution:
    Very first row:
    F2=A2
    G2=B2
    F3:
    Please Login or Register  to view this content.
    G3:
    Please Login or Register  to view this content.
    Drag both down
    Attached Files Attached Files
    Quang PT

  8. #8
    Registered User
    Join Date
    10-20-2020
    Location
    Brandon, Suffolk, UK
    MS-Off Ver
    mac user. numbers 5.1
    Posts
    6

    Re: Autofill year for data transformation

    bit of a novice and also on a mac, i hope the xlsx is good.

    this is the local legion membership list, columns J and K show branch and club joining date ( should be same but can differ )

    I want to upload data to epos to give current members 10% off beer ( good hey )

    How do i alter "J" from 11/02/1994 to 11/02/2020

    then column "K" to be expiry date 12 months on 11/02/2021
    Attached Files Attached Files

  9. #9
    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
    43,986

    Re: Autofill year for data transformation

    Hi there suffolk cabby. Please start your OWN thread,a sit can get very confusing if answers to two different people are given on the same thread.

  10. #10
    Registered User
    Join Date
    10-20-2020
    Location
    Brandon, Suffolk, UK
    MS-Off Ver
    mac user. numbers 5.1
    Posts
    6

    Re: Autofill year for data transformation

    will do, some forums like similar questions to be kept close as one.

  11. #11
    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
    43,986

    Re: Autofill year for data transformation

    Not here. "Hijacking" is frowned upon...

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Autofill year for data transformation

    Quote Originally Posted by suffolk cabby View Post
    bit of a novice and also on a mac, i hope the xlsx is good.
    I see you are already aware of this but just for the record see the info below.

    If you post a similar but different question in the same thread then everybody gets criss-crossed about which answer applies to which thread and hilarity ensues. We don't mind a direct follow-up question to a solution posted for the original question, but otherwise keeping each question in its own thread avoids confusion. I do suggest you take the time to review all our rules. There aren't many, and they are all important.


    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ 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. Data transformation with example
    By apjenkins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2016, 11:53 PM
  2. Data transformation in Excel
    By sfdc1 in forum Excel General
    Replies: 3
    Last Post: 06-05-2015, 02:01 AM
  3. Data transformation and Transpose
    By sfdc1 in forum Excel General
    Replies: 1
    Last Post: 06-03-2015, 05:56 PM
  4. Creating a year to date transformation
    By JPSIMMON in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 02:41 PM
  5. Data transformation
    By jaZZerkill in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-28-2012, 06:56 AM
  6. transformation of data?
    By schallpattern in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-02-2008, 10:16 PM
  7. Data Transformation
    By zaisaki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2005, 12:05 AM

Tags for this Thread

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