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

[TABLE="width: 500"]
<tbody>[TR]
[TD]
[TABLE="class: outer_border, width: 882"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item
[/TD]
[TD]Description
[/TD]
[TD]Accounting Date
[/TD]
[TD][/TD]
[TD]Search Value
[/TD]
[TD]How many instances of Different Accounting Dates per item?
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]2W
[/TD]
[TD]Item 1
[/TD]
[TD]01/09/2017
[/TD]
[TD][/TD]
[TD]2W
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]9M
[/TD]
[TD]Item 3
[/TD]
[TD]01/09/2017
[/TD]
[TD][/TD]
[TD]3D
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]3D
[/TD]
[TD]Item 2
[/TD]
[TD]02/09/2017
[/TD]
[TD][/TD]
[TD]4F
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]3D
[/TD]
[TD]Item 2
[/TD]
[TD]03/09/2017
[/TD]
[TD][/TD]
[TD]7J
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]4F
[/TD]
[TD]Item 8
[/TD]
[TD]01/09/2017
[/TD]
[TD][/TD]
[TD]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/TD]
[TD]05/09/2017
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18
[/TD]
[TD]7J
[/TD]
[TD]Item 4
[/TD]
[TD]05/09/2017
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19
[/TD]
[TD]8X
[/TD]
[TD]Item 5
[/TD]
[TD]01/09/2017
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20
[/TD]
[TD]8X
[/TD]
[TD]Item 5
[/TD]
[TD]01/09/2017
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21
[/TD]
[TD]9M
[/TD]
[TD]Item 3
[/TD]
[TD]06/09/2017
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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