# Can't resolve Formula Error: Array argument to IF are of different size

**URL:** <https://community.glideapps.com/t/cant-resolve-formula-error-array-argument-to-if-are-of-different-size/2370>\
**Category:** Ask for Help\
**Created:** [November 25, 2019, 4:27am UTC](https://community.glideapps.com/t/cant-resolve-formula-error-array-argument-to-if-are-of-different-size/2370 "2019-11-25T04:27:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rogelio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rogelio/32/1054_2.png) [@Rogelio](https://community.glideapps.com/u/Rogelio)\
**Post date:** [November 25, 2019, 4:27am UTC](https://community.glideapps.com/t/cant-resolve-formula-error-array-argument-to-if-are-of-different-size/2370/1 "2019-11-25T04:27:14Z")

</div>

I’m sure there is a simple solution to this one, but for some reason I can’t seem to work out the issue.

I’m simply copying all unique values from the `App: Logins` sheet where there are obviously duplicates (multiple logins) and obviously the list size is different.

How can I get rid of the error?

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

---

<div class="post-metadata">

**Author:** ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)\
**Post date:** [November 25, 2019, 4:58am UTC](https://community.glideapps.com/t/cant-resolve-formula-error-array-argument-to-if-are-of-different-size/2370/2 "2019-11-25T04:58:40Z")

</div>

If all you want is the UNIQUE emails then you don’t need the ARRAYFORMULA.  
=UNIQUE(‘App: Logins’!B2:B) . that is it.

---

<div class="post-metadata">

**Author:** ![Rogelio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rogelio/32/1054_2.png) [@Rogelio](https://community.glideapps.com/u/Rogelio)\
**Post date:** [November 25, 2019, 6:33am UTC](https://community.glideapps.com/t/cant-resolve-formula-error-array-argument-to-if-are-of-different-size/2370/3 "2019-11-25T06:33:02Z")

</div>

Thanks George, that got rid of the error
