+ Reply to Thread
Results 1 to 9 of 9

Formula needed to copy cell content n times based on no. of entries(n) under that cell

  1. #1
    Registered User
    Join Date
    10-02-2018
    Location
    Yamunanagar,India
    MS-Off Ver
    2010
    Posts
    35

    Formula needed to copy cell content n times based on no. of entries(n) under that cell

    Refer attached file for the depiction of data form & desired result.
    Attached Files Attached Files

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

    Re: Formula needed to copy cell content n times based on no. of entries(n) under that cell

    G5:
    =LEFT(G6)
    G6:
    Please Login or Register  to view this content.
    Similar to G14:Q15, change the reference.
    Attached Files Attached Files
    Quang PT

  3. #3
    Registered User
    Join Date
    10-02-2018
    Location
    Yamunanagar,India
    MS-Off Ver
    2010
    Posts
    35

    Re: Formula needed to copy cell content n times based on no. of entries(n) under that cell

    Thanks for the reply.
    Kindly clarify where should i apply this formula?

  4. #4
    Registered User
    Join Date
    10-02-2018
    Location
    Yamunanagar,India
    MS-Off Ver
    2010
    Posts
    35

    Re: Formula needed to copy cell content n times based on no. of entries(n) under that cell

    Also , will your formula copy both rows :
    row1: A A A B B C C C C
    row2: A1 A2 A3 B1 B2 C1 C2 C3 C4

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,005

    Re: Formula needed to copy cell content n times based on no. of entries(n) under that cell

    Re-read the reply from Bebo in post #2: you are told where to put the formulae.

    Plus he supplied a file with the results.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2402 and WPS V2022
    Posts
    3,327

    Re: Formula needed to copy cell content n times based on no. of entries(n) under that cell

    G6 cell array formula , darg right

    HTML Code: 

    G15 cell array formula , darg right
    HTML Code: 

  7. #7
    Registered User
    Join Date
    10-02-2018
    Location
    Yamunanagar,India
    MS-Off Ver
    2010
    Posts
    35

    Re: Formula needed to copy cell content n times based on no. of entries(n) under that cell

    John thanks for clarifying!

    Question: What is the purpose of the symbol"@" used at 3 places in the formula.

    Clarification: Regarding formula for A5:C5 & A14:D14, using A,B,C,D was a mistake, these entries will be some name of companies. I've corrected the file. If possible, kindly advise.

    Remaining formula is working perfectly.
    Attached Files Attached Files
    Last edited by GAURAVVOHRA; 06-07-2021 at 10:20 AM. Reason: forgot to attach the file

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,005

    Re: Formula needed to copy cell content n times based on no. of entries(n) under that cell

    in G5

    =INDEX($A$5:$C$5,SUMPRODUCT(($A$6:$C$9=G$6)*COLUMN($A:$C)))

    in G14

    =INDEX($A$14:$D$14,SUMPRODUCT(($A$15:$D$18=G$15)*COLUMN($A:$D)))

    G6 and G15 formulae as per post#2 from Bebo.

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2402 and WPS V2022
    Posts
    3,327

    Re: Formula needed to copy cell content n times based on no. of entries(n) under that cell

    Cell G5 array formula , drag right and copy to Cell G14

    HTML Code: 

+ 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. Formula cell needed -> link to variable external link based on a cell content
    By milea_sorin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2018, 10:00 AM
  2. Formula to copy insert/paste current row to below based on cell content
    By aussiepil0t in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-31-2016, 03:36 AM
  3. SUM totals from journal entries based on content of previous cell
    By jsalisbury731 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2015, 06:03 PM
  4. Automatically copy cells content based on the content of another cell.
    By chrisbarlow1984 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2014, 11:13 AM
  5. [SOLVED] Formula Needed to copy data from a cell based on data entered into another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 03:16 AM
  6. [SOLVED] Copy a formula x times sideways based on value in a cell
    By fokeiro in forum Excel General
    Replies: 5
    Last Post: 03-08-2013, 02:50 PM
  7. Copy same content three times, move on one cell
    By wincel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2012, 07:14 PM

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