+ Reply to Thread
Results 1 to 7 of 7

Using UNIQUE function with table ranges, cant avoid #SPILL! error

  1. #1
    Registered User
    Join Date
    03-13-2012
    Location
    Burlington Ontario
    MS-Off Ver
    Excel 2010
    Posts
    51

    Using UNIQUE function with table ranges, cant avoid #SPILL! error

    I'm trying to use the UNIQUE function to generate my list of unique vales.

    =UNIQUE(Query1[Work Order],FALSE,FALSE)
    =UNIQUE(QueryVisual!U2:U1110,FALSE,FALSE)

    Both of these return #SPILL! errors. Clearly I am not understanding the spill error.
    Last edited by Lacaycer; 12-22-2020 at 09:37 AM. Reason: #SPILL! and tables dont go together.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: Using UNIQUE function with table ranges, cant avoid #SPILL! error

    Are you putting the formula into a structured table?

  3. #3
    Registered User
    Join Date
    03-13-2012
    Location
    Burlington Ontario
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: Using UNIQUE function with table ranges, cant avoid #SPILL! error

    I was, I think I've given up on that.
    I entered the same original formula in outside of the table and it worked without the #SPILL error.

    It would be nice if I could use UNIQUE within a table just to clean up all future refencing

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: Using UNIQUE function with table ranges, cant avoid #SPILL! error

    Unfortunately Spilled arrays are not allowed in Tables, which is why you got the error.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Using UNIQUE function with table ranges, cant avoid #SPILL! error

    Please try

    =INDEX(UNIQUE(Query1[Work Order]),ROW(Table1[@])-ROW(Table1[#Headers]))

  6. #6
    Registered User
    Join Date
    03-13-2012
    Location
    Burlington Ontario
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: Using UNIQUE function with table ranges, cant avoid #SPILL! error

    THere is an error message related to the Table1 ref.

    It's fine now. I just cant use it in a table.

    I'll mark this as solved now

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Using UNIQUE function with table ranges, cant avoid #SPILL! error

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 01-27-2021, 12:07 PM
  2. Replies: 8
    Last Post: 08-29-2020, 09:25 AM
  3. Replies: 3
    Last Post: 08-09-2020, 10:57 AM
  4. Dynamic, Spilled, Named Ranges - how to override SPILL
    By TimB in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-24-2020, 01:53 PM
  5. [SOLVED] Need error handler code to avoid pivot table refreshing error if no data is available
    By adelkam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2015, 12:37 PM
  6. If/Or function to avoid div/o error difficulties
    By Sehnder in forum Excel General
    Replies: 3
    Last Post: 07-23-2009, 09:06 PM
  7. [SOLVED] UDF/VBA Function, trap error, avoid #VALUE!
    By StevensSpam@cfl.rr.com in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2006, 11:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1