# Merging two values to a lookup

**URL:** https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891
**Category:** Ask for Help
**Created:** [September 16, 2020, 3:01pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891 "2020-09-16T15:01:31Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 16, 2020, 3:01pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/1 "2020-09-16T15:01:31Z")

</div>

Hello everyone,  
I need to take 2 values among 4 columns and merge them or find another way to make a single value from them, and relate to another column. Then, I need to Lookup values based on this relation, but is not working how I minded. My idea, was to make a template and replace the variables, so with this merged value, my relation could link the columns that I want.  
Unfortunately, the IF THEN ELSE don’t have a “AND” possibility, otherwise I think this could solve this.  
Anyone can help me on this one?

TASK:  
Relate the 2 values of this 4 columns with one another column with merged possibles results, then lookup for other values on that row.

This is what I’ve tried:  
TEMPLATE \> REL \> LOOKUP

 ![Captura de Tela (588)_LI](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/1569aa63d30c15f965f3b506b6c4eee4e81c2a7d.jpeg)

I want to relate with this column and lookup their respective values

 ![Captura de Tela (590)_LI](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/e/e910feb6b7037b0280a09c5a39c1487a5265a8bc.jpeg)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 16, 2020, 4:53pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/2 "2020-09-16T16:53:40Z")

</div>

Why do you need that “Hip Final” column may I ask?

---

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 16, 2020, 5:03pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/3 "2020-09-16T17:03:44Z")

</div>

I was trying to create a relation column, so I made this “hip final” to match the original column.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 16, 2020, 5:19pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/4 "2020-09-16T17:19:55Z")

</div>

Why don’t you use the template column on the left of that?

---

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 16, 2020, 5:23pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/5 "2020-09-16T17:23:39Z")

</div>

I don’t know how to make a template column a relation column too, cause this template is merging my variables, then I need to take this merged value and relate to other column, i don’t know how to do with just one template column

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 16, 2020, 5:24pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/6 "2020-09-16T17:24:33Z")

</div>

Can you try using that template column as the source for your relation to see if anything  
comes up?

---

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 16, 2020, 5:35pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/7 "2020-09-16T17:35:12Z")

</div>

Nothing happened, unfortunately. I guess this issue is somehow related to the template format, when one value becomes empty, this should interfere with the relation match, just wondering. I’m a beginner.  
Using template source:

 ![Captura de Tela (592)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/1ca66464740ada60447d29c30e26a4ab59561c32.png)  
Template format:  
 ![Captura de Tela (593)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/0/0e34fb45fe0877393da1ce46f559cea4c999ea07.png)

---

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 16, 2020, 5:42pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/8 "2020-09-16T17:42:48Z")

</div>

I’ve made this example with simple letters to show the whole idea:

I have 4 columns with possible results, the user must pick 2 options, so two columns will become empty and two will be filled:

 ![Captura de Tela (594)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/5/5eadd853d0faa2d5ec9a264d7e242fe0a086b5a7.png)  
Then, depending on this combination I will use a value

 ![Captura de Tela (595)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/7/712393e35040a60c0e3f39183e140e854ab5451f.png)

At Glide:

 ![Captura de Tela (596)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/ca0ecd37aee6a27287fbea573da8bc4f560cd00f.png) ![Captura de Tela (597)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/1995fd93b14b880f5d35afd3dfb068432c5a6420.png)

The issue is when I make the relation columns, It’s not matching at all

---

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 16, 2020, 7:23pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/9 "2020-09-16T19:23:26Z")

</div>

@Robert_Petitto Could you give me an idea on how to solve this?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 16, 2020, 10:10pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/10 "2020-09-16T22:10:10Z")

</div>

So are you using the merged value column to relate back to the hypothesis column? Are you sure you do not accidentally have any spaces in there?

---

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 16, 2020, 10:38pm UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/11 "2020-09-16T22:38:49Z")

</div>

I gonna check it

---

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 17, 2020, 4:21am UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/12 "2020-09-17T04:21:22Z")

</div>

There’s no spaces at all. I believe there’s a bug or is a clever way to do this that I don’t figure out. ☹  
Thanks for trying to help

---

<div class="post-metadata">

### Author: ![Bruno\_Sia](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bruno_sia/32/12576_2.png) [@Bruno\_Sia](https://community.glideapps.com/u/Bruno_Sia)
#### Post date: [September 17, 2020, 4:37am UTC](https://community.glideapps.com/t/merging-two-values-to-a-lookup/15891/13 "2020-09-17T04:37:04Z")

</div>

Finally got it. I changed the name of cells to a simple letter and now it worked. Thanks anyway in be interested. So, the template can merge values to a lookup, probably an “and” statement inside I-T-E, would save a bunch of time.
