+ Reply to Thread
Results 1 to 8 of 8

Sum array with #VALUE!

  1. #1
    Registered User
    Join Date
    08-14-2017
    Location
    Brazil
    MS-Off Ver
    2007
    Posts
    10

    Sum array with #VALUE!

    Hi!
    I have to look for specific words inside a text-cell (in the column N) and signal "Yes" if I find any of them.
    To do so I used this formula:
    =IF(SUM(IFERROR(FIND({"bati";"bateu";"bater";"queimei";"queimou";"queimar";"caiu";"caí";"cai";"cair";"tombei";"tombou";"tombar";"machuquei";"machucou";"machucar"};N:N;1);0))=0;"No";"Yes")

    It works for the first word in the array ("bati"), but not for the rest of them, is there any way it can work?

    Thanks.
    Last edited by danici; 09-21-2017 at 01:09 PM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Sum array with #VALUE!

    =IF(SUM(IFERROR(MATCH("*"&{"bati","bateu","bater","queimei","queimou","queimar","caiu","cai","cai","cair","tombei","tombou","tombar","machuquei","machucou","machucar"}&"*",N:N,),))=0,"No","Yes")

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum array with #VALUE!

    Try something like this

    =IF(SUMPRODUCT(--ISNUMBER(SEARCH({"bati";"bateu";"bater";"queimei";"queimou";"queimar";"caiu";"caí";"cai";"cair";"tombei";"tombou";"tombar";"machuquei";"machucou";"machucar"};N1:N100)))>0;"Yes";"No")

    Adjusting your range (N1:N100) as necessary.

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Sum array with #VALUE!

    Quote Originally Posted by 63falcondude View Post
    Try something like this
    not with this array
    Attached Files Attached Files

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum array with #VALUE!

    Tim, I'm not sure what you're trying to say. The formula posted in post #3 returns "Yes" if any of the words in the array are found in column N.

    Note that I changed the commas to semicolons due to the OP's regional settings.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Sum array with #VALUE!

    Hi,

    Are you searching one cell, or trying to return YES if any of those words is found anywhere in column N?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  7. #7
    Registered User
    Join Date
    08-14-2017
    Location
    Brazil
    MS-Off Ver
    2007
    Posts
    10

    Re: Sum array with #VALUE!

    Thanks, it worked!
    what is the purpose of the "--" before the ISNUMBER?

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sum array with #VALUE!

    Great, happy to help.

    ISNUMBER will return TRUE or FALSE. The double unary (--) changes TRUE into 1 and FALSE into 0.

    If that solved your question, please mark this thread as SOLVED.

+ 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: 4
    Last Post: 04-25-2017, 11:01 AM
  2. [SOLVED] Array formulae with different sized array, e.g. array-if() or somproduct-if()?
    By hlhans in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2016, 03:59 PM
  3. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  4. [SOLVED] Populate one array from another array and print new array as a range
    By Kaden265 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2014, 07:52 AM
  5. Loop new messages containing a table, populate a dynamic array, paste array to Excel
    By laripa in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2013, 07:20 AM
  6. [SOLVED] Quick Array question - Copy array to another array then resize?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-02-2013, 01:17 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