# pointLabel from multiple sources

**URL:** <https://cl.desmos.com/t/pointlabel-from-multiple-sources/2115>\
**Category:** Questions\
**Created:** [December 7, 2020, 4:49pm UTC](https://cl.desmos.com/t/pointlabel-from-multiple-sources/2115 "2020-12-07T16:49:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charlie\_Cannon](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/charlie_cannon/32/1708_2.png) [@Charlie\_Cannon](https://cl.desmos.com/u/Charlie_Cannon)\
**Post date:** [December 7, 2020, 4:49pm UTC](https://cl.desmos.com/t/pointlabel-from-multiple-sources/2115/1 "2020-12-07T16:49:57Z")

</div>

I am practicing with the intro lesson posted by Desmos.  
There is an activity at the end which asks me to get a nametag in the Graph window to display information based on the contents of two cells in a table.

I have been able to get one or the other cell to correctly apply to the label at A with the following code:

pointLabel(“A”):table3.cellContent(1,1)

I cannot figure out how to pull from two different cells in the table and have them display side by side with the pointLabel command. I could not find the topic that discusses this question so any help would be greatly appreciated. (either answers here or directions to the proper thread.)

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [December 7, 2020, 7:09pm UTC](https://cl.desmos.com/t/pointlabel-from-multiple-sources/2115/2 "2020-12-07T19:09:18Z")

</div>

When you want multiple variables in a string, use quotes and to call each variable within the quotes you have to use ${ }:

```auto
pointLabel(`A`): "(${table3.cellContent(1,1)},${table3.cellContent"})"

```

Notice it also allows you to type whatever text around those variables as well. Many people use this type of thing for feedback in a note, or displaying randomly generated equations, etc.

---

<div class="post-metadata">

**Author:** ![Charlie\_Cannon](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/charlie_cannon/32/1708_2.png) [@Charlie\_Cannon](https://cl.desmos.com/u/Charlie_Cannon)\
**Post date:** [December 8, 2020, 7:29pm UTC](https://cl.desmos.com/t/pointlabel-from-multiple-sources/2115/3 "2020-12-08T19:29:25Z")

</div>

That worked perfectly, thank you. 🙂
