Home

Adding two criteria together

%3CLINGO-SUB%20id%3D%22lingo-sub-672399%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20two%20criteria%20together%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672399%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F354897%22%20target%3D%22_blank%22%3E%40Wccat%3C%2FA%3E%26nbsp%3B%2C%20could%20you%20please%20submit%20small%20sample%20file%20-%20your%20%22y%22%20etc%20are%20texts%20or%20numbers%2C%20where%20you'd%20like%20to%20put%20the%20result%20(same%20column%20or%20outside%20the%20range)%2C%20what%20exactly%20means%20%22then%20'b'%22%2C%20etc.%20File%20gives%20much%20more%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-672747%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20two%20criteria%20together%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-672747%22%20slang%3D%22en-US%22%3ESUMIFS%20may%20return%20your%20desired%20result%20but%20the%20arguments%20thereof%20cannot%20be%20specified%20unless%20you%20attach%20your%20sample%20file.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-670489%22%20slang%3D%22en-US%22%3EAdding%20two%20criteria%20together%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-670489%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20get%20the%20sum%20of%20all%20the%20%22y%22%20in%20each%20column%2C%20only%20if%20the%20last%20row%20has%20%22a%22%3C%2FP%3E%3CP%3Ethen%20%22b%22%20etc.%20What's%20the%20best%20way%20to%20do%20that%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEdit%3A%20I%20have%20columns%20representing%20answers%20to%20questions.%26nbsp%3B%20I%20want%20a%20count%20of%20the%20number%20of%20%22y%22s%20(literally%20%22y%22%2C%20not%20representing%20numbers)%20in%20each%20column%20only%20if%20the%20last%20value%20is%20%22a%22%20(the%20actual%20letter%20%22a%22).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20create%20a%20chart%20that%20shows%20the%20number%20of%20answers%20based%20on%20how%20recent%20their%20last%20training.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-670489%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-684744%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20two%20criteria%20together%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-684744%22%20slang%3D%22en-US%22%3EI%20have%20columns%20representing%20answers%20to%20questions.%20I%20want%20a%20count%20of%20the%20number%20of%20%22y%22s%20(literally%20%22y%22%2C%20not%20representing%20numbers)%20in%20each%20column%20only%20if%20the%20last%20value%20is%20%22a%22%20(the%20actual%20letter%20%22a%22).%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20trying%20to%20create%20a%20chart%20that%20shows%20the%20number%20of%20answers%20based%20on%20how%20recent%20their%20last%20training.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-684755%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20two%20criteria%20together%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-684755%22%20slang%3D%22en-US%22%3EI%20have%20columns%20representing%20answers%20to%20questions.%20I%20want%20a%20count%20of%20the%20number%20of%20%22y%22s%20(literally%20%22y%22%2C%20not%20representing%20numbers)%20in%20each%20column%20only%20if%20the%20last%20value%20is%20%22a%22%20(the%20actual%20letter%20%22a%22).%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20trying%20to%20create%20a%20chart%20that%20shows%20the%20number%20of%20answers%20based%20on%20how%20recent%20their%20last%20training.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-684830%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20two%20criteria%20together%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-684830%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F354897%22%20target%3D%22_blank%22%3E%40Wccat%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20could%20be%20like%3C%2FP%3E%0A%3CPRE%3E%3DIFERROR(COUNTIFS(INDEX(%24B%245%3A%24AG%2442%2CMATCH(%24B55%2C%24A%245%3A%24A%2442%2C0)%2C0)%2C%22y%22%2C%24B%2444%3A%24AG%2444%2C%22a%22)%2C%22no%20such%22)%3C%2FPRE%3E%0A%3CP%3Ehere%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20387px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117824i927E21E29FA2DAC5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eif%20I%20understood%20your%20logic%20correctly%3C%2FP%3E%3C%2FLINGO-BODY%3E
Wccat
New Contributor

Hi, 

I would like to get the sum of all the "y" in each column, only if the last row has "a"

then "b" etc. What's the best way to do that? 

 

Edit: I have columns representing answers to questions.  I want a count of the number of "y"s (literally "y", not representing numbers) in each column only if the last value is "a" (the actual letter "a"). 

 

I am trying to create a chart that shows the number of answers based on how recent their last training. 

 

Thanks.  

5 Replies
Highlighted

@Wccat , could you please submit small sample file - your "y" etc are texts or numbers, where you'd like to put the result (same column or outside the range), what exactly means "then 'b'", etc. File gives much more information.

SUMIFS may return your desired result but the arguments thereof cannot be specified unless you attach your sample file.
I have columns representing answers to questions. I want a count of the number of "y"s (literally "y", not representing numbers) in each column only if the last value is "a" (the actual letter "a").

I am trying to create a chart that shows the number of answers based on how recent their last training.
I have columns representing answers to questions. I want a count of the number of "y"s (literally "y", not representing numbers) in each column only if the last value is "a" (the actual letter "a").

I am trying to create a chart that shows the number of answers based on how recent their last training.

@Wccat 

That could be like

=IFERROR(COUNTIFS(INDEX($B$5:$AG$42,MATCH($B55,$A$5:$A$42,0),0),"y",$B$44:$AG$44,"a"),"no such")

here

image.png

if I understood your logic correctly

Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies