How to get value with most recent date in an array

lost_in_the_sauce

Board Regular
Joined
Jan 18, 2021
Messages
128
Office Version
  1. 365
Platform
  1. Windows
Thought I had it before, but didn't, have the xl2bb add in now.

I have tons of financial data for store locations that is entered by the stores into SalesForce, and if they make an additional entry it just adds it to the data stack, so a store could have multiple entries for one month. I would like to pull the values of only the latest dated entry, right now it's capturing all and adding them together for the same month.

Data tab:

mrexcel2bb.xlsx
ABCDEFGHIJKLMNOPQ
1SalesforceIDMonthFiscal MonthYearStoreLocationCreated DateSync to SFNameRevenueCOGSInsuranceMarketingOccupancyOtherPayrollExcluded Items (Not Required)
2a085f000008MmAQAA0DecemberP-12 (Dec)202240New York01/23/23 10:45 AMBilly Williamson$ 192,735.00$ 22,291.72$ 21,205.48$ 3,375.00$ 43,879.60$ 44,517.16$ 47,603.52$ (47,880.83)
3a085f000006xZVgAAMNovemberP-11 (Nov)202240New York12/23/22 3:38 AMBilly Williamson$ 135,080.88$ 13,843.69$ 6,691.17$ -$ 38,642.48$ 34,806.04$ 41,462.35$ (28,129.07)
4a085f000006w2stAAAOctoberP-10 (Oct)202240New York11/22/22 9:04 AMBilly Williamson$ 145,888.34$ 18,839.01$ 6,847.02$ -$ 40,512.60$ 35,565.12$ 42,675.61$ (28,152.08)
5a085f000006ui4WAAQSeptemberP-09 (Sep)202240New York10/25/22 6:33 AMBilly Williamson$ 162,578.36$ 24,342.38$ 6,691.17$ -$ 42,091.25$ 28,153.80$ 64,873.11$ (28,175.02)
6a085f000005L7lHAASAugustP-08 (Aug)202240New York09/24/22 5:14 AMBilly Williamson$ 176,873.57$ 25,586.87$ 6,691.00$ 750.00$ 76,501.00$ 40,558.81$ 52,668.56$ (33,281.41)
7a085f000005JsDWAA0MarchP-03 (Mar)202240New York08/24/22 11:30 AMBilly Williamson$ 175,923.11$ 18,115.21$ 6,691.17$ 750.00$ 41,042.35$ 45,630.51$ 62,623.68$ (30,128.32)
8a085f000005Ioy0AACJuneP-06 (Jun)202240New York07/25/22 4:04 PMBilly Williamson$ 218,278.43$ 52,183.63$ 7,452.62$ 750.00$ 44,795.30$ 28,897.88$ 63,371.42$ (30,150.87)
9a085f000005HkQkAAKMayP-05 (May)202240New York06/23/22 5:45 AMBilly Williamson$ 167,541.00$ 25,259.99$ 12,059.00$ 750.00$ 41,532.00$ 29,953.88$ 39,598.00$ (30,173.00)
10a085f000003yoDuAAIAprilP-04 (Apr)202240New York05/19/22 5:41 AMBilly Williamson$ 138,502.82$ 23,034.05$ 5,365.02$ 750.00$ 37,013.81$ 38,702.24$ 37,941.87$ 32,104.91
11a085f000003xwkLAAQMarchP-03 (Mar)202240New York04/25/22 2:09 PMBilly Williamson$ 237,193.86$ 19,501.47$ 5,528.65$ 750.00$ 42,506.31$ 26,449.44$ 69,335.82$ 30,173.16
12a085f000003xJVLAA2FebruaryP-02 (Feb)202240New York04/14/22 3:03 AMBilly Williamson$ 146,176.00$ 14,426.00$ 5,365.00$ -$ 38,604.00$ 24,684.00$ 42,830.00$ 3,538.00
13a085f000003xJVGAA2JanuaryP-01 (Jan)202240New York04/14/22 3:00 AMBilly Williamson$ 161,274.00$ 10,436.00$ 5,360.00$ (5.00)$ 37,966.00$ 19,897.00$ 47,289.00$ 3,558.00
14a085f000008KA0NAAWDecemberP-12 (Dec)2022149Boston01/14/23 6:42 AMJennifer Harper$ 338,912.46$ 32,502.00$ 18,932.49$ 14,740.95$ 29,448.49$ 46,288.74$ 68,477.32$ 41,399.19
15a085f000006xDOTAA2NovemberP-11 (Nov)2022149Boston12/14/22 6:41 PMJennifer Harper$ 296,919.99$ 40,386.12$ 27,623.49$ 10,940.16$ 29,488.46$ 36,496.14$ 66,723.66$ 33,631.62
16a085f000006vmL0AAIOctoberP-10 (Oct)2022149Boston11/13/22 6:29 AMJennifer Harper$ 233,850.14$ 27,223.88$ 15,649.58$ 9,884.19$ 30,769.69$ 41,930.75$ 59,687.90$ 31,949.46
17a085f000006uJ6fAAESeptemberP-09 (Sep)2022149Boston10/14/22 5:25 PMJennifer Harper$ 231,854.36$ 28,646.54$ 16,272.58$ 12,328.60$ 30,098.07$ 28,310.26$ 85,946.05$ 38,962.18
18a085f000005KjLQAA0AugustP-08 (Aug)2022149Boston09/15/22 7:33 PMJennifer Harper$ 268,894.48$ 33,632.51$ 22,096.47$ 15,808.20$ 30,131.91$ 30,743.10$ 68,464.22$ 37,612.55
19a085f000005JsbhAACJulyP-07 (Jul)2022149Boston08/24/22 3:24 PMJennifer Harper$ 254,189.52$ 32,123.62$ 17,584.58$ 10,499.99$ 30,840.77$ 27,781.32$ 141,766.70$ 9,976.71
20a085f000005JYsGAAWJulyP-07 (Jul)2022149Boston08/16/22 3:48 AMJennifer Harper$ 254,189.52$ 32,123.62$ 17,584.58$ 10,499.99$ 25,000.00$ 33,622.09$ 141,766.70$ 9,976.71
21a085f000005INRqAAOJuneP-06 (Jun)2022149Boston07/11/22 6:56 AMJennifer Harper$ 225,493.72$ 25,714.29$ 17,025.58$ 11,304.88$ 29,310.71$ 34,690.73$ 74,935.64$ 32,407.53
22a085f000003zeEBAAYMayP-05 (May)2022149Boston06/11/22 6:12 AMJennifer Harper$ 275,129.77$ 41,830.16$ 16,560.73$ 17,279.13$ 29,565.93$ 54,363.81$ 68,441.44$ 46,516.64
23a085f000003yjC2AAIAprilP-04 (Apr)2022149Boston05/17/22 5:17 AMJennifer Harper$ 412,691.43$ 67,780.67$ 13,040.13$ 20,804.93$ 30,963.31$ 54,456.62$ 73,053.48$ 41,999.08
24a085f000003yiQJAAYFebruaryP-02 (Feb)2022149Boston05/16/22 6:04 PMJennifer Harper$ 385,871.20$ 42,053.61$ 927.88$ 14,977.19$ 30,170.55$ 38,358.98$ 59,355.08$ 39,760.42
25a085f000003yiQEAAYJanuaryP-01 (Jan)2022149Boston05/16/22 6:03 PMJennifer Harper$ 341,716.77$ 34,586.19$ 11,865.13$ 14,525.83$ 30,877.99$ 32,690.87$ 68,137.94$ 41,770.64
26a085f000003yiQ9AAIFebruaryP-02 (Feb)2022149Boston05/16/22 6:00 PMJennifer Harper$ -$ -$ -$ -$ -$ -$ -$ -
27a085f000003yiPzAAIJanuaryP-01 (Jan)2022149Boston05/16/22 5:59 PMJennifer Harper$ -$ -$ -$ -$ -$ -$ -$ -
28a085f000003xFTrAAMMarchP-03 (Mar)2022149Boston04/11/22 2:20 AMJennifer Harper$ 494,203.40$ 62,226.56$ 23,943.88$ 31,577.96$ 30,383.40$ 68,943.51$ 109,204.92$ 39,872.20
29a085f000001KIHtAAOFebruaryP-02 (Feb)2022149Boston03/12/22 5:11 PMJennifer Harper$ 385,871.20$ 42,053.61$ 927.88$ 14,977.19$ 30,170.55$ 38,358.98$ 59,355.08$ 39,760.42
30a085f000001KHLgAAOFebruaryP-02 (Feb)2022149Boston03/10/22 2:21 PMJennifer Harper$ 533,071.54$ 42,053.61$ 927.88$ 14,977.19$ 30,170.55$ 38,358.98$ 59,355.08$ 39,760.42
31a085f000001KCI8AAOJanuaryP-01 (Jan)2022149Boston02/20/22 1:43 PMJennifer Harper$ 341,716.77$ 34,586.19$ 11,865.13$ 14,525.83$ 30,877.99$ 32,690.87$ 68,137.94$ 41,770.64
32a085f000008MqH5AAKDecemberP-12 (Dec)2022107Philadelphia01/24/23 10:20 AMMax Headroom$ 435,436.86$ 44,980.68$ 20,070.23$ 8,250.00$ 110,877.82$ 75,328.75$ 81,596.21$ 166.06
33a085f000006xcpmAAANovemberP-11 (Nov)2022107Philadelphia12/25/22 9:56 PMMax Headroom$ 395,724.61$ 53,529.86$ 21,235.76$ 8,250.00$ 51,969.51$ 45,789.75$ 72,083.99$ 136.88
34a085f000006wDESAA2OctoberP-10 (Oct)2022107Philadelphia11/25/22 6:40 AMMax Headroom$ 430,768.19$ 42,405.88$ 22,177.76$ 8,541.10$ 52,742.63$ 46,956.82$ 73,414.45$ 109.22
35a085f000006ujmyAAASeptemberP-09 (Sep)2022107Philadelphia10/25/22 10:16 PMMax Headroom$ 409,705.58$ 46,034.77$ 27,537.26$ 8,225.00$ 54,945.82$ 48,811.23$ 74,875.91$ 80.58
36a085f000005L9K3AAKAugustP-08 (Aug)2022107Philadelphia09/25/22 8:56 PMMax Headroom$ 429,828.82$ 60,872.14$ 23,133.36$ 8,250.00$ 58,834.81$ 45,057.14$ 75,376.04$ 106.31
37a085f000005JxeNAASJulyP-07 (Jul)2022107Philadelphia08/25/22 9:41 PMMax Headroom$ 501,857.61$ 54,367.37$ 20,153.43$ 8,318.03$ 57,758.48$ 47,967.54$ 86,919.53$ 50.55
38a085f000005IpHHAA0JuneP-06 (Jun)2022107Philadelphia07/25/22 9:40 PMMax Headroom$ 456,591.94$ 44,718.55$ 23,518.73$ 8,319.59$ 58,774.48$ 43,056.01$ 86,071.99
39a085f000005HrdDAASMayP-05 (May)2022107Philadelphia06/25/22 9:07 PMMax Headroom$ 451,295.10$ 44,279.82$ 19,199.43$ 8,998.20$ 54,327.96$ 41,536.08$ 69,477.99$ 39.23
40a085f000003z5E1AAIAprilP-04 (Apr)2022107Philadelphia05/25/22 6:03 PMMax Headroom$ 497,385.30$ 55,366.18$ 8,517.00$ 8,863.46$ 52,477.92$ 45,319.51$ 71,448.25$ 29.55
41a085f000003xwwqAAAMarchP-03 (Mar)2022107Philadelphia04/25/22 9:31 PMMax Headroom$ 662,606.13$ 86,417.45$ 15,000.82$ 8,323.03$ 55,790.61$ 60,001.31$ 73,809.61
42a085f000003qMdyAAEFebruaryP-02 (Feb)2022107Philadelphia04/01/22 11:28 PMMax Headroom$ 480,993.82$ 39,475.62$ 3,226.00$ 8,260.00$ 54,253.31$ 48,160.16$ 62,486.30
43a085f000001KEkVAAWJanuaryP-01 (Jan)2022107Philadelphia02/25/22 9:35 PMMax Headroom$ 423,092.57$ 33,460.85$ 6,483.82$ 9,021.18$ 45,986.08$ 45,622.93$ 68,282.83$ 17.94
44a085f000008KEX4AAODecemberP-12 (Dec)202293Atlanta01/16/23 8:51 AMFrank Drebin$ 181,731.00$ 11,958.00$ 7,860.00$ 29,450.00$ 26,427.00$ 18,744.00$ 34,195.00$ 13,949.00
45a085f000006xEh3AAENovemberP-11 (Nov)202293Atlanta12/15/22 6:15 AMFrank Drebin$ 175,151.00$ 30,118.00$ 7,859.00$ 14,966.00$ 32,333.00$ 32,368.00$ 29,430.00
46a085f000006vryKAAQOctoberP-10 (Oct)202293Atlanta11/15/22 1:10 PMFrank Drebin$ 132,686.00$ 15,816.00$ 8,049.00$ 8,910.00$ 27,505.00$ 16,150.00$ 26,225.00
47a085f000006ufWGAAYSeptemberP-09 (Sep)202293Atlanta10/24/22 7:31 AMFrank Drebin$ 122,938.00$ 17,704.00$ 7,859.00$ 7,294.00$ 30,305.00$ 18,068.00$ 25,647.00
48a085f000005L3FUAA0AugustP-08 (Aug)202293Atlanta09/23/22 8:10 AMFrank Drebin$ 168,097.00$ 19,772.00$ 9,086.00$ 8,956.00$ 31,410.00$ 18,579.00$ 32,224.00$ 15,807.00
49a085f000005JmMTAA0JulyP-07 (Jul)202293Atlanta08/22/22 8:28 AMFrank Drebin$ 155,530.00$ 11,499.00$ 10,199.00$ 7,496.00$ 31,626.00$ 16,974.00$ 30,066.00
50a085f000005IpkfAACJanuaryP-01 (Jan)202293Atlanta07/26/22 5:32 AMFrank Drebin$ 160,089.00$ 15,741.00$ 847.00$ 6,519.00$ 29,879.00$ 18,632.00$ 28,332.00$ 4,224.00
51a085f000005HoG7AAKMayP-05 (May)202293Atlanta06/24/22 12:16 PMFrank Drebin$ 157,406.00$ 26,797.00$ 10,511.00$ 9,881.00$ 26,600.00$ 16,349.00$ 27,129.00$ 5,707.00
52a085f000005HehXAASJanuaryP-01 (Jan)202293Atlanta06/21/22 4:58 PMFrank Drebin$ 157,406.00$ 26,797.00$ 10,510.00$ 9,872.34$ 28,313.11$ 14,616.75$ 27,130.00$ 5,707.80
53a085f000003ylwkAAAAprilP-04 (Apr)202293Atlanta05/18/22 5:18 AMFrank Drebin$ 200,413.33$ 24,278.42$ 2,591.00$ 13,138.00$ 24,417.00$ 24,204.00$ 27,860.00
54a085f000003xZERAA2MarchP-03 (Mar)202293Atlanta04/16/22 12:52 PMFrank Drebin$ 224,692.00$ 22,281.00$ 619.00$ 11,824.00$ 38,569.00$ 11,027.00$ 25,075.00
55a085f000001KHGFAA4FebruaryP-02 (Feb)202293Atlanta03/10/22 10:09 AMFrank Drebin$ 204,835.44$ 22,930.20$ 1,231.50$ 11,696.32$ 11,021.09$ 38,977.95$ 23,315.95
56a085f000001KF4LAAWJanuaryP-01 (Jan)202293Atlanta02/28/22 2:28 PMFrank Drebin$ 183,615.70$ 23,550.00$ -$ 8,016.90$ 21,414.96$ 21,403.72$ 24,717.71
57a085f000008MtCjAAKDecemberP-12 (Dec)2022146Miami01/25/23 8:57 PMJim Smith$ 299,055.00$ 22,943.00$ 13,364.00$ 12,131.00$ 40,777.00$ 39,653.00$ 39,091.00$ 7,943.00
58a085f000006xZtFAAUNovemberP-11 (Nov)2022146Miami12/23/22 2:42 PMJim Smith$ 287,756.00$ 23,526.00$ 12,672.00$ 14,073.00$ 41,205.00$ 28,766.00$ 38,500.00$ 2,257.00
59a085f000006wDuFAAUOctoberP-10 (Oct)2022146Miami11/25/22 6:30 PMJim Smith$ 255,486.00$ 25,891.00$ 13,348.00$ 9,408.00$ 41,423.00$ 26,829.00$ 45,392.00$ 2,222.00
60a085f000006uipQAAQSeptemberP-09 (Sep)2022146Miami10/25/22 4:18 PMJim Smith$ 236,993.44$ 25,996.96$ 12,354.73$ 13,724.60$ 41,102.24$ 27,521.20$ 61,801.82$ 8,138.56
61a085f000005KmU0AAKAugustP-08 (Aug)2022146Miami09/17/22 7:49 AMJim Smith$ 312,720.58$ 34,497.36$ 13,214.78$ 11,291.88$ 41,655.30$ 35,495.27$ 55,355.18$ -
62a085f000005Jb97AACJulyP-07 (Jul)2022146Miami08/17/22 9:39 AMJim Smith$ 241,411.59$ 24,905.23$ 11,536.88$ 9,313.60$ 41,482.00$ 21,209.63$ 55,038.26$ -
63a085f000005INNtAAOJuneP-06 (Jun)2022146Miami07/11/22 4:04 AMJim Smith$ 231,073.61$ 26,743.14$ 12,634.68$ 24,531.37$ 40,454.62$ 19,969.68$ 45,152.81$ -
64a085f000005HShPAAWMayP-05 (May)2022146Miami06/15/22 6:08 PMJim Smith$ 240,856.45$ 31,358.08$ 19,741.89$ 20,077.46$ 39,927.34$ 43,039.82$ 39,668.55$ -
65a085f000003yeNtAAIAprilP-04 (Apr)2022146Miami05/13/22 10:45 AMJim Smith$ 278,005.22$ 15,396.70$ 9,137.67$ 20,014.81$ 39,969.64$ 36,559.80$ 44,342.02
66a085f000003xFU6AAMMarchP-03 (Mar)2022146Miami04/11/22 5:30 AMJim Smith$ 498,884.02$ 47,821.51$ 9,357.52$ 12,260.29$ 41,668.86$ 25,150.85$ 70,838.10
67a085f000001KI1UAAWFebruaryP-02 (Feb)2022146Miami03/12/22 5:33 AMJim Smith$ 302,544.22$ 38,977.16$ 10,801.83$ 14,676.18$ 41,438.72$ 25,170.46$ 40,603.18$ -
68a085f000001K9lwAACJanuaryP-01 (Jan)2022146Miami02/11/22 12:13 PMJim Smith$ 267,984.24$ 28,329.22$ 9,357.52$ 18,849.97$ 40,669.04$ 26,012.31$ 39,333.35$ -
Data



Dashboard tab:
mrexcel2bb.xlsx
BCDEFGHIJ
1New York Revenue COGS Gross Profit Payroll Marketing Insurance Occupancy Other
2January$ 161,274$ 10,436$ 150,838$ 47,289$ (5)$ 5,360$ 37,966$ 19,897
3February$ 146,176$ 14,426$ 131,750$ 42,830$ -$ 5,365$ 38,604$ 24,684
4March$ 413,117$ 37,617$ 375,500$ 131,960$ 1,500$ 12,220$ 83,549$ 72,080
5April$ 138,503$ 23,034$ 115,469$ 37,942$ 750$ 5,365$ 37,014$ 38,702
6May$ 167,541$ 25,260$ 142,281$ 39,598$ 750$ 12,059$ 41,532$ 29,954
7June$ 218,278$ 52,184$ 166,095$ 63,371$ 750$ 7,453$ 44,795$ 28,898
8July$ -$ -$ -$ -$ -$ -$ -$ -
9August$ 176,874$ 25,587$ 151,287$ 52,669$ 750$ 6,691$ 76,501$ 40,559
10September$ 162,578$ 24,342$ 138,236$ 64,873$ -$ 6,691$ 42,091$ 28,154
11October$ 145,888$ 18,839$ 127,049$ 42,676$ -$ 6,847$ 40,513$ 35,565
12November$ 135,081$ 13,844$ 121,237$ 41,462$ -$ 6,691$ 38,642$ 34,806
13December$ 192,735$ 22,292$ 170,443$ 47,604$ 3,375$ 21,205$ 43,880$ 44,517
14
15Boston Revenue COGS Gross Profit Payroll Marketing Insurance Occupancy Other
16January$ 683,434$ 69,172$ 614,261$ 136,276$ 29,052$ 23,730$ 61,756$ 65,382
17February$ 1,304,814$ 126,161$ 1,178,653$ 178,065$ 44,932$ 2,784$ 90,512$ 115,077
18March$ 494,203$ 62,227$ 431,977$ 109,205$ 31,578$ 23,944$ 30,383$ 68,944
19April$ 412,691$ 67,781$ 344,911$ 73,053$ 20,805$ 13,040$ 30,963$ 54,457
20May$ 275,130$ 41,830$ 233,300$ 68,441$ 17,279$ 16,561$ 29,566$ 54,364
21June$ 225,494$ 25,714$ 199,779$ 74,936$ 11,305$ 17,026$ 29,311$ 34,691
22July$ 508,379$ 64,247$ 444,132$ 283,533$ 21,000$ 35,169$ 55,841$ 61,403
23August$ 268,894$ 33,633$ 235,262$ 68,464$ 15,808$ 22,096$ 30,132$ 30,743
24September$ 231,854$ 28,647$ 203,208$ 85,946$ 12,329$ 16,273$ 30,098$ 28,310
25October$ 233,850$ 27,224$ 206,626$ 59,688$ 9,884$ 15,650$ 30,770$ 41,931
26November$ 296,920$ 40,386$ 256,534$ 66,724$ 10,940$ 27,623$ 29,488$ 36,496
27December$ 338,912$ 32,502$ 306,410$ 68,477$ 14,741$ 18,932$ 29,448$ 46,289
View
Cell Formulas
RangeFormula
C2:D13,F2:J13C2=SUMPRODUCT((Data!$B$2:$B$68=View!$B2)*(Data!$J$1:$Q$1=View!C$1)*(Data!$F$2:$F$68=View!$B$1)*(Data!$J$2:$Q$68))
E2:E13,E16:E27E2=C2-D2
C16:D27,F16:J27C16=SUMPRODUCT((Data!$B$2:$B$68=View!$B16)*(Data!$J$1:$Q$1=View!C$15)*(Data!$F$2:$F$68=View!$B$15)*(Data!$J$2:$Q$68))



