+ Reply to Thread
Results 1 to 12 of 12

Dynamic Arrays: applying formulas row per row

  1. #1
    Registered User
    Join Date
    01-13-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    7

    Dynamic Arrays: applying formulas row per row

    ExcelQ.jpg

    In image I am creating dynamic arrays in 5 columns going downwards. The logic for black text is per row it works out (manually) what is the minimum of value in column A and B then it publishes if the minimum is in "A" or "not A".

    I would like to have a single formula like red text that uses MIN formula instead of requiring me to manually work it out using IF. However when I pass A3#:B3# to MIN() it returns true only if value is minimum over the entire range.

    How do I do a formula so that I can pass to MIN only the values row per row so it evaluates the same as columns C & D formulas?

    For example this is needed if I had 4 or more columns of random numbers and I wanted to check if the A column was the lowest of them all. With IF it would need very nasty nested statements.
    Attached Files Attached Files
    Last edited by ninjatunez; 01-13-2021 at 09:21 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,326

    Re: Dynamic Arrays: applying formulas row per row

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures. You have it all set out in front of you already, so let's have a sheet, not a picture of one.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    01-13-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    7

    Re: Dynamic Arrays: applying formulas row per row

    Apologies I have added an Excel attachment which I hope explains it fully
    Last edited by ninjatunez; 01-13-2021 at 09:22 AM.

  4. #4
    Registered User
    Join Date
    01-13-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    7

    Re: Dynamic Arrays: applying formulas row per row

    I assume there is no solution - Excel dynamic arrays simply aren't built for use like this!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,326

    Re: Dynamic Arrays: applying formulas row per row

    I didn't really understand your requirement, so I moved on, hoping someone else would pick it up!!

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,309

    Re: Dynamic Arrays: applying formulas row per row

    I'd stick with the IF function, otherwise I think you need something like:

    =IF(SUBTOTAL(5,OFFSET(A6#:B6#,SEQUENCE(COUNTA(A6#))-1,0,1,2))=A6#,"A","not A")

    to get it to evaluate each row individually.
    Anyone who confuses correlation and causation ends up dead.

  7. #7
    Registered User
    Join Date
    01-13-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    7

    Cool Re: Dynamic Arrays: applying formulas row per row

    This is amazing and perfect many many thanks!
    I'll be using this with LAMBDA to make my own set of functions that can apply to dynamic spilled arrays e.g. LMIN, LAVERAGE, LSUM etc.

  8. #8
    Registered User
    Join Date
    01-13-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    7

    Re: Dynamic Arrays: applying formulas row per row

    This is great for MIN, SUM, AVERAGE etc. that SUBTOTAL caters for. However I would like to use logic operators like AND, OR. Would you know how to do these?
    So if A6# and B6# were 2 dynamic columns of TRUE,FALSE how can it evaluate each row individually for AND, OR?

    Many many thanks if you can figure this one out!

  9. #9
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,309

    Re: Dynamic Arrays: applying formulas row per row

    Can you give me a specific example of what you want? That sounds like something you'd use FILTER for instead.

  10. #10
    Registered User
    Join Date
    02-23-2021
    Location
    US
    MS-Off Ver
    365
    Posts
    3

    Re: Dynamic Arrays: applying formulas row per row

    Perhaps I'm late, but does this do what you want? Change ":" to "," in your MIN. =IF(MIN(A6#,B6#)=A6#,"A","not A")

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,309

    Re: Dynamic Arrays: applying formulas row per row

    That has the same problem as the original version - i.e. it only takes the min of all the rows, not on a per row basis.

  12. #12
    Registered User
    Join Date
    02-23-2021
    Location
    US
    MS-Off Ver
    365
    Posts
    3

    Re: Dynamic Arrays: applying formulas row per row

    Ahh, reading comprehension fail on my part, thanks!

+ 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. Dynamic Arrays, Dynamic Drop down list, Filters and multiple rows
    By Big_Kev007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2020, 06:35 AM
  2. [SOLVED] Need help with applying conditional formulas!
    By hawaean in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-09-2016, 06:12 PM
  3. [SOLVED] Applying Excel functions to arrays
    By JYTS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2015, 01:23 AM
  4. [SOLVED] Applying a formula to a dynamic range
    By willist in forum Excel General
    Replies: 11
    Last Post: 07-24-2012, 09:56 AM
  5. Applying formula to dynamic range.
    By willist in forum Excel General
    Replies: 2
    Last Post: 07-23-2012, 03:47 PM
  6. Dynamic Arrays
    By chaz in forum Excel General
    Replies: 1
    Last Post: 05-22-2006, 07:50 PM
  7. Dynamic Arrays
    By Chiba in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 12:05 PM

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