# \[Solved\] Joining text with a number to use as Airtable column name

**URL:** https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709
**Category:** Questions about Thunkable X
**Tags:** solved, airtable
**Created:** [March 10, 2020, 10:53pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709 "2020-03-10T22:53:13Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![hi1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hi1](https://community.thunkable.com/u/hi1)
#### Post date: [March 10, 2020, 10:53pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/1 "2020-03-10T22:53:13Z")

</div>

I have some columns in my Airtable database. First of them is called “spr1”, the second is called “spr2”, the Nth is called “sprN”.  
I need to access them easily, using one for/while structure. How do I do that? How do I convert a digit to text in Thunkable?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 10, 2020, 11:07pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/2 "2020-03-10T23:07:33Z")

</div>

If x = 1  
Set label 1.text → “choice 1”  
Else  
Set label 1.text → “other choice”

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [March 10, 2020, 11:26pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/3 "2020-03-10T23:26:31Z")

</div>

Do you mean that you need to convert text to a number? I assume in Airtable you have text (e.g. “3”) and want to use it in a block that requires a number as input.

If not, can you explain how you intend to use the text version of the number?

---

<div class="post-metadata">

### Author: ![hi1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hi1](https://community.thunkable.com/u/hi1)
#### Post date: [March 11, 2020, 12:13am UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/4 "2020-03-11T00:13:59Z")

</div>

The columns look like this.

 ![coloane](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/c/dc812c2e1751acbee85ce17e1da6fab0e4742cb0.png)

As you can see, the first column is named “spr1”, the second is called “spr2” and so on.  
If I try to access the cell from the 2nd row, 4th column like this it does not work, as A is not a character.  
So I need to convert variable A, which is a number, to text.  
 ![numerge](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/450124387bedff10dc071223127bdcf7ff0bda54.png)

How do I do that?

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 11, 2020, 1:40am UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/5 "2020-03-11T01:40:32Z")

</div>

does this help?

 ![Screen Shot 2020-03-10 at 9.26.20 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/c/8c117ce272398a70b56b89abfa39a0179c890221.png)

could you rename your airtable columns to better work for you?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [March 11, 2020, 3:26am UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/6 "2020-03-11T03:26:10Z")

</div>

I’m pretty sure you can just join “spr” with the digit 4 and access your column that way. But it sounds like maybe you’ve tried that?

**Edit:** this worked for me with an Airtable column named “spr4”:

![Screen Shot 2020-03-10 at 8.16.43 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/7/f7275cca3dfb4506573ccdbb1531befdee1ad1fe.png)

**Edit #2:** This also worked for me:

![Screen Shot 2020-03-10 at 8.20.22 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c272f0365b982fbd4f59396d0e7017edd2505aa.png)

Sorry, I got confused with your “name” variable and your “A” variable. But the process should work the way I’ve shared.

---

<div class="post-metadata">

### Author: ![hi1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hi1](https://community.thunkable.com/u/hi1)
#### Post date: [March 11, 2020, 1:55pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/7 "2020-03-11T13:55:04Z")

</div>

You’re right. It works, but not for a FOR structure.

If I go through all the columns and try to edit all of them, it only edits the last one.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 11, 2020, 2:31pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/8 "2020-03-11T14:31:08Z")

</div>

Can you post an updated screenshot of what you’re trying?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [March 11, 2020, 2:53pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/9 "2020-03-11T14:53:53Z")

</div>

Yeah, I guess I’d need to see a screenshot, too. I did try this and it worked:

![Screen Shot 2020-03-11 at 7.39.12 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4bab0004502de4b85b152cd7fd6755c1188f8129.png)

![Screen Shot 2020-03-11 at 7.39.20 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/3/13ddfedf11c479ea5650c3801797c7205e016778.png)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 11, 2020, 3:14pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/10 "2020-03-11T15:14:00Z")

</div>

💠

---

<div class="post-metadata">

### Author: ![hi1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hi1](https://community.thunkable.com/u/hi1)
#### Post date: [March 11, 2020, 4:52pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/11 "2020-03-11T16:52:58Z")

</div>

This is what I got

 ![fdfdfddf](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1ba73e004cdd1d042a640f259888c45d310f7c9f.png)  
after running this  
 ![numerge](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/a/8a9f42bc3223c12a8173f072f65284f6c4f691b0.png)

---

<div class="post-metadata">

### Author: ![hi1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hi1](https://community.thunkable.com/u/hi1)
#### Post date: [March 11, 2020, 5:10pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/12 "2020-03-11T17:10:30Z")

</div>

Finally, solved it. The problem was that I had a purple block inside a purple block.  
Thank you everybody for your help and patience!

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [March 11, 2020, 5:30pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/13 "2020-03-11T17:30:52Z")

</div>

> [@hi1](#):
>
> The problem was that I had a purple block inside a purple block.

Would you mind sharing your solution with us @hi1, just for the benefit of future Thunkers.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [March 11, 2020, 6:14pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/14 "2020-03-11T18:14:39Z")

</div>

Glad you figured it out!

I’ve changed the thread name to make it more relevant to the issue.

---

<div class="post-metadata">

### Author: ![hi1](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hi1](https://community.thunkable.com/u/hi1)
#### Post date: [March 11, 2020, 7:02pm UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/15 "2020-03-11T19:02:10Z")

</div>

This is the solution. It worked for me.

 ![dasdsa](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/6015dc43b028b8ce87dead84ea82d917a6383620.png)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:40am UTC](https://community.thunkable.com/t/solved-joining-text-with-a-number-to-use-as-airtable-column-name/508709/16 "2024-11-08T11:40:30Z")

</div>


