# Why Is My If Then Else Column Filling In Every Row

**URL:** <https://community.glideapps.com/t/why-is-my-if-then-else-column-filling-in-every-row/14068>\
**Category:** Ask for Help\
**Created:** [August 16, 2020, 4:11pm UTC](https://community.glideapps.com/t/why-is-my-if-then-else-column-filling-in-every-row/14068 "2020-08-16T16:11:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paris\_Smith](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/paris_smith/32/10164_2.png) [@Paris\_Smith](https://community.glideapps.com/u/Paris_Smith)\
**Post date:** [August 16, 2020, 4:11pm UTC](https://community.glideapps.com/t/why-is-my-if-then-else-column-filling-in-every-row/14068/1 "2020-08-16T16:11:08Z")

</div>

When I create an If Then Else column, even if the condition isn’t true for every row, my data sheet immediately fills in the same answer for each row. I have 3 cases in my If Then Else column. If it helps, the condition I’m using is pulling from the User Profile sheet. I want to use this condition to decide whether or not to display a row in the app. One of my Zapier Zaps takes about 15 minutes to update, so I don’t want row data displayed until my Zap writes to my google sheet (that’s the idea behind creating this column, which I would then use to Filter displayed data in the app).

In my screenshot, you can see the 3 cases and how when I created the 2nd case, the entire column filled in with Silver even though not all of the rows have bought the silver package.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/7/7ce4205cce3b5d38132f31c638da499c55676007.png)

As you can see from screenshot two, items should definitely be able to If Then Else properly, unless I’m missing something.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/4/4c5add25c2fbe8ed3bfd21ac718b04c244e2f071.png)

Thanks in advance for any suggestions!

---

<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:** [August 16, 2020, 4:16pm UTC](https://community.glideapps.com/t/why-is-my-if-then-else-column-filling-in-every-row/14068/2 "2020-08-16T16:16:51Z")

</div>

You are using the Free/Silver/Gold values from the user profile sheet, which will be pulling from your personal user profile row if you are the one signed in. I assume that your personal user profile row has a value in the Silver column, so it will populate the entire column with that value. The way you have it set up, it is not looking at any of the values in each row. Just your single row in the user profile.

---

<div class="post-metadata">

**Author:** ![Paris\_Smith](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/paris_smith/32/10164_2.png) [@Paris\_Smith](https://community.glideapps.com/u/Paris_Smith)\
**Post date:** [August 16, 2020, 8:31pm UTC](https://community.glideapps.com/t/why-is-my-if-then-else-column-filling-in-every-row/14068/3 "2020-08-16T20:31:27Z")

</div>

Hi @Jeff_Hager. To confirm - do I leave this as is and each user who signs in will see the correct data or do I need to change this to a non-user profile related item so that all users see the correct data (and this column is filled with the correct data)?

I’m having trouble tying a few sheets together. The AllBusinesses sheet this column “Display Business?” is on is the main one containing the data for the app. I don’t want a row to display until my Sales sheet has been written to (the one with the 15min delay).

Any idea on how to have Glide look at the Sales sheet, see the new row for a sale, then update the “Display Business” cell for that row/business? Thus far, my options to work with are 1) the ‘purchaser email’ matched up with the ‘business owner email’, plus an option 2) to use a ‘package choice field’ matched up with a field written with the ‘package purchased’.

---

<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:** [August 16, 2020, 8:58pm UTC](https://community.glideapps.com/t/why-is-my-if-then-else-column-filling-in-every-row/14068/4 "2020-08-16T20:58:34Z")

</div>

The value in that column will be different for each user depending on what is in their own row in the user profile sheet.

You can duplicate the App: Sales sheet into a new sheet with a formula like this: `={'App: Sales'!A:Z}`  
Then it will be accessible within Glide. Then you should be able to use a relation to link the email from the user profile sheet to the copied app sales sheet. Then a lookup to get the package from the copied app sales sheet. Now you will have the value in the user profile sheet. You should be able to use this for any filtering or conditions that you need.

---

<div class="post-metadata">

**Author:** ![Paris\_Smith](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/paris_smith/32/10164_2.png) [@Paris\_Smith](https://community.glideapps.com/u/Paris_Smith)\
**Post date:** [August 16, 2020, 11:11pm UTC](https://community.glideapps.com/t/why-is-my-if-then-else-column-filling-in-every-row/14068/5 "2020-08-16T23:11:43Z")

</div>

Thanks, @Jeff_Hager. I already have a Sales sheet which Glide can read from. I think I’ll start a different topic thread for assistance with my issue. I created the fields you mentioned and my row data is still showing before I want it to (my column I’m basing showing the row off of is being filled/True before I want it to be). Thank you for your help, though.
