+ Reply to Thread
Results 1 to 8 of 8

Array Formula

  1. #1
    Registered User
    Join Date
    12-29-2021
    Location
    Lancaster, PA
    MS-Off Ver
    Microsoft 365 MSO (Version 2201 Build 16.0.14827.20198) 64-bit
    Posts
    46

    Array Formula

    Create a list of tickets in excel based on a number value in a specific column. My Ticket numbers are in B13:B5000. Name is C13:C5000. Phone number is D13:D5000. Number of tickets is in G13:G5000. Here is my formula I am pasting into another sheet:

    =LET(
    tk, FILTER('Raffle Entries'!B13:B5000, (ISNUMBER('Raffle Entries'!G13:G5000)) * ('Raffle Entries'!G13:G5000 > 0)),
    nm, FILTER('Raffle Entries'!C13:C5000, (ISNUMBER('Raffle Entries'!G13:G5000)) * ('Raffle Entries'!G13:G5000 > 0)),
    ph, FILTER('Raffle Entries'!D13:D5000, (ISNUMBER('Raffle Entries'!G13:G5000)) * ('Raffle Entries'!G13:G5000 > 0)),
    qt, FILTER('Raffle Entries'!G13:G5000, (ISNUMBER('Raffle Entries'!G13:G5000)) * ('Raffle Entries'!G13:G5000 > 0)),

    combineRows, LAMBDA(a, i,
    LET(
    t, INDEX(tk, i),
    n, INDEX(nm, i),
    p, INDEX(ph, i),
    q, INDEX(qt, i),
    repeated, HSTACK(
    SEQUENCE(q,,t),
    SEQUENCE(q,,n),
    SEQUENCE(q,,p)
    ),
    VSTACK(a, repeated)
    )
    ),

    REDUCE({"Ticket #","Name","Phone"}, SEQUENCE(ROWS(tk)), combineRows)
    )


    This is returning a #VALUE error.

    WHY?
    Attached Files Attached Files

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

    Re: Array Formula

    Not sure what you are trying to do, but is this what you want
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-29-2021
    Location
    Lancaster, PA
    MS-Off Ver
    Microsoft 365 MSO (Version 2201 Build 16.0.14827.20198) 64-bit
    Posts
    46

    Re: Array Formula

    This is very close. The only problem: This formula is returning 1-30 in the first column. I want the number in the first column to be whatever the number is next to that entry on the "Raffle Entries" sheet.

  4. #4
    Registered User
    Join Date
    12-29-2021
    Location
    Lancaster, PA
    MS-Off Ver
    Microsoft 365 MSO (Version 2201 Build 16.0.14827.20198) 64-bit
    Posts
    46

    Re: Array Formula

    Additionally, I would like to do the same thing with another formula for other columns as well. Can you point out in this formula what I would need to change in this formula to apply it to the H column, the I column, etc? I am somewhat experienced with formulas, but am having trouble understanding this one.

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

    Re: Array Formula

    Ok, how about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    To use col H (or I) instead of G, just change the range to B13:H5000

  6. #6
    Registered User
    Join Date
    12-29-2021
    Location
    Lancaster, PA
    MS-Off Ver
    Microsoft 365 MSO (Version 2201 Build 16.0.14827.20198) 64-bit
    Posts
    46

    Re: Array Formula

    That works perfectly. Thank you so much!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,830

    Re: Array Formula

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

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

    Re: Array Formula

    Glad to help & 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] Need a formula to return an ARRAY prior to dynamic array functions - cannnot do it
    By RamJag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-02-2022, 08:56 AM
  2. Replies: 10
    Last Post: 10-26-2020, 12:18 PM
  3. Array summing inventory of a specific part (array formula) EXCEL 2007
    By fdirosa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2018, 12:51 PM
  4. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  5. Can I make the row lookup array/range part in an array formula variable?
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:06 AM
  6. Array formula + Array formula with criteria that lookups a Table
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 11:41 AM
  7. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11: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