# How can I perform a calculation with data from another sheet

**URL:** https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294
**Category:** Ask for Help
**Created:** [December 23, 2021, 6:09pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294 "2021-12-23T18:09:13Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 6:09pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/1 "2021-12-23T18:09:13Z")

</div>

![totaal](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/b/9b6a3d422d76a0a4cd58ab2c64c74e5f248e9c33.jpeg)

How can i perform this calculation?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [December 23, 2021, 7:20pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/2 "2021-12-23T19:20:50Z")

</div>

use relation and lookup columns to bring values from another sheets, then just math column to calculate

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 7:39pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/3 "2021-12-23T19:39:23Z")

</div>

![Schermafbeelding](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/8/b8be6b14d1420eb15c593913e18bc0070030a3e8.png)

So this i have done. what is wrong???

---

<div class="post-metadata">

### Author: ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)
#### Post date: [December 23, 2021, 7:47pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/4 "2021-12-23T19:47:42Z")

</div>

Add a new ‘lookup’ column to the sheet from this 👆screenshot.

Use your relation ingredient and choose the appropriate column.

Now you should be able to use that new lookup to finish your math template.

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 7:51pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/5 "2021-12-23T19:51:35Z")

</div>

![wel te zien](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/3/43951899ab836fd473155e5e94c662bcd45659c8.png)

You can see them here. But not in the calculation.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [December 23, 2021, 7:58pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/6 "2021-12-23T19:58:44Z")

</div>

add a lookup column for this relation, to get values that you need from that sheet

 ![Screen Shot 2021-12-23 at 3.00.02 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/0/d04532fed9c5c0671f9a3041763033ae1cdf81d0.png)

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 8:08pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/7 "2021-12-23T20:08:32Z")

</div>

![afgeleide](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/0/4059aeadf89083f5dfe7c6d79c30f0b51d5fb39f.png)

 ![uitgewerkt](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/7/27d39cabeddd070798d7ddf088f894a27d4d21b6.png)

I still can’t see them

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [December 23, 2021, 8:13pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/8 "2021-12-23T20:13:45Z")

</div>

Are the source columns are in number format? I see you have a blank cells there… that will format column to the text… make sure to replace blanks with zeros before

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 8:26pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/9 "2021-12-23T20:26:33Z")

</div>

![misspelled](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/c/ecebdf94bf42603f43ef5dd592ec1028f9c58ab8.png)

It said Fuje apple instead of Apple Fuji

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 8:28pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/10 "2021-12-23T20:28:51Z")

</div>

If I make a lookup copy of a number, is this copy automatically also a number?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [December 23, 2021, 8:53pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/11 "2021-12-23T20:53:34Z")

</div>

Only if whole column are numbers… you have empty rows there , that’s why is not converting to numbers, use if empty then zero column before lookup

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 9:12pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/12 "2021-12-23T21:12:06Z")

</div>

now the are filled with numbers

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 9:13pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/13 "2021-12-23T21:13:33Z")

</div>

I’ve cleared the lookup columns and recreated them but it still doesn’t work.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [December 23, 2021, 9:24pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/14 "2021-12-23T21:24:42Z")

</div>

You must be missing something, even if one value in the whole column is not a number…or is empty, it will not convert to numbers… and relation must be set to single

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 9:34pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/15 "2021-12-23T21:34:47Z")

</div>

![uzo meer getallen](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/4/24296d1624bf80607747b93a6af1b7791df1f36b.jpeg)  
 ![hans getallen](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/80709889c79552248a86e7d9d0059098ddfe71a0.png)

In your example I see several numbers in a row. In my example there is only one.  
I checked all columns i tested in googlesheets with .00 and .0 all data changed.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [December 23, 2021, 9:36pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/16 "2021-12-23T21:36:45Z")

</div>

In my sample, i have relation set to multiple, that’s why you see that… but for your case you need single relation

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 9:54pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/18 "2021-12-23T21:54:14Z")

</div>

Uzo is there no other way to get the data on that other sheet?

---

<div class="post-metadata">

### Author: ![Hans\_Op\_het\_Roodt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hans_op_het_roodt/32/36370_2.png) [@Hans\_Op\_het\_Roodt](https://community.glideapps.com/u/Hans_Op_het_Roodt)
#### Post date: [December 23, 2021, 9:56pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/19 "2021-12-23T21:56:21Z")

</div>

I do want to thank you for all the work you’ve done, even though we’re not done yet. But I will hold on until I know the solution.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [December 23, 2021, 10:04pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/20 "2021-12-23T22:04:24Z")

</div>

It has to work… there is no other way to do that in glide, you can copy these columns in Google sheets…  
You can send me a copy of your app to look

 ![Screen Shot 2021-12-23 at 5.14.05 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/7/27851991072853d53d0b6e7ca1696c9e8a4d385f.png)

 ![Screen Shot 2021-12-23 at 5.14.56 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/2/32f3bb4b93a3c6850ecc2ba5455af37312ada59e.png)

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [December 23, 2021, 10:20pm UTC](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294/21 "2021-12-23T22:20:10Z")

</div>

you can copy and analyze this sample:

> **[StructureArt's Project](https://sample11.glideapp.io/)**

[Next page](https://community.glideapps.com/t/how-can-i-perform-a-calculation-with-data-from-another-sheet/36294.md?page=2)
