SOLVED

Value to answers on Excel

%3CLINGO-SUB%20id%3D%22lingo-sub-2288904%22%20slang%3D%22en-US%22%3EValue%20to%20answers%20on%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288904%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20-%20and%20thanks%20to%20whoever%20helps!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20collected%20answers%20in%20the%20form%20of%20a%20questionnaire%20on%20Google%20forms%2C%20and%20now%20I%20have%20them%20on%20an%20Excel%20document.%20I'm%20trying%20to%20attribute%20a%20value%20to%20each%20answer%20(Yes%20%3D%204%2C%20Sometimes%20%3D%202%2C%20No%20%3D%200)%20and%20have%20them%20added%20at%20the%20end%20of%20each%20individual%20submission%20of%20the%20questionnaire%20-%20but%20I%20have%20not%20succeded.%3C%2FP%3E%3CP%3ECan%20someone%20help%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2288904%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20for%20web%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288928%22%20slang%3D%22en-US%22%3ERe%3A%20Value%20to%20answers%20on%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288928%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1036362%22%20target%3D%22_blank%22%3E%40RSS96%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20say%20the%20answers%20are%20in%20B2%3AB20.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3D4*SUMPRODUCT(--(B2%3AB20%3D%22Yes%22))%2B2*SUMPRODUCT(--(B2%3AB20%3D%22Sometimes%22))%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello - and thanks to whoever helps!

 

I've collected answers in the form of a questionnaire on Google forms, and now I have them on an Excel document. I'm trying to attribute a value to each answer (Yes = 4, Sometimes = 2, No = 0) and have them added at the end of each individual submission of the questionnaire - but I have not succeded.

Can someone help?

Thanks

2 Replies
best response confirmed by RSS96 (New Contributor)
Solution

@RSS96 

Let's say the answers are in B2:B20.

 

=4*SUMPRODUCT(--(B2:B20="Yes"))+2*SUMPRODUCT(--(B2:B20="Sometimes"))

Helped so much!! Thanks