Creating a dynamic descending list with duplicate values

jwills7

New Member
Joined
Sep 9, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Any help would be tremendously appreciated. I am on hour 2 of trying to figure this out.

An example:

Tab 1:

Job #Job RevenueJob CostJob StatusJob Mat Spend
2310080Closed20
42200150Active10
5610090Active30
7115030Active40
8310085Active40
I have around 5,000 rows of this type of information.

I would like to create a dynamic list in descending order (of Job Revenue) of each of these jobs with their respective job information. The issue I am having is when I create a list like this using a combination of index match large if, ect. The duplicate values will return the first occurrence of that value. I also need to exclude any closed jobs.

What I am getting now with my "INDEX(Pivot_Table[Job_No.],MATCH(LARGE(IF(Pivot_Table[job_status]="A",Pivot_Table[Job_Revenue]),ROWS('Sheet 1'!$B$2:$B2)),Pivot_Table[Job_Revenue],0),0)" function:



Job #Job RevenueJob CostJob StatusJob Mat Spend
42200150Active10
7115030Active40
5610090Active30
5610090Active30


What I am looking for:



Job #Job RevenueJob CostJob StatusJob Mat Spend
42200150Active10
7115030Active40
5610090Active30
8310085Active40
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Maybe SORT function in 365?
Mr Excel Playground 3.xlsm
ABCDE
1Job #Job RevenueJob CostJob StatusJob Mat Spend
22310080Closed20
342200150Active10
45610090Active30
57115030Active40
68310085Active40
7
8Job #Job RevenueJob CostJob StatusJob Mat Spend
942200150Active10
107115030Active40
112310080Closed20
125610090Active30
138310085Active40
Sheet26
Cell Formulas
RangeFormula
A9:E13A9=SORT(A2:E6,2,-1)
Dynamic array formulas.
 
Upvote 0
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMN
1Job #Job RevenueJob CostJob StatusJob Mat SpendJob #Job RevenueJob CostJob StatusJob Mat Spend
22310080Closed2042200150Active10
342200150Active107115030Active40
45610090Active305610090Active30
57115030Active408310085Active40
68310085Active40
7
Data
Cell Formulas
RangeFormula
J2:N5J2=SORT(FILTER(A2:E6,D2:D6<>"closed"),2,-1)
Dynamic array formulas.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Creating a dynamic descending list with duplicate values
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMN
1Job #Job RevenueJob CostJob StatusJob Mat SpendJob #Job RevenueJob CostJob StatusJob Mat Spend
22310080Closed2042200150Active10
342200150Active107115030Active40
45610090Active305610090Active30
57115030Active408310085Active40
68310085Active40
7
Data
Cell Formulas
RangeFormula
J2:N5J2=SORT(FILTER(A2:E6,D2:D6<>"closed"),2,-1)
Dynamic array formulas.
the problem here is that I would only like to pull in column A from the first list instead of all of the data from the first table.
 
Upvote 0
In that case how about
Excel Formula:
=INDEX(SORT(FILTER(A2:B6,D2:D6<>"closed"),2,-1),,1)
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
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