# Help with Grocery Pricing Crowdsource Concept

**URL:** <https://community.glideapps.com/t/help-with-grocery-pricing-crowdsource-concept/19019>\
**Category:** Ask for Help\
**Created:** [November 27, 2020, 3:58pm UTC](https://community.glideapps.com/t/help-with-grocery-pricing-crowdsource-concept/19019 "2020-11-27T15:58:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saphier](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@saphier](https://community.glideapps.com/u/saphier)\
**Post date:** [November 27, 2020, 3:58pm UTC](https://community.glideapps.com/t/help-with-grocery-pricing-crowdsource-concept/19019/1 "2020-11-27T15:58:26Z")

</div>

Hi all,

Here’s a sample of the proof of concept I’m working on: [https://fuzzy-lumber-7365.glideapp.io/](https://fuzzy-lumber-7365.glideapp.io/)

The idea is simple. I have a list of produce/groceries. I want users, without signing in, to be able to report their prices for each of these items. See the “Apple” entry as an example of how ideally this would work.

Currently, I have two sheets setup:

1. The first sheet lists the grocery item, along with the median, average, max, etc via formulas that identify the column range in the second sheet.
2. The second sheet is just a list of prices, as submitted by users, with grocery items listed in columns instead of rows.

The problem is that I’m a bit stuck on how to make a relation occur in Glide between these two sheets such that users can add a price entry from the summary view of the screen using a button, and ideally without figuring out which entry to type their price into.

Any suggestions would be appreciated 🙂, including a better set up of the sheets!

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 27, 2020, 5:08pm UTC](https://community.glideapps.com/t/help-with-grocery-pricing-crowdsource-concept/19019/2 "2020-11-27T17:08:50Z")

</div>

Have you looked at the Column Value components in the form to pass the selected item through to the form response sheet?

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [November 27, 2020, 5:30pm UTC](https://community.glideapps.com/t/help-with-grocery-pricing-crowdsource-concept/19019/3 "2020-11-27T17:30:11Z")

</div>

You could always do this. The submit button shouldnt be a form but instead a combo action where it just takes the data and adds a row to the prices sheet. And clears the value of a Number inpput entry field.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/a/aaf7437f9b2592a02aa1311f2237f9e3b1813091.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/d/bdee1985025fb7553f438f6412dcbf4febf749b2.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/3/c39afb9f4a6ada32d3014d721130239836df794b.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/d/1d4958225b53eba05c9124c740fbbb259ff1a55f.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/f/9fa1061e5be36b2c0bce6337c676799b5225537b.png)

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [November 27, 2020, 5:33pm UTC](https://community.glideapps.com/t/help-with-grocery-pricing-crowdsource-concept/19019/4 "2020-11-27T17:33:02Z")

</div>

And then build out the combo action to support all item types like this.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/3/13c1f39818373325645c9ad62b65e53487f432fa.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/2/f278c88767aab256f3b77713f2088973923d74cc.png)

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [November 27, 2020, 5:39pm UTC](https://community.glideapps.com/t/help-with-grocery-pricing-crowdsource-concept/19019/5 "2020-11-27T17:39:31Z")

</div>

Also I would change the formulas to prepare for errors, to prevent issues with glide displaying the information.

=if(iserror(max(indirect(B2))),"",max(indirect(B2)))  
=if((iserror(min(indirect(B2))),’’",min(indirect(B2)))  
=if(iserror(median(indirect(B2))),"",median(indirect(B2)))  
=if(iserror(MODE(indirect(B2))),"",MODE(indirect(B2)))  
=if(iserror(AVERAGE(indirect(B2))),"",AVERAGE(indirect(B2)))  
or replace the blank("") with a Zero if you’d like.
