Hi I have a data with multiple columns and need to repeat the same 7 times and then add additional information in last column. Please find attached file.
all existing records need to be repeated exactly 7 times
Hi I have a data with multiple columns and need to repeat the same 7 times and then add additional information in last column. Please find attached file.
all existing records need to be repeated exactly 7 times
Hi,
This is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.
Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.
For instance it's not clear if you want to repeat the data seven times, just once, or seven times say every week. Mention of 7 times suggests these are records that reflect a day of the week. In which case you should really be including a date against each record. Then it may not be necessary to always have 7 records for each name if there is no data on some occasions.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Hi Please refer the attached sheet where 'Current data' displays my data in existing format with 10 columns
I need to repeat these records multiple times and add an additional column at the end (Please refer sheet) 'Expected Result'
adding screenshots as well
Please try this
Since you're using Office365, so all the results will be auto-spilled.
Formula:
Please Login or Register to view this content.
Formulas for other columns are in the attached file.
Please try
or with LET function![]()
Please Login or Register to view this content.
=LET(a,'Current data'!A2:J5,s,SEQUENCE(ROWS(a)*7,,0),b,INDEX(a,INT(s/7)+1,SEQUENCE(,11)),IFERROR(IFERROR(b+MOD(s,7),b),INDEX({"BUS";"Common";"HD";"HD PRO 6000";"LMD";"Parts";"Sub 5T"},MOD(s,7)+1)))
Or (simpler formulae!!)
=IFERROR(INDEX('Current data'!A:A,AGGREGATE(15,6,ROW('Current data'!$A$2:$A$10)/('Current data'!$A$2:$A$10<>""),1+INT((ROWS(A$2:A2)-1)/7))),"")
in a2, copied across and down, then in K2, copied down:
=IF(A2="","",INDEX({"BUS","Common","HD","HD PRO 6000","LMD","Parts","Sub 5T"},1+MOD((ROWS(K$2:K2)-1),7)))
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks