Return sum of accounting dates based upon a match of corresponding cells

sambusby

New Member
Joined
Sep 19, 2017
Messages
2
Hi,

I am looking for a formula route to return a count of accounting dates based upon a match of corresponding cells. I’ve had a look through the forum but can’t see a similar answer, although I have seen a few with more complex analysis.

The Reference data is no more than 100 lines. Sadly reference data is locked, and therefore cannot be re-ordered and filtered prior - to allow a range helper.

Any help greatly appreciated.

Looking for multiple criteria formula in place of the red cells (Col F2 down) where it find the search value in the item column (Col A) and list the number of unique corresponding accounting dates (Col C) it finds in the accounting date field.

Thanks
Sam


A
B
C
D
E
F
1
Item
Description
Accounting Date
Search Value
How many instances of Different Accounting Dates per item?
2
2W
Item 1
01/09/2017
2W
1
3
9M
Item 3
01/09/2017
3D
2
4
3D
Item 2
02/09/2017
4F
3
5
3D
Item 2
03/09/2017
7J
2
6
4F
Item 8
01/09/2017
8X
1
7
4F
Item 8
02/09/2017
9M
3
8
4F
Item 8
03/09/2017
9
4F
Item 8
03/09/2017
10
9M
Item 3
02/09/2017
11
9M
Item 3
02/09/2017
12
7J
Item 4
02/09/2017
13
7J
Item 4
05/09/2017
14
7J
Item 4
05/09/2017
15
7J
Item 4
05/09/2017
16
7J
Item 4
05/09/2017
17
7J
Item 4
05/09/2017
18
7J
Item 4
05/09/2017
19
8X
Item 5
01/09/2017
20
8X
Item 5
01/09/2017
21
9M
Item 3
06/09/2017

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
maybe something like...


=SUM(IF(FREQUENCY(IF($A$2:$A$21=E2,$C$2:$C$21),$C$2:$C$21),1)) Control Shift Enter
 
Upvote 0
try this


Excel 2013/2016
ABCDEF
1ItemDescriptionAccounting DateSearch ValueHow many instances of Different Accounting Dates per item?
22WItem 101/09/20172W1
39MItem 301/09/20173D2
43DItem 202/09/20174F3
53DItem 203/09/20177J2
64FItem 801/09/20178X1
74FItem 802/09/20179M3
84FItem 803/09/2017
94FItem 803/09/2017
109MItem 302/09/2017
119MItem 302/09/2017
127JItem 402/09/2017
137JItem 405/09/2017
147JItem 405/09/2017
157JItem 405/09/2017
167JItem 405/09/2017
177JItem 405/09/2017
187JItem 405/09/2017
198XItem 501/09/2017
208XItem 501/09/2017
219MItem 306/09/2017
199
Cell Formulas
RangeFormula
F2{=SUM(IF(FREQUENCY(IF($A$2:$A$21=$E2,$C$2:$C$21),$C$2:$C$21),1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,963
Members
449,200
Latest member
indiansth

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