# Adding score for each question

**URL:** <https://forum.getodk.org/t/adding-score-for-each-question/3652>\
**Category:** Support\
**Created:** [September 21, 2014, 9:06am UTC](https://forum.getodk.org/t/adding-score-for-each-question/3652 "2014-09-21T09:06:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hossam\_Khalili985](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@Hossam\_Khalili985](https://forum.getodk.org/u/Hossam_Khalili985)\
**Post date:** [September 21, 2014, 9:06am UTC](https://forum.getodk.org/t/adding-score-for-each-question/3652/1 "2014-09-21T09:06:46Z")

</div>

Hello everyone,

I'm looking now to update my excel sheet file that i used to create XML file by adding mark for each question and the last column will be the total marks .  
is that possible???

many thanks.

Hossam.

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [September 22, 2014, 5:43pm UTC](https://forum.getodk.org/t/adding-score-for-each-question/3652/2 "2014-09-22T17:43:12Z")

</div>

Hossam,

Yes. If the questions are integer prompts (e.g., 1 and 0), you can  
sum(${prompt\_name}) to get the sum of the repeats so far.

If they are note integer prompts, you can use this trick that Chris  
outlines at [https://groups.google.com/d/msg/opendatakit/\_O6Rjj2ymgo/4\_8oPl4AAgIJ](https://groups.google.com/d/msg/opendatakit/_O6Rjj2ymgo/4_8oPl4AAgIJ).

Yaw

> **···**
>
> -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.
> 
> On Sun, Sep 21, 2014 at 2:06 AM, [hossam.khalili985@gmail.com](mailto:hossam.khalili985@gmail.com) wrote:
> 
> > Hello everyone,
> > 
> > I'm looking now to update my excel sheet file that i used to create XML file by adding mark for each question and the last column will be the total marks .  
> > is that possible???
> > 
> > many thanks.
> > 
> > Hossam.
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
> > 
> > * * *
> > 
> > You received this message because you are subscribed to the Google Groups "ODK Community" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
