+ Reply to Thread
Results 1 to 18 of 18

Help with a array formula to output results

  1. #1
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Help with a array formula to output results

    Hello

    I have seen experts on this site use advanced functions/formulas to spill data. I have a table in (A1:D12) and I would like if possible with one formula to output the results (as shown in attached example) G1 and J1.

    Thanks
    Attached Files Attached Files
    Last edited by KenV15; 03-27-2024 at 10:55 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Help with a array formula to output results

    this will give you the names in col G... =UNIQUE(FILTER(A2:A12,(D2:D12="COMPLETE")))
    this countifs will give you the numbers in col H... =COUNTIFS($D$2:$D$12,"complete",$A$2:$A$12,G2)

    not sure about doing it with one formula. as for what is in J and K, you might have to define what the hours are for days and afternoon.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Help with a array formula to output results

    For G1:

    =LET(rng,A2:A12,u,UNIQUE(rng),c,COUNTIFS(D2:D12,"Complete",rng,u),SORT(HSTACK(u,c),2,-1))

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Help with a array formula to output results

    Clear out K2:K4 and in K2, try:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Help with a array formula to output results

    An unique formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And a new formula for column D
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Re: Help with a array formula to output results

    WOW! Thank you both for your help

    @Gregb11 Is it possible to include J2:J4 in your formula so I can place the formula in J1?

  7. #7
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Re: Help with a array formula to output results

    And thank you DJunqueria You guys are amazing!

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Help with a array formula to output results

    Is it possible to include J2:J4 in your formula so I can place the formula in J1?
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Re: Help with a array formula to output results

    @DJunqueira I noticed with your formula in column D if you enter just an employee name with no start or end times the status shows complete. Is there a way to modify your formula to stop this from happening?

    I was able to modify your formula with this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by KenV15; 03-27-2024 at 10:48 PM.

  10. #10
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Help with a array formula to output results

    if you enter just an employee name with no start or end times the status shows complete. Is there a way to modify your formula to stop this from happening?
    One way:

    =IFS($A2:$A12&$B2:$B12&$C2:$C12="","",($A2:$A12<>"")*(($B2:$B12="")+($C2:$C12="")),"IN PROGRESS",TRUE,"COMPLETE")
    Last edited by Gregb11; 03-27-2024 at 10:41 PM.

  11. #11
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Re: Help with a array formula to output results

    Thx greg11

  12. #12
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Re: Help with a array formula to output results

    Amazing Gregb11
    Thank you

  13. #13
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Help with a array formula to output results

    You're welcome and thanks for the reps!

  14. #14
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Help with a array formula to output results

    This could work also.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  15. #15
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Help with a array formula to output results

    Tks for the feedback, glad to also help.

  16. #16
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Help with a array formula to output results

    Another way,
    G2=LET(x,A2:A12,SORT(HSTACK(UNIQUE(x),COUNTIFS(x,UNIQUE(x),D2:D12,"COMPLETE")),2,-1))
    J2=LET(x,SUM(ISNUMBER(MATCH(A2:A12,M3:M5,0))*(D2:D12="COMPLETE")),y,COUNTIF(D2:D12,"COMPLETE"),HSTACK(TEXTSPLIT({"Days";"Afternoon";"Total"},,";"),VSTACK(x,y-x,y)))

  17. #17
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Re: Help with a array formula to output results

    @ josephteh thx

  18. #18
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Help with a array formula to output results

    You are welcome, and thanks for the Rep!

+ 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] Trying to reference an array within a formula to output corresponding value
    By CVDom in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-16-2024, 11:05 AM
  2. [SOLVED] Combine two cell formula output results in a desired format
    By TINHAMMER in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-28-2021, 05:35 PM
  3. Compare values and output cell titles, able to output multiple results
    By TMG2016 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-07-2016, 11:42 AM
  4. [SOLVED] Array to embed formula and if number of output is met output Blank
    By ywang in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-29-2015, 02:34 AM
  5. Replies: 6
    Last Post: 05-26-2012, 04:56 AM
  6. convert array formula output to string
    By MCCCLXXXV in forum Excel General
    Replies: 2
    Last Post: 07-07-2011, 11:57 AM
  7. customise array formula output
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 0
    Last Post: 10-25-2005, 01:05 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