+ Reply to Thread
Results 1 to 5 of 5

How to automate text addition after a new entry linked to another table ?

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    How to automate text addition after a new entry linked to another table ?

    Hi guys,

    I know the title sounds weird but I couldn't find one more precise.

    If you take a look at my file, you'll understand what I'm trying to do.

    I want to link Partners name in my Schedule sheet to another sheet ( Partners names). When we add one in the Partners name table, it automatically populates the other sheet with the new name BUT spaced by 5 rows. So that I can have my Steps below, in the next column.
    Work template.xlsx

    I want this process to be an automation based on a new entry in the partner names sheet.


    Million thanks in advance, I've tried everything that I had in mind.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: How to automate text addition after a new entry linked to another table ?

    Put this in E7 of Sheet2:

    =IF(MOD(ROWS($1:1)-1,6)=0,INDEX('Prtners names'!C:C,INT((ROWS($1:1)-1)/6)+7),"")

    then copy down as far as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: How to automate text addition after a new entry linked to another table ?

    It does !

    That is super nice, thanks a lot !

    Just so that I know, if I want to add new steps between each partner names, what do I have to change in the Rows formula ?

    Once again, thank you !

    Guillaume

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: How to automate text addition after a new entry linked to another table ?

    At the moment you have a block of 6 rows, one name and five steps, so that is why there are two 6's in the formula - if you wanted to have a block of 8 rows, then change the formula to this:

    =IF(MOD(ROWS($1:1)-1,8)=0,INDEX('Prtners names'!C:C,INT((ROWS($1:1)-1)/8)+7),"")

    (changes shown in red), and copy down.

    Incidentally, this would be a better formula to use in F7:

    =IF(MOD(ROWS($1:1)-1,6)=0,"",INDEX(A:A,MOD(ROWS($1:1)-1,6)))

    which can be copied down as far as you need. Again, you could change the two 6's if you had a larger (or smaller) block.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  5. #5
    Registered User
    Join Date
    04-01-2015
    Location
    Seattle
    MS-Off Ver
    Last Mircrosoft office
    Posts
    65

    Re: How to automate text addition after a new entry linked to another table ?

    Thank you for the tips Pete.

+ 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. Replies: 8
    Last Post: 03-13-2014, 09:52 AM
  2. [SOLVED] macro assistance to automate text entry in selected row if another range has text
    By lilsnoop in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-12-2013, 01:01 PM
  3. Replies: 0
    Last Post: 01-08-2013, 06:03 PM
  4. Automate series addition/removal in a clustered bar chart
    By Andrew82 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-21-2012, 05:59 AM
  5. Replies: 7
    Last Post: 07-09-2012, 11:48 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