# Side-by-Side Inline

**URL:** https://community.glideapps.com/t/side-by-side-inline/21176
**Category:** Ask for Help
**Created:** [January 14, 2021, 7:50pm UTC](https://community.glideapps.com/t/side-by-side-inline/21176 "2021-01-14T19:50:28Z")
**Posts on this page:** 1
**Page:** 1

<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: [January 14, 2021, 7:50pm UTC](https://community.glideapps.com/t/side-by-side-inline/21176/1 "2021-01-14T19:50:28Z")

</div>

I recently stumbled across a way to display a side by side inline list and thought I would share.

In my opinion the most aesthetically pleasing layout for this is a `Tiles` view with Tile Shape `3:2` and `x2` per row.

Below we are pulling data from different columns for the right and left sides.

 ![Screen Shot 2021-01-14 at 2.45.18 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/d/4d58f844af8fe08b59b34bde23c12c97b2647b00.jpeg)

I did most of the work in GSheets and it uses a lot of rows so I’d be interested in moving the logic to Glide. Anyways here it goes…

Step 1  
Create a list of duplicate Names (hello row count 🤪)

> **Summary**
>
> `=QUERY({A2:A;A2:A},"select *",1)`

Step 2  
Remove the blanks (Start a new tab and put this `=filter` in Column A)

> **Summary**
>
> `=filter(Sheet1!A:A,not(isblank(Sheet1!A:A)))`

Step 3  
Now that we have a list of duplicate Names we can apply the following logic. (The first time our formula finds a name mark it “Sales” the second time mark it “Commissions”)

> **Summary**
>
> `=ARRAYFORMULA(if(isblank(A2:A),"",if(if(A2:A=A2:A,COUNTIFS(A2:A,A2:A,ROW(A2:A),"<="&ROW(A2:A)),)=1,"Sales","Commissions")))`

Step 4  
Next we use “Sales” & “Commissions” as conditions for a `=vlookup` to make the magic column.

> **Summary**
>
> `=arrayformula(if(B2:B="Sales",VLOOKUP(A2:A,NAMEDRANGE,2,FALSE),if(B2:B="Commissions",VLOOKUP(A2:A,NAMEDRANGE,3,FALSE),"")))`

Step 5  
Finally set filter in glide to Name is \> Screen \> Name and… Voila!
