Sort Unique List of 2 Non-Adjacent Columns by Date Range

BrettOlbrys1

Board Regular
Joined
May 1, 2018
Messages
139
Office Version
  1. 365
Platform
  1. Windows
Hello. I need a formula that will sort a unique list of two non-adjacent columns based on a date range.
  • Company Name is in column A, Date of Sale is in column G, and Total Sale ($) is in column L.
  • Company names will repeat often
Based on a specified range of dates to look up, I want to:
  • Create a Unique list of company names based on column A
  • Sum their Total Sales during that date range
  • Order the Unique list of company names based on Total Sales, from greatest to least
 

Attachments

  • Picture1.png
    Picture1.png
    48.9 KB · Views: 12

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
How about
+Fluff 1.xlsm
AGLMNOPQ
1
2
3AA01/03/202210001/02/2022SH900
4AA01/01/202220006/03/2022AA700
5SH05/03/2022300CAR500
6AA08/02/2022400
7CAR03/03/2022500
8SH07/02/2022600
9
Lists
Cell Formulas
RangeFormula
P3:Q5P3=LET(u,UNIQUE(FILTER(A2:A100,(A2:A100<>"")*(G2:G100>=O3)*(G2:G100<=O4))),SORT(CHOOSE({1,2},u,SUMIFS(L2:L100,A2:A100,u)),2,-1))
Dynamic array formulas.
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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