+ Reply to Thread
Results 1 to 3 of 3

CALC Error within LAMBDA

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    772

    CALC Error within LAMBDA

    Hello, can someone explain or point me in the direction of information ;

    I have a Lambda formula to sum the count of cat or dog for each row;

    Please Login or Register  to view this content.
    that will spill the sum for cat and the sum of count for dog, but if i remove the SUM part I just get a CALC error,
    i could understand it not working at all, but find this difficult, I have had a few similar with lambda and vistack where there is an error until wrapped in sum,

    as it turned out it was not the right approach anyway and I needed; REDUCE;

    =
    Please Login or Register  to view this content.
    as said i'm just interested in why the error occurs until wrapped in SUM, I have attached the work book with examples.

    Richard.
    Attached Files Attached Files

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: CALC Error within LAMBDA

    SEARCH is returning an array of values, therefore so is ISNUMBER. Scan will only allow one result per iteration, so you need SUM to aggregate the array into a single value.
    If you're using BYROW anyway, you can simply use something like COUNTIF:

    =BYROW( B4:F10, LAMBDA(A,SUM(COUNTIF(A,"*"&{"cat","dog"}&"*"))>0 ))
    Last edited by romperstomper; 07-25-2024 at 05:02 AM.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    772

    Re: CALC Error within LAMBDA

    Thanks, that makes perfect sense. I'll have a play around with your suggestion.

    Richard.

+ 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. [SOLVED] Error (BYROW, LAMBDA, INDEX)
    By Mxmaarten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-01-2024, 10:49 AM
  2. [SOLVED] BYROW(...LAMBDA(...) ) result in #CALC! error
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-18-2022, 07:17 AM
  3. Getting #CALC! error from using FILTER function
    By mikehk in forum Excel General
    Replies: 1
    Last Post: 11-28-2020, 10:26 PM
  4. Faculty calc error...
    By danielronnstam in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2014, 03:45 PM
  5. Excel Calc Error : 14 <> .14*100 ?!?!
    By neon_e in forum Excel General
    Replies: 1
    Last Post: 08-14-2007, 07:07 PM
  6. [SOLVED] Calc error
    By Michel Finschi in forum Excel General
    Replies: 2
    Last Post: 01-07-2006, 12:25 PM

Tags for this Thread

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