# Multiplying table cell values

**URL:** <https://cl.desmos.com/t/multiplying-table-cell-values/4261>\
**Category:** Questions\
**Created:** [May 2, 2022, 9:58pm UTC](https://cl.desmos.com/t/multiplying-table-cell-values/4261 "2022-05-02T21:58:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Malbouef](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/andy_malbouef/32/3345_2.png) [@Andy\_Malbouef](https://cl.desmos.com/u/Andy_Malbouef)\
**Post date:** [May 2, 2022, 9:58pm UTC](https://cl.desmos.com/t/multiplying-table-cell-values/4261/1 "2022-05-02T21:58:23Z")

</div>

@Daniel_Grubbs Hey, Daniel: wondering if you could help with this. I’m creating a Powerball probability activity in which the students calculate the expected value of a ticket. On my screen #10, I can’t get the values from column 2 to multiply by column 3 and populate in column 4. Can you help with this slide?

> **[Powerball • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/625ea0ff2a110505218429f6)**
>
> by Andy Malbouef

---

<div class="post-metadata">

**Author:** ![pirsquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pirsquared](https://cl.desmos.com/u/pirsquared)\
**Post date:** [May 2, 2022, 10:06pm UTC](https://cl.desmos.com/t/multiplying-table-cell-values/4261/2 "2022-05-02T22:06:19Z")

</div>

You can’t just evaluate directly, unfortunately - you need to use `numericValue` or similar.

For example,

```auto
exV1 = numericValue(`${this.cellContent(1,2)}*${this.cellContent(1,3)}`)

```

(you also see I’ve wrapped the variables in ${ }, otherwise it won’t recognise them).

Finally, for the cellContent itself, you have to also wrap this in a string/latex too:

```auto
cellContent(1,4): "${exV1}"

```

All should work correctly with those changes.

---

<div class="post-metadata">

**Author:** ![Andy\_Malbouef](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/andy_malbouef/32/3345_2.png) [@Andy\_Malbouef](https://cl.desmos.com/u/Andy_Malbouef)\
**Post date:** [May 2, 2022, 10:09pm UTC](https://cl.desmos.com/t/multiplying-table-cell-values/4261/3 "2022-05-02T22:09:02Z")

</div>

Works great now. Thanks so much!
