Excel formula help

%3CLINGO-SUB%20id%3D%22lingo-sub-1403694%22%20slang%3D%22en-US%22%3EExcel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1403694%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20I%E2%80%99m%20hoping%20someone%20might%20be%20able%20to%20tell%20me%20whether%20its%20possible%20to%20create%20a%20formula%20that%20I%E2%80%99m%20looking%20for.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EI%E2%80%99ve%20been%20trying%20all%20sorts%20of%20Countif%20and%20countifs%20but%20with%20no%20luck%20and%20its%20probably%20beyond%20my%20very%20basic%20normal%20use%20of%20excel!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20column%20A%20is%20a%20list%20of%20dates(in%20a%20set%20format)%2C%20column%20B%20is%20a%20list%20of%20names%20(from%20a%20drop-down%20list)%20and%20column%20C%20is%20a%20list%20of%20monetary%20values.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EIs%20it%20possible%20to%20use%20one%20of%20the%20%E2%80%98IF%E2%80%99%20functions%20to%20recognise%20which%20dates%20in%20column%20A%20are%20less%20than%201%20year%20ago%20from%20today%2C%20then%20of%20those%20matches%2C%20which%20relate%20to%20particular%20name%20from%20the%20drop-down%20list%20in%20column%20B%2C%20and%20from%20those%20matching%20both%20criteria%20then%20total%20the%20relevant%20monetary%20amounts%20from%20column%20C%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20keep%20getting%20tangled%20up%20in%20the%20syntax%20from%20the%20formula%20builder%20but%20I'm%20hoping%20its%20possible%20to%20do%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJay%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1403694%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1410791%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1410791%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F673160%22%20target%3D%22_blank%22%3E%40JMc21%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20possible%2C%20please%20attached%20the%20sample%20file%20with%20your%20desired%20results.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%2C%20Faraz%20Shaikh%20%7C%20MCT%2C%20MIE%2C%20MOS%20Master%2C%20Excel%20Expert%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CFONT%20color%3D%22%23808080%22%3EIf%20you%20find%20the%20above%20solution%20resolved%20your%20query%20don't%20forget%20mark%20as%26nbsp%3B%3CSPAN%3EOfficial%20Answer%26nbsp%3Bto%20help%20the%20other%20members%20find%20it%20more%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1411075%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1411075%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F156456%22%20target%3D%22_blank%22%3E%40Faraz%20Shaikh%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EReally%20appreciate%20you%20responding%20but%20I%20can't%20see%20an%20attached%20file%20that%20you%20referred%20to!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJay%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1412511%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1412511%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F156456%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3E%26nbsp%3B%40Faraz%20Shaikh%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20managed%20to%20attach%20a%20file%20-%20I%20hope%20it%20makes%20sense%20from%20what%20I've%20described%20in%20the%20first%20message.%20%26nbsp%3BI'm%20looking%20for%20the%20formula%20to%20calculate%20how%20many%20of%20the%20payments%20were%20cash%20in%20the%20last%2012%20months%20from%20today's%20date%20but%20unsure%20of%20how%20to%20do%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJay%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1420040%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1420040%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F156456%22%20target%3D%22_blank%22%3E%40Faraz%20Shaikh%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20sorry%20I%20don't%20think%20I%20tagged%20you%20correctly%20when%20I%20replied%20previously.%20%26nbsp%3BI've%20now%20attached%20an%20example%20of%20what%20I'm%20trying%20to%20do%20-%26nbsp%3B%3CSPAN%3EI%20hope%20it%20makes%20sense%20from%20what%20I've%20described%20in%20the%20first%20message.%20%26nbsp%3BI'm%20looking%20for%20the%20formula%20to%20calculate%20how%20many%20of%20the%20payments%20were%20cash%20in%20the%20last%2012%20months%20from%20today's%20date%20but%20unsure%20of%20how%20to%20do%20it.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%20again%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EJay%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1445437%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formula%20help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1445437%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F673160%22%20target%3D%22_blank%22%3E%40JMc21%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20have%20Office365%20then%20formula%20is%20little%20easy%20to%20construct%20because%20you%20have%20the%20new%20Dynamic%20Arrays.%20I%20have%20worked%20out%20on%20both%20the%20solution%26nbsp%3Bpls%20find%20attached%20the%20same%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3ESolution%3C%2FSTRONG%3E%3C%2FU%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-06-06_19-17-54.png%22%20style%3D%22width%3A%20640px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197029iFB5621D916F23FCD%2Fimage-dimensions%2F640x296%3Fv%3D1.0%22%20width%3D%22640%22%20height%3D%22296%22%20title%3D%222020-06-06_19-17-54.png%22%20alt%3D%222020-06-06_19-17-54.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3EDynamic%20Arrays%20(Only%20Office%20365%20Users%20%26amp%3B%20Excel%20Online)%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DFILTER(%24A%244%3A%24C%2424%2C(%24B%244%3A%24B%2424%3D%22cash%22)*((%24A%244%3A%24A%2424)%26gt%3B%3D(EOMONTH(EDATE(MAX(%24A%244%3A%24A%2424)%2C-12)%2C-1)%2B1))%2C%22%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3EClassic%20Arrays%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DIFERROR(INDEX(%24A%244%3A%24C%2424%2CSMALL(IF(((%24B%244%3A%24B%2424%3D%22cash%22)*((%24A%244%3A%24A%2424)%26gt%3B%3D(EOMONTH(EDATE(MAX(%24A%244%3A%24A%2424)%2C-12)%2C-1)%2B1)))%3D1%2CROW(%24A%244%3A%24A%2424)-3%2C%22%22)%2CROW(%24J%246%3A%24J%2414)-5)%2C%7B1%2C2%2C3%7D%2C1)%2C%22%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%2C%20Faraz%20Shaikh%20%7C%20MCT%2C%20MIE%2C%20MOS%20Master%2C%20Excel%20Expert%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CFONT%20color%3D%22%23808080%22%3EIf%20you%20find%20the%20above%20solution%20resolved%20your%20query%20don't%20forget%20mark%20as%26nbsp%3B%3CSPAN%3EOfficial%20Answer%26nbsp%3Bto%20help%20the%20other%20members%20find%20it%20more%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi I’m hoping someone might be able to tell me whether its possible to create a formula that I’m looking for.  I’ve been trying all sorts of Countif and countifs but with no luck and its probably beyond my very basic normal use of excel!

 

If column A is a list of dates(in a set format), column B is a list of names (from a drop-down list) and column C is a list of monetary values.  Is it possible to use one of the ‘IF’ functions to recognise which dates in column A are less than 1 year ago from today, then of those matches, which relate to particular name from the drop-down list in column B, and from those matching both criteria then total the relevant monetary amounts from column C?

 

I keep getting tangled up in the syntax from the formula builder but I'm hoping its possible to do?

 

Many thanks

 

Jay

5 Replies
Highlighted

Hi @JMc21,

 

This is possible, please attached the sample file with your desired results.

 

Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert

If you find the above solution resolved your query don't forget mark as Official Answer to help the other members find it more

Highlighted

Hi @Faraz Shaikh 

 

Really appreciate you responding but I can't see an attached file that you referred to!

 

Regards

 

Jay

Highlighted

Hi @Faraz Shaikh

 

I've managed to attach a file - I hope it makes sense from what I've described in the first message.  I'm looking for the formula to calculate how many of the payments were cash in the last 12 months from today's date but unsure of how to do it.

 

Many thanks

 

Jay

Highlighted

Hi @Faraz Shaikh 

 

I'm sorry I don't think I tagged you correctly when I replied previously.  I've now attached an example of what I'm trying to do - I hope it makes sense from what I've described in the first message.  I'm looking for the formula to calculate how many of the payments were cash in the last 12 months from today's date but unsure of how to do it.

 

Thanks again

 

Jay

Highlighted

Hi @JMc21,

 

If you have Office365 then formula is little easy to construct because you have the new Dynamic Arrays. I have worked out on both the solution pls find attached the same

 

Solution 

 

2020-06-06_19-17-54.png

 

Dynamic Arrays (Only Office 365 Users & Excel Online)

=FILTER($A$4:$C$24,($B$4:$B$24="cash")*(($A$4:$A$24)>=(EOMONTH(EDATE(MAX($A$4:$A$24),-12),-1)+1)),"")

 

Classic Arrays

=IFERROR(INDEX($A$4:$C$24,SMALL(IF((($B$4:$B$24="cash")*(($A$4:$A$24)>=(EOMONTH(EDATE(MAX($A$4:$A$24),-12),-1)+1)))=1,ROW($A$4:$A$24)-3,""),ROW($J$6:$J$14)-5),{1,2,3},1),"")

 

Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert

If you find the above solution resolved your query don't forget mark as Official Answer to help the other members find it more