+ Reply to Thread
Results 1 to 10 of 10

Repeating 2 times in two different cell

  1. #1
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    234

    Repeating 2 times in two different cell

    Hi,

    I have a list of words in D4:D15.I want to repeat each two times in two different cell.

    Suppose,D4 has apple,then say in anywhere as per user say Q1 and R1 it should be apple then it will repeat another text which is in D5 and so on.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,863

    Re: Repeating 2 times in two different cell

    Please attach a sample workbook.

    Administrative Note:

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    234

    Re: Repeating 2 times in two different cell

    Pls find attachment.
    Attached Files Attached Files

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Repeating 2 times in two different cell

    worksheet or tab name : Scenario-2
    Cell E2 formula , Drag right
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    worksheet or tab name : Scenario-1
    Cell G1 formula , Drag right
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Repeating 2 times in two different cell

    For Scenario 1, Enter this 1 spill formula
    =TRANSPOSE(TOCOL(IFNA(EXPAND(D4:D7,,2),D4:D7)))

    For Scenario 2, try this:
    =TEXTSPLIT(REPT(TEXTJOIN("|",TRUE,B3:C3)&"|",3),"|")

    or:
    =LET(a,TEXTSPLIT(REPT(TEXTJOIN("|",TRUE,B3:C3)&"|",3),"|"),FILTER(a,a<>""))

  6. #6
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    234

    Re: Repeating 2 times in two different cell

    Both of them worked very fine. Thanx both of u.

    Since Greb was of office 365,tested it was good. However, I had office 2021 operating hence wk9128 if it could spill would have been also much better.

  7. #7
    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,053

    Re: Repeating 2 times in two different cell

    Etax... are you using O365? If so, please amend your profile. If not...HOW did Greg's work for you??
    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

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Repeating 2 times in two different cell

    @Etax You're Welcome. Glad to help . Thank You for the feedback.

    worksheet or tab name : Scenario-2
    Cell E2 formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    worksheet or tab name : Scenario-1
    Cell G1 formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    - you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help
    was given. By doing so you can add to the reputation(s) of those who helped.
    Last edited by wk9128; 05-25-2023 at 04:52 AM.

  9. #9
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    234

    Re: Repeating 2 times in two different cell

    Quote Originally Posted by Glenn Kennedy View Post
    Etax... are you using O365? If so, please amend your profile. If not...HOW did Greg's work for you??
    I did try in other person system with O365
    Last edited by Etax; 05-25-2023 at 11:33 AM.

  10. #10
    Forum Contributor
    Join Date
    12-01-2020
    Location
    Asia
    MS-Off Ver
    MS Office 365/24/21
    Posts
    234

    Re: Repeating 2 times in two different cell

    Quote Originally Posted by wk9128 View Post
    @Etax You're Welcome. Glad to help . Thank You for the feedback.

    worksheet or tab name : Scenario-2
    Cell E2 formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    worksheet or tab name : Scenario-1
    Cell G1 formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    - you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help
    was given. By doing so you can add to the reputation(s) of those who helped.
    This also works very fine but at last there has found spilling 1 blank,3 times repeat means 3 times should have been restricted accordingly.As there r my some data in K column i.e 7th column in my actual file.There is spill error but when I remove data from K Column then there is no spill error.
    So,similar for both scenario.

    So #Post 4 works fine in my version 2021. Would love above aswell but due to spill error at last couldn't use it.
    Last edited by Etax; 05-25-2023 at 12:34 PM.

+ 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. Repeating a cell value n number of times into new cells.
    By Enigma909 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2022, 07:15 AM
  2. Replies: 1
    Last Post: 09-18-2020, 04:01 PM
  3. Repeating a macro 225 times
    By Mennoexcel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-16-2013, 02:09 PM
  4. instead of repeating the formula several times...
    By kikin81 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-30-2013, 06:36 PM
  5. Replies: 6
    Last Post: 06-19-2009, 09:17 AM
  6. Repeating a number 3 times
    By bikersnm in forum Excel General
    Replies: 7
    Last Post: 05-12-2009, 04:02 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