+ Reply to Thread
Results 1 to 9 of 9

LET function not producing a spill range

  1. #1
    Registered User
    Join Date
    09-10-2007
    Location
    Texas, USA
    MS-Off Ver
    Office 365 (2016)
    Posts
    95

    LET function not producing a spill range

    Can someone tell me why my formula in G4 (attached spreadsheet) is not working?

    I have two Dynamic Array spill columns (E4# & F4#) and I want a third spill column (G4#) performing the following calculation:
    IF
    (F4# previous row)>=2.5 OR (F4# current row)>=2.5 OR (F4# next row)>=2.5 OR ((E4# previous row)-(E4# current row))<$E$1
    THEN (G4# previous row)
    ELSE (G4# previous row) +1

    It doesn't seem that I can do an IF/OR in this scenario, so I used nested IFs instead, but it still doesn't seem to work.
    Attached Files Attached Files

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

    Re: LET function not producing a spill range

    You have a circular reference, this part
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    should be -1,0 not -1,1

  3. #3
    Registered User
    Join Date
    09-10-2007
    Location
    Texas, USA
    MS-Off Ver
    Office 365 (2016)
    Posts
    95

    Re: LET function not producing a spill range

    Thank you Fluff13
    is there any way to get the previous cell in this case? without a helper column?

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

    Re: LET function not producing a spill range

    I miss-understood what your formula was doing. I don't think you can do it without a helper column, otherwise you get a circular reference.

  5. #5
    Registered User
    Join Date
    09-10-2007
    Location
    Texas, USA
    MS-Off Ver
    Office 365 (2016)
    Posts
    95

    Re: LET function not producing a spill range

    Can you offer any help with the helper column for my previous post example?

    Or maybe i can figure it out if you can tell me why this doesn't work and how to make it work.
    =COUNT(INDIRECT("R7C"&COLUMN(GS7#)&":R"&ROW(GS7#)&"C"&COLUMN(GS7#),FALSE))

    For another data set, I am doing a similar calculation as my first post example. for this one I went ahead and added a helper column (GS7#). in the helper: IF criteria is met, THEN 1, ELSE ""
    then I figured in my final column (GT) I would do a count on a range from the first cell in GS7# to the active cell in GS7#. should end up looking like table below, but it doesnt work with my dynamic row reference.
    criteria GS GT
    R7 true 1 1
    R8 1
    R9 true 1 2
    R10 2
    R11 2
    R12 true 1 3
    R13 true 1 4
    R14 4
    R15 4
    Last edited by Coley356; 11-10-2021 at 03:27 PM.

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

    Re: LET function not producing a spill range

    I'm afraid I have no idea how to do this within a spill range.

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

    Re: LET function not producing a spill range

    On further reflection, you could use something like
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-10-2007
    Location
    Texas, USA
    MS-Off Ver
    Office 365 (2016)
    Posts
    95

    Re: LET function not producing a spill range

    I could not seem to get =SUBTOTAL(9,OFFSET(G4#,0,0,SEQUENCE(ROWS(G4#)))) to work so I ended up using a workaround.

    Thanks again for all your help.

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

    Re: LET function not producing a spill range

    Glad you sorted it & thanks for the feedback.

+ 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] Spill Range Across Rows and Columns
    By dluhut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2021, 09:20 AM
  2. [SOLVED] #spill! error using Filter function
    By Svey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2021, 03:50 PM
  3. [SOLVED] Removing #spill! and then #N/A from the range
    By homa5424 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-01-2021, 07:01 AM
  4. Replies: 5
    Last Post: 01-27-2021, 12:07 PM
  5. [SOLVED] Using the =IF function is ok on single cell but gives#SPILL on a range
    By Brian Mc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2020, 05:37 PM
  6. [SOLVED] sumif producing SPILL error
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2019, 10:44 AM
  7. UDF For spill range(implicit intersection)
    By daboho in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-28-2019, 08:22 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