Good Afternoon,
After some help with a countif?
I need to count number of entries on sheet 2, with two variables; only count if (C+D) < 1 year ago.
My raw Data is in two formats so needs substitute for search.
Just not sure how to add in extra variables:
Sheet1
A B C
Month Apr
Ref Count Amount
8230000 7
? 
Formula I using so far
=IF(COUNTIFS(Sheet2!B:D,SUBSTITUTE(LEFT(A4,3)&"/"&RIGHT(A4,4),"",""))=0,"",(COUNTIFS(Sheet2!B:D, SUBSTITUTE(LEFT(A4,3)&"/"&RIGHT(A4,4),"",""))))
Which returns 7
Sheet2
A B C D
Amount Ref Year Month
10 823/0000 2017 Jan X
10 823/0000 2017 Feb X
10 823/0000 2017 Mar X
10 823/0000 2017 Jun
10 823/0000 2017 Jul
10 823/0000 2017 Aug
10 823/0000 2016 Jan X
So I need to only count if sheet2 date (C/D) is < 1 year from this month.
Looking for a return of 4
.
Once I have the 4 as correct entries, I need to also count the amounts of these 4 in Sheet2 A
Any help would be appreciated.
I can add additional column to sheet1 if required but sheet2 is raw extract data and is stuck.
Plus I really want to see if it can be done on one countif.
Thanks
After some help with a countif?
I need to count number of entries on sheet 2, with two variables; only count if (C+D) < 1 year ago.
My raw Data is in two formats so needs substitute for search.
Just not sure how to add in extra variables:
Sheet1
A B C
Month Apr
Ref Count Amount
8230000 7


Formula I using so far
=IF(COUNTIFS(Sheet2!B:D,SUBSTITUTE(LEFT(A4,3)&"/"&RIGHT(A4,4),"",""))=0,"",(COUNTIFS(Sheet2!B:D, SUBSTITUTE(LEFT(A4,3)&"/"&RIGHT(A4,4),"",""))))
Which returns 7
Sheet2
A B C D
Amount Ref Year Month
10 823/0000 2017 Jan X
10 823/0000 2017 Feb X
10 823/0000 2017 Mar X
10 823/0000 2017 Jun
10 823/0000 2017 Jul
10 823/0000 2017 Aug
10 823/0000 2016 Jan X
So I need to only count if sheet2 date (C/D) is < 1 year from this month.
Looking for a return of 4

Once I have the 4 as correct entries, I need to also count the amounts of these 4 in Sheet2 A
Any help would be appreciated.

I can add additional column to sheet1 if required but sheet2 is raw extract data and is stuck.
Plus I really want to see if it can be done on one countif.
Thanks