Formulas for Trivia Scoring

kizzie37

Well-known Member
Joined
Oct 23, 2007
Messages
585
Office Version
  1. 365
This might be complex to explain, formulas are required to auto score results from a trivia game. Hoping this is possible but it would be a complex formula

5 captains, each captain Provides a "correct" answer to the trivia question (right side of image "C" ). The "True" answer is noted in the TRUE column with a "T"
Then each Team/player guesses the answer to the trivia question and its logged with an "G" (left side of image)
Additionally each player chooses an answer that might not be "correct" but would be the "favorite" of "funniest" and its marked with an "F" (also left side of image)

Auto scoring as follows:

Example if Sherry guessed the TRUE answer "C" (left side) she gets 10 points, but because Bob had also chosen C she gets another 5 points, in addition its voted as the BEST answer (B) so another 2 points are added for a total of 17 to Sherry.

So a multi formula is needed to bring all these variables together to score based on the letters in the various columns and rows.

Can anyone assist
 

Attachments

  • Screenshot 2024-05-31 074917.jpg
    Screenshot 2024-05-31 074917.jpg
    99.1 KB · Views: 15
Okay, here are a couple scenarios, let me know if the points add up as you expect:

Book1 5-31-2024.xlsx
ABCDEFGHIJKLM
1
2Answer GivenAnswer Created
3ColinBobSidDaveSherryQuestionColinBobSidDaveSherryTRUE
4GAMudC
5GBBGrapesC
6BGCJelloT
7BDYogurtC
8GBEMarshmellowsC
9GBFLiverC
10
11Total725717
Sheet1
Cell Formulas
RangeFormula
H11:L11H11=LET(ae,$A$4:$E$9,hl,$H$4:$L$9,mg,MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("G",a)),1,0))),BYCOL(VSTACK(mg*MAP($M$4:$M$9,LAMBDA(a,IF(a="T",10,0))),MAP(hl,LAMBDA(b,IF(b="C",1,0)))*BYROW(MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("G",a)),5,0))),LAMBDA(row,SUM(row)))+mg*MAP(hl,LAMBDA(b,IF(b="C",-7,0))),MAP(hl,LAMBDA(b,IF(b="C",1,0)))*BYROW(MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("B",a)),2,0))),LAMBDA(row,SUM(row)))+MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("B",a)),1,0)))*MAP(hl,LAMBDA(b,IF(b="C",-4,0)))),LAMBDA(col,SUM(col))))
Dynamic array formulas.


Book1 5-31-2024.xlsx
ABCDEFGHIJKLM
13Answer GivenAnswer Created
14ColinBobSidDaveSherryQuestionColinBobSidDaveSherryTRUE
15GBAMudC
16GBGBGrapesC
17BCJelloT
18BGDYogurtC
19GEMarshmellowsC
20BFLiverC
21
22Total20751
Sheet1
Cell Formulas
RangeFormula
H22:L22H22=LET(ae,$A$15:$E$20,hl,$H$15:$L$20,mg,MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("G",a)),1,0))),BYCOL(VSTACK(mg*MAP($M$15:$M$20,LAMBDA(a,IF(a="T",10,0))),MAP(hl,LAMBDA(b,IF(b="C",1,0)))*BYROW(MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("G",a)),5,0))),LAMBDA(row,SUM(row)))+mg*MAP(hl,LAMBDA(b,IF(b="C",-7,0))),MAP(hl,LAMBDA(b,IF(b="C",1,0)))*BYROW(MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("B",a)),2,0))),LAMBDA(row,SUM(row)))+MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("B",a)),1,0)))*MAP(hl,LAMBDA(b,IF(b="C",-4,0)))),LAMBDA(col,SUM(col))))
Dynamic array formulas.
 
Upvote 0
Solution

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
Okay, here are a couple scenarios, let me know if the points add up as you expect:

Book1 5-31-2024.xlsx
ABCDEFGHIJKLM
1
2Answer GivenAnswer Created
3ColinBobSidDaveSherryQuestionColinBobSidDaveSherryTRUE
4GAMudC
5GBBGrapesC
6BGCJelloT
7BDYogurtC
8GBEMarshmellowsC
9GBFLiverC
10
11Total725717
Sheet1
Cell Formulas
RangeFormula
H11:L11H11=LET(ae,$A$4:$E$9,hl,$H$4:$L$9,mg,MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("G",a)),1,0))),BYCOL(VSTACK(mg*MAP($M$4:$M$9,LAMBDA(a,IF(a="T",10,0))),MAP(hl,LAMBDA(b,IF(b="C",1,0)))*BYROW(MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("G",a)),5,0))),LAMBDA(row,SUM(row)))+mg*MAP(hl,LAMBDA(b,IF(b="C",-7,0))),MAP(hl,LAMBDA(b,IF(b="C",1,0)))*BYROW(MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("B",a)),2,0))),LAMBDA(row,SUM(row)))+MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("B",a)),1,0)))*MAP(hl,LAMBDA(b,IF(b="C",-4,0)))),LAMBDA(col,SUM(col))))
Dynamic array formulas.


Book1 5-31-2024.xlsx
ABCDEFGHIJKLM
13Answer GivenAnswer Created
14ColinBobSidDaveSherryQuestionColinBobSidDaveSherryTRUE
15GBAMudC
16GBGBGrapesC
17BCJelloT
18BGDYogurtC
19GEMarshmellowsC
20BFLiverC
21
22Total20751
Sheet1
Cell Formulas
RangeFormula
H22:L22H22=LET(ae,$A$15:$E$20,hl,$H$15:$L$20,mg,MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("G",a)),1,0))),BYCOL(VSTACK(mg*MAP($M$15:$M$20,LAMBDA(a,IF(a="T",10,0))),MAP(hl,LAMBDA(b,IF(b="C",1,0)))*BYROW(MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("G",a)),5,0))),LAMBDA(row,SUM(row)))+mg*MAP(hl,LAMBDA(b,IF(b="C",-7,0))),MAP(hl,LAMBDA(b,IF(b="C",1,0)))*BYROW(MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("B",a)),2,0))),LAMBDA(row,SUM(row)))+MAP(ae,LAMBDA(a,IF(ISNUMBER(SEARCH("B",a)),1,0)))*MAP(hl,LAMBDA(b,IF(b="C",-4,0)))),LAMBDA(col,SUM(col))))
Dynamic array formulas.
wowsers!! this seems to so the trick perfectly Thanks so much
 
Upvote 0
wowsers!! this seems to so the trick perfectly Thanks so much
You're welcome. It was a fun one to work on, now, if there is a more efficient method to do it, I don't know, but I am sure something better is out there.
 
Upvote 0
wowsers!! this seems to so the trick perfectly Thanks so much

The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,126
Members
453,021
Latest member
Justyna P

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