Formula to transform report from the column model into the list

eddorena

New Member
Joined
Dec 3, 2021
Messages
47
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I tried to transform the column report into the list and I tried to mix several formulas such Xlookup + Hlookup + Index, Match to avoid transform manually since the actual data is so much line.

Whether possible to transform what I am expected by using mix formula?

I attached the sample file (I need to transform from the Time Sheet Summary into target summary)

Transform Summary Report.xlsx
ABCDEFGHIJKLMNOPQR
1
2Time Sheet summaryTarget Summary
3Working CodeMonthWorking AreaJhonMikeDarenJonasEmployee IDEmployee NameMonthWorking CodeWorking AreaWorking Hrd
4DA-210123Sep'22Warehouse552JhonSep'22DA-210123Warehouse5
5DA-210874Sep'22Office22JhonSep'22DA-210874Office2
6DA-210899Sep'22Pool134JhonSep'22DA-210221Resto4
7DA-210221Sep'22Resto454JhonSep'22DA-210009Kids Zone3
8DA-210009Sep'22Kids Zone34MikeSep'22DA-210123Warehouse5
9MikeSep'22DA-210899Pool1
10MikeSep'22DA-210221Resto5
11DarenSep'22DA-210874Office2
12DarenSep'22DA-210899Pool3
13DarenSep'22DA-210221Resto4
14DarenSep'22DA-210009Kids Zone4
15JonasSep'22DA-210123Warehouse2
16JonasSep'22DA-210899Pool4
17
Sampel


Thank You and have a nice Day
 
I do not download anything from that site as it is dodgy. Can you upload it to somewhere like OneDrive, DropBox, or GoogleDrive mark for sharing & post the link you are given here.
Also please do not password protect the file, all members need to be able to access it.
HI @Fluff

IC, and duly noted.

This is the One Drive link: TS_Summary_AUG.xlsx
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Thanks for that, with the exception of M2 none of those cells are actually empty.
Try this instead
Excel Formula:
=LET(Ra,M1:X1,Rb,M2:X100,r,ROWS(Rb),s,SEQUENCE(COLUMNS(Rb)*r,,0),a,INDEX(Ra,INT(s/r)+1),b,INDEX(A2:L100,MOD(s,r)+1,{2,1,3}),c,INDEX(Rb,MOD(s,r)+1,INT(s/r)+1),sc,SEQUENCE(,5),FILTER(IF(sc=1,a,IF(sc<5,INDEX(b,s+1,sc-1),c)),c<>""))
 
Upvote 0
Thanks for that, with the exception of M2 none of those cells are actually empty.
Try this instead
Excel Formula:
=LET(Ra,M1:X1,Rb,M2:X100,r,ROWS(Rb),s,SEQUENCE(COLUMNS(Rb)*r,,0),a,INDEX(Ra,INT(s/r)+1),b,INDEX(A2:L100,MOD(s,r)+1,{2,1,3}),c,INDEX(Rb,MOD(s,r)+1,INT(s/r)+1),sc,SEQUENCE(,5),FILTER(IF(sc=1,a,IF(sc<5,INDEX(b,s+1,sc-1),c)),c<>""))
Hi @Fluff

I appreciate it :coffee:, its work and I am noted the difference , ( c<>"" ) 😊

Thank You Very Much @Fluff
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
Glad to help & thanks for the feedback.
Hi @Fluff

Sorry, just light Question. Did LET function possible to use as mix/combine formula?

Example : next month my data use different sheet for Sep, however, still use same sheet for summary from Aug and will continue until end of year, my imagination such this ( =LET(xAUG datax) + LET(xSep datax) + etc )

😊 Thank You
 
Upvote 0
Not sure what you are asking for.
 
Upvote 0
Not sure what you are asking for.
Hi @Fluff

I mean like this attached sample
TS_Summary_FY22.xlsx
BCDEFG
2JhonSep'22DA-140200-DD01Warehouse5SEP
3JhonSep'22DA-140201-DD19Office2
4JhonSep'22DA-140201-DD21Resto4
5JhonSep'22DA-140201-DD22Kids Zone3
6MikeSep'22DA-140200-DD01Warehouse5
7MikeSep'22DA-140201-DD20Pool1
8MikeSep'22DA-140201-DD21Resto5
9DarenSep'22DA-140201-DD19Office2
10DarenSep'22DA-140201-DD20Pool3
11DarenSep'22DA-140201-DD21Resto4
12DarenSep'22DA-140201-DD22Kids Zone4
13JonasSep'22DA-140200-DD01Warehouse2
14JonasSep'22DA-140201-DD20Pool4
15JhonSep'22DA-140200-DD01Warehouse10AUG
16JhonSep'22DA-140201-DD19Office10
17JhonSep'22DA-140201-DD21Resto5
18JhonSep'22DA-140201-DD22Kids Zone5
19MikeSep'22DA-140200-DD01Warehouse2
20MikeSep'22DA-140201-DD19Office2
21DarenSep'22DA-140200-DD01Warehouse33
22DarenSep'22DA-140201-DD19Office33
23DarenSep'22DA-140201-DD20Pool33
24JonasSep'22DA-140201-DD20Pool6
25JonasSep'22DA-140201-DD21Resto6
26JonasSep'22DA-140201-DD22Kids Zone6
Summary
Cell Formulas
RangeFormula
B2:F14B2=LET(Nama,Aug!D3:G3,MH,Aug!D4:G8,r,ROWS(MH),s,SEQUENCE(COLUMNS(MH)*r,,0),a,INDEX(Nama,INT(s/r)+1),b,INDEX(Aug!A4:C8,MOD(s,r)+1,{2,1,3}),c,INDEX(MH,MOD(s,r)+1,INT(s/r)+1),sc,SEQUENCE(,5),FILTER(IF(sc=1,a,IF(sc<5,INDEX(b,s+1,sc-1),c)),c<>""))
B15:F26B15=LET(Nama,Sep!D3:G3,MH,Sep!D4:G8,r,ROWS(MH),s,SEQUENCE(COLUMNS(MH)*r,,0),a,INDEX(Nama,INT(s/r)+1),b,INDEX(Sep!A4:C8,MOD(s,r)+1,{2,1,3}),c,INDEX(MH,MOD(s,r)+1,INT(s/r)+1),sc,SEQUENCE(,5),FILTER(IF(sc=1,a,IF(sc<5,INDEX(b,s+1,sc-1),c)),c<>""))
Dynamic array formulas.

Whether possible to mix both formulas (or more than 2) so every month someone fill the other month the sheet summary will automated showing the result.

I appreciate your guidance 😊 :coffee:
 
Upvote 0
Whilst it is possible to do that, to do it for an entire year you would be better off using a macro or power query.
If you want to go down that route, then you would need to start a new thread.
 
Upvote 0
Whilst it is possible to do that, to do it for an entire year you would be better off using a macro or power query.
If you want to go down that route, then you would need to start a new thread.
Hi @Fluff

to be honest, every new fiscal year I'll reset the summary and archive previous fiscal year, so the data will not continue for every year

I was thinking to use macro before, however, using O365 and .xlsm still have minor issues by using MS Teams and I still am waiting investigation from my IT division related security 😅

Btw, glad to know if possible and if little bit tricky, it's Ok, I can understand.;)

Anyway, I want to say Thank You so much, this is the second time you help me with LET and I fully understand how LET formulas working. 😊 :cool:
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top