# Fixed value in calculated cell at Submit

**URL:** <https://community.glideapps.com/t/fixed-value-in-calculated-cell-at-submit/62365>\
**Category:** Ask for Help\
**Created:** [June 1, 2023, 9:05pm UTC](https://community.glideapps.com/t/fixed-value-in-calculated-cell-at-submit/62365 "2023-06-01T21:05:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spiro](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/spiro/32/57073_2.png) [@Spiro](https://community.glideapps.com/u/Spiro)\
**Post date:** [June 1, 2023, 9:05pm UTC](https://community.glideapps.com/t/fixed-value-in-calculated-cell-at-submit/62365/1 "2023-06-01T21:05:37Z")

</div>

Hi,

So I have this situation:

Sheet2\_colC = Sheet2\_colA \* Sheet2\_colB  
Sheet2\_colA → input using app  
Sheet2\_colB = google sheets array {Sheet1\_B2 + Sheet1\_B3 + Sheet1\_B4}

I have a form for input to Sheet2\_colA. Everything else is automatically calculated using google sheets array formula. However, Sheet1\_B2-B4 data is sometimes changed (not very often), so previous values for Sheet2\_colC change, and I would like them to be fixed once Sheet2\_colA is input.  
What I would like to do is have value for Sheet2\_colB be automatically collected based on a formula during Submit. That value would then remain fixed and there would be no array formula for Sheet2\_colB.

Does this make sense? Maybe there is some other way of doing this?

---

<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:** [June 1, 2023, 10:02pm UTC](https://community.glideapps.com/t/fixed-value-in-calculated-cell-at-submit/62365/2 "2023-06-01T22:02:23Z")

</div>

It sounds like you could do that in Glide with a math column. Simply put what is your goal?

---

<div class="post-metadata">

**Author:** ![Spiro](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/spiro/32/57073_2.png) [@Spiro](https://community.glideapps.com/u/Spiro)\
**Post date:** [June 2, 2023, 9:47am UTC](https://community.glideapps.com/t/fixed-value-in-calculated-cell-at-submit/62365/3 "2023-06-02T09:47:36Z")

</div>

If I use 3 “single value” columns to get cells Sheet1\_B1-B3 and then use “Math column” to get Sheet2\_colB and another to get Sheet2\_colC I will get the correct result, **BUT** those values will change if I change Sheet1\_B1-B3.  
What I want is to have a sort of snapshot of values from Sheet1\_B1-B3 so that when Sheet2\_colC is calculated it **NEVER** changes, regardless of what I do with other cells.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [June 2, 2023, 9:56am UTC](https://community.glideapps.com/t/fixed-value-in-calculated-cell-at-submit/62365/4 "2023-06-02T09:56:07Z")

</div>

Sounds like a Custom Form might be the way forward here.  
If you use a Custom Form, you can pre-calculate those values _before_ the form is submitted, and then write them as static values (and trash your spreadsheet formulas).

---

<div class="post-metadata">

**Author:** ![Spiro](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/spiro/32/57073_2.png) [@Spiro](https://community.glideapps.com/u/Spiro)\
**Post date:** [June 2, 2023, 9:58am UTC](https://community.glideapps.com/t/fixed-value-in-calculated-cell-at-submit/62365/5 "2023-06-02T09:58:21Z")

</div>

I made a simple example: [Glide sheets example](https://docs.google.com/spreadsheets/d/1uXVLcEkjnSEjB92kvzPoYsnJTIzO_Y0h3YtdtXWX1uA/edit?usp=sharing)  
Ideally Column B would NOT be an array formula but calculated on Submit and then “fixed” regardless of Cells in Sheet1.

@Darren_Murphy  
Tnx, do you have any links/hints on how to do Custom Form?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [June 2, 2023, 10:02am UTC](https://community.glideapps.com/t/fixed-value-in-calculated-cell-at-submit/62365/6 "2023-06-02T10:02:35Z")

</div>

The sample App in the post below is very old, but the general concept remains the same.

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…
