large/complicated =(Sort(Unique)) or similar

Mr_Stern

New Member
Joined
Feb 26, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

Every month I have to put together a report.
This report comes showing all figures for a client and roll on one line, with columns showing data for the related weeks.

E.g client 1 - admin - Wk1 hour: Wk1 rate: Wk1 mark up%: Wk2 hours: Wk2 rate: Wk2 mark up%

This can be an estimated 1000 rows long, and obviously will get to 52 weeks of data.
Where I run into the problem, is I need to split out the rows for each mark up% reported (there are generally only 2, but up to 5 unique %'s)

So if client 1 has a mark up of 10% in week 1, and a mark up of 20% in week 2,
the client will need to show on two rows with the corresponding weeks figures in separate rows.
The non relating week could show either blanks or 0's.

Realistically there are 23 columns of distinct information before the data follows.

Any help would be great.
'I've done (sort(Unique)) on files like this, but not one that grows every month and not one with in the end 52 columns that need to be accounted for.

Kind regards,

Also asked here splitting rows of data based on one specific weekly figure (10 columns x52 wks)
 

Attachments

  • monthly report.png
    monthly report.png
    91 KB · Views: 11
Last edited by a moderator:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
This isn't what you asked for, but have you considered transforming your data into a flat table that resembles this...
Monthly report split.xlsx
IJKLMNOPQRSTU
29exampleService Structure3County4Client Name (Work Site)Client TSS IDGrade5RollTotal Net HoursTotal of Basic Hourly PayAgency Fee PercentageTotal Agency FeeWeek
3010PrivateDublinSprockets galore124563029Admin10200.095191
3110PrivateDublinSprockets galore124563029Admin10200.085172
3210PrivateDublinSprockets galore124563029Admin10200.2403
3320PrivateDublinSprockets galore124563088IT tecnitian10200.095191
3420PrivateDublinSprockets galore124563088IT tecnitian10200.085172
3520PrivateDublinSprockets galore124563088IT tecnitian10200.085173
3630PrivateDublinSprockets galore124563072Engineer10200.095191
3730PrivateDublinSprockets galore124563072Engineer10200.095192
3830PrivateDublinSprockets galore124563072Engineer10200.095193
3940PrivateCorkCogs plus128841488Director10200.095191
4040PrivateCorkCogs plus128841488Director10200.095192
4140PrivateCorkCogs plus128841488Director10200.095193
4250PrivateCorkCogs plus128843029Admin10200.095191
4350PrivateCorkCogs plus128843029Admin10200.095192
4450PrivateCorkCogs plus128843029Admin10200.095193
Sheet1
Cell Formulas
RangeFormula
I30:U44I30=LET(a,A2:H6, b,I2:T6, bhdrs,I1:T1, ccnt,4, ri,INT(SEQUENCE(ROWS(a)*COLUMNS(b)/ccnt,1,0)/3)+1, ablk,INDEX(a,ri,SEQUENCE(,COLUMNS(a))), bblk, WRAPROWS(TOROW(b),ccnt), wkhds,TAKE(WRAPROWS(--TEXTAFTER(TEXTBEFORE(bhdrs," ",2)," "),ccnt),,1), wkhstk,REDUCE(wkhds,SEQUENCE(ROWS(a)-1),LAMBDA(x,y,VSTACK(x,wkhds))), HSTACK(ablk,bblk,wkhstk) )
Dynamic array formulas.

That has a lot of advantages for subsequent analysis. For example, you can apply an autofilter to the results columns or construct other formulas that take advantage of the table structure.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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