+ Reply to Thread
Results 1 to 11 of 11

When using a formula I get the Spill error

  1. #1
    Forum Contributor
    Join Date
    04-03-2021
    Location
    Zaragoza
    MS-Off Ver
    2102 MICROSOFT 365
    Posts
    153

    When using a formula I get the Spill error

    Hello everybody,


    I would like to use a function to find an exact word in a 1000 rows and 3 columns table. The main problem is that the word is contained in cells which are made of more than once word. For this reason, I believe I have to use a nested function (IF conditional function)
    The idea is to use the function next to the table in each cell and if the cell contains the word “García” it says “True”. The word may be contain in cells in column C (third column). This column only contains text as it is a column with names and last names.


    The problem is that is I use the following function (where C:C is the column containing the word “García” that I want to find) I get the “spill” error as I believe, 1000 rows is a lot for this function.


    =IF(ISNUMBER(SEARCH("García";C:C));"True";"")


    I cannot use Vlookup as “García” is contained among other words in the cells. For this reason, I think I have to use a nested function but not sure which one. What about something similar to this one? Do you know any other ways?


    IF(ISTEXT(Vlookup(“García”;C:C;3;0));”True”;”False”)




    What if the column contained numbers and text, could we still use ISTEXT?


    Thank you

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

    Re: When using a formula I get the Spill error

    Hi & welcome to the board.
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: When using a formula I get the Spill error

    In order to avoid the spill, add SUM to your function.
    The spill appears as your formula produces
    =IF(SUM(--(ISNUMBER(SEARCH("García",C:C)))),"True","")

  4. #4
    Forum Contributor
    Join Date
    04-03-2021
    Location
    Zaragoza
    MS-Off Ver
    2102 MICROSOFT 365
    Posts
    153

    Re: When using a formula I get the Spill error

    Thank you.

    It worked. I have a question, what is * for in Excel?

  5. #5
    Forum Contributor
    Join Date
    04-03-2021
    Location
    Zaragoza
    MS-Off Ver
    2102 MICROSOFT 365
    Posts
    153

    Re: When using a formula I get the Spill error

    Thank you too.

    I think this one is a bit longer than the one above. What´s -- in excel for?

    Thank you

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

    Re: When using a formula I get the Spill error

    I have a question, what is * for in Excel?
    In this instance it's a wildcard meaning anything that contains "Garcia"

  7. #7
    Forum Contributor
    Join Date
    04-03-2021
    Location
    Zaragoza
    MS-Off Ver
    2102 MICROSOFT 365
    Posts
    153

    Re: When using a formula I get the Spill error

    I understand it now. So, you use the asterisk wild card to say to excel there are any characters before and after Garcia. Is the asterisk valid either for letters or numbers or other special characters?

    What about the "--" that Belinda200 used above?

    Thank you

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: When using a formula I get the Spill error

    The double - forces the formula that follows it to return a numerical value.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Forum Contributor
    Join Date
    04-03-2021
    Location
    Zaragoza
    MS-Off Ver
    2102 MICROSOFT 365
    Posts
    153

    Re: When using a formula I get the Spill error

    Hi there,

    It worked using this formula but I did not need to add >0. Not sure why you added. Could you kindly explain it to me?

    Thank you again

  10. #10
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: When using a formula I get the Spill error

    Hi,
    Please upload the file you are looking at.
    see the yellow banner at the top of the page.

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

    Re: When using a formula I get the Spill error

    You said you wanted a True or False result, if you remove the >0 then it will just give you a count rather than True or False

+ 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. Keep Getting #SPILL! Error for my Formula
    By prestonfussell in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-28-2021, 05:49 PM
  2. Replies: 5
    Last Post: 01-27-2021, 12:07 PM
  3. averageif spill error
    By cheesemeister in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2021, 09:38 AM
  4. #spill! error
    By julee.stein in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2020, 10:18 PM
  5. [SOLVED] Spill Error...
    By Tamarissa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-14-2020, 11:31 PM
  6. Spill Error with index match formula
    By Daniel_ISS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-10-2020, 09:36 AM
  7. [SOLVED] sumif producing SPILL error
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2019, 10:44 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