What is the best approach?

Dallan1361

New Member
Joined
May 24, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I have a large dataset (c.75,000 rows) and I'm interested in the data from three columns.

1. Reference Number
2. Person
3. Value

I want a formula to show to me who spent what on each job and return information the below

Ref
Reference NumberPersonValue
1234Joe Bloggs10
1234Blog Joes35
9876Joe Bloggs14
9876Dave Smith12
9876Leroy Jenkins222
4232Blog Joes65
4232Dave Smith 45

Apologies in advance if this is something quite straightforward and I'm overlooking it. I am aware that you can get this from a Pivot table, however, I want something that is unaffected by filtering and I can use as a new dataset.

The reason I can't sort by Reference Number to achieve the same result is that some 'Person' may appear multiple times on the same Reference Number, so I want something that will sum all of their Values associated with a respective Reference Number.

Ideally I would also like to be able to add further columns from the same dataset for further analysis but this is priority for the moment.

Hope you can help, thank you in advance!!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi,

welcome to the forum. I wasn;t sure if you were planning to search for a specific job name, so I tried this where the jobref is entered in B3 for example:

Book1
ABCDEFG
1
2
3Job Ref:9876
4
5Reference NumberPersonValue
69876Joe Bloggs10Joe Bloggs24
71234Blog Joes35Dave Smith12
89876Joe Bloggs14Leroy Jenkins222
99876Dave Smith12
109876Leroy Jenkins222
114232Blog Joes65
124232Dave Smith45
13
Sheet1
Cell Formulas
RangeFormula
E6:F8E6=LET(tots,SUMIFS(C6:C12,A6:A12,B3,B6:B12,UNIQUE(B6:B12)),newtots,FILTER(tots,tots>0,""),names,UNIQUE(FILTER(B6:B12,A6:A12=$B$3)),HSTACK(names,newtots))
Dynamic array formulas.
 
Upvote 0
Hi & welcome to MrExcel.
Maybe
Excel Formula:
=LET(u,UNIQUE(FILTER(A2:B10000,A2:A10000<>"")),HSTACK(u,SUMIFS(C:C,A:A,INDEX(u,,1),B:B,INDEX(u,,2))))
 
Upvote 0
Solution
Hi,

welcome to the forum. I wasn;t sure if you were planning to search for a specific job name, so I tried this where the jobref is entered in B3 for example:

Book1
ABCDEFG
1
2
3Job Ref:9876
4
5Reference NumberPersonValue
69876Joe Bloggs10Joe Bloggs24
71234Blog Joes35Dave Smith12
89876Joe Bloggs14Leroy Jenkins222
99876Dave Smith12
109876Leroy Jenkins222
114232Blog Joes65
124232Dave Smith45
13
Sheet1
Cell Formulas
RangeFormula
E6:F8E6=LET(tots,SUMIFS(C6:C12,A6:A12,B3,B6:B12,UNIQUE(B6:B12)),newtots,FILTER(tots,tots>0,""),names,UNIQUE(FILTER(B6:B12,A6:A12=$B$3)),HSTACK(names,newtots))
Dynamic array formulas.
Thanks for the assistance Rob!
 
Upvote 0

Forum statistics

Threads
1,217,390
Messages
6,136,319
Members
450,005
Latest member
BigPaws

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