Forum Discussion

Bonnie107's avatar
Bonnie107
Copper Contributor
Dec 29, 2023
Solved

#Spill! Error

Good afternoon,

I'm using =INDIRECT data validation to pull Name, Phone, and Email from a list of 42 Departments. Once I select the Department, the Name, Phone, and Email automatically populate as shown in the sample below. This is working perfectly for 39 Departments, however, three of the Departments give me a #SPILL! error. I've looked through all the spill error corrections and none of them apply. I have re-typed the entries, reformatted the lists, moved the lists around, and no matter what I do I still get the same error for those three Departments. Thanks for any thoughts you might have.

 

 

 

 

  • Bonnie107 Based on the information you've shared thus far, the setup seems a bit questionable to me. I'm not sure why you've used =INDIRECT(C62) to create a data validation picklist for cell C63 when the same formula has already been input directly in cell C63. Moreover, the table you've shared suggests there is only one VFC contact per department. As such, the XLOOKUP function could probably be used instead of INDIRECT to eliminate the need for creating 40+ named ranges. Please see the attached workbook for an example of how this could be setup...

     

    Note: I was unable to duplicate the #SPILL! error using the INDIRECT method in the attached workbook. If you wish to pursue a solution to this method, please provide a screenshot of the Name Manager window, including the Name, Value, Refers To, and Scope columns for the three defined names in question. Kind regards.

8 Replies

  • djclements's avatar
    djclements
    Silver Contributor

    Bonnie107 Based on the information you've shared thus far, the setup seems a bit questionable to me. I'm not sure why you've used =INDIRECT(C62) to create a data validation picklist for cell C63 when the same formula has already been input directly in cell C63. Moreover, the table you've shared suggests there is only one VFC contact per department. As such, the XLOOKUP function could probably be used instead of INDIRECT to eliminate the need for creating 40+ named ranges. Please see the attached workbook for an example of how this could be setup...

     

    Note: I was unable to duplicate the #SPILL! error using the INDIRECT method in the attached workbook. If you wish to pursue a solution to this method, please provide a screenshot of the Name Manager window, including the Name, Value, Refers To, and Scope columns for the three defined names in question. Kind regards.

  • mathetes's avatar
    mathetes
    Gold Contributor

    Bonnie107 

     

    Since  you seem to have anonymized the names in this file already, it is possible for you to post the actual spreadsheet so we can take a look at it? Post it on OneDrive or GoogleDrive with a link here that grants access to it.

     

    Having said that, I've never seen INDIRECT used within a data validation dialogue as you're showing it, as a way to retrieve data based on a separate entry. That doesn't mean it's invalid--and obviously it is working for some situations, but that's why seeing the actual would be helpful.

    • Bonnie107's avatar
      Bonnie107
      Copper Contributor
      As a state government agency we're not allowed to use GoogleDrive, and our OneDrive requires a valid email address for sharing with another user. I could also email it, if that's possible.

Resources