You can see for example, Feb for Boston is the sum of all the entries for Feb, when I only want to pull values of the latest upload, which is 5/16/22 6:04 PM. Trying to get this to work so that in the future I won't have to clean up the data for hundreds of stores.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about
Cell Formulas
RangeFormula
C16:D27C16=TAKE(SORT(FILTER(FILTER(Data!$G$2:$Q$68,(Data!$B$2:$B$68=$B16)*(Data!$F$2:$F$68=$B$15)),(Data!$G$1:$Q$1=C$15)+(Data!$G$1:$Q$1="Created Date")),,-1),1,-1)
E16:E27E16=C16-D16
 
Upvote 1
Solution
Try this:

varios 27feb2023.xlsm
ABCDEFGHI
1New YorkRevenueCOGSInsuranceMarketingOccupancyOtherPayrollExcluded Items (Not Required)
2January161274.0010436.005360.000.0037966.0019897.0047289.003558.00
3February146176.0014426.005365.000.0038604.0024684.0042830.003538.00
4March175923.1118115.216691.17750.0041042.3545630.5162623.680.00
5April138502.8223034.055365.02750.0037013.8138702.2437941.8732104.91
6May167541.0025259.9912059.00750.0041532.0029953.8839598.000.00
7June218278.4352183.637452.62750.0044795.3028897.8863371.420.00
8July0.000.000.000.000.000.000.000.00
9August176873.5725586.876691.00750.0076501.0040558.8152668.560.00
10September162578.3624342.386691.170.0042091.2528153.8064873.110.00
11October145888.3418839.016847.020.0040512.6035565.1242675.610.00
12November135080.8813843.696691.170.0038642.4834806.0441462.350.00
13December192735.0022291.7221205.483375.0043879.6044517.1647603.520.00
14
15BostonRevenueCOGSInsuranceMarketingOccupancyOtherPayrollExcluded Items (Not Required)
16January341716.7734586.1911865.1314525.8330877.9932690.8768137.9441770.64
17February385871.2042053.61927.8814977.1930170.5538358.9859355.0839760.42
18March494203.4062226.5623943.8831577.9630383.4068943.51109204.9239872.20
19April412691.4367780.6713040.1320804.9330963.3154456.6273053.4841999.08
20May275129.7741830.1616560.7317279.1329565.9354363.8168441.4446516.64
21June225493.7225714.2917025.5811304.8829310.7134690.7374935.6432407.53
22July254189.5232123.6217584.5810499.9930840.7727781.32141766.709976.71
23August268894.4833632.5122096.4715808.2030131.9130743.1068464.2237612.55
24September231854.3628646.5416272.5812328.6030098.0728310.2685946.0538962.18
25October233850.1427223.8815649.589884.1930769.6941930.7559687.9031949.46
26November296919.9940386.1227623.4910940.1629488.4636496.1466723.6633631.62
27December338912.4632502.0018932.4914740.9529448.4946288.7468477.3241399.19
View
Cell Formulas
RangeFormula
B2:I13B2=MAX((Data!$F$2:$F$68=$A$1)*(Data!$B$2:$B$68=$A2)*(Data!$G$2:$G$68=MAX((Data!$F$2:$F$68=$A$1)*(Data!$B$2:$B$68=$A2)*(Data!$G$2:$G$68)))*(Data!$J$1:$Q$1=B$1)*Data!$J$2:$Q$68)
B16:I27B16=MAX((Data!$F$2:$F$68=$A$15)*(Data!$B$2:$B$68=$A16)*(Data!$G$2:$G$68=MAX((Data!$F$2:$F$68=$A$15)*(Data!$B$2:$B$68=$A16)*(Data!$G$2:$G$68)))*(Data!$J$1:$Q$1=B$15)*Data!$J$2:$Q$68)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Try:

Cell Formulas
RangeFormula
B2:C13B2=MAX((Data!$F$2:$F$68=$A$1)*(Data!$B$2:$B$68=$A2)*(Data!$G$2:$G$68=MAX((Data!$F$2:$F$68=$A$1)*(Data!$B$2:$B$68=$A2)*(Data!$G$2:$G$68)))*(Data!$J$1:$Q$1=B$1)*Data!$J$2:$Q$68)
B16:C27B16=MAX((Data!$F$2:$F$68=$A$15)*(Data!$B$2:$B$68=$A16)*(Data!$G$2:$G$68=MAX((Data!$F$2:$F$68=$A$15)*(Data!$B$2:$B$68=$A16)*(Data!$G$2:$G$68)))*(Data!$J$1:$Q$1=B$15)*Data!$J$2:$Q$68)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
How about
Cell Formulas
RangeFormula
C16:D27C16=TAKE(SORT(FILTER(FILTER(Data!$G$2:$Q$68,(Data!$B$2:$B$68=$B16)*(Data!$F$2:$F$68=$B$15)),(Data!$G$1:$Q$1=C$15)+(Data!$G$1:$Q$1="Created Date")),,-1),1,-1)
E16:E27E16=C16-D16

This did it. Thank you Fluff
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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