+ Reply to Thread
Results 1 to 5 of 5

Extracting field as with gsheets filter function

Hybrid View

Steve Roth Extracting field as with... 08-05-2015, 04:34 PM
ChemistB Re: Extracting field as with... 08-05-2015, 05:11 PM
Steve Roth Re: Extracting field as with... 08-05-2015, 07:14 PM
ChemistB Re: Extracting field as with... 08-06-2015, 11:58 AM
Steve Roth Re: Extracting field as with... 08-06-2015, 02:30 PM
  1. #1
    Registered User
    Join Date
    12-08-2012
    Location
    United States
    MS-Off Ver
    Various on different jobs
    Posts
    15

    Extracting field as with gsheets filter function

    Hi All:

    I'm trying to re-create something I've done in Google Sheets, with its Filter function. Any ideas much appreciated.

    That workbook is here:

    https://docs.google.com/spreadsheets...it?usp=sharing

    See the third sheet, Clients' Activity.

    Here's the gist. Start with this table:

    6/27/15 Rhonda
    7/1/15 Rhonda
    7/11/15 Carrie
    7/18/15 Carrie
    2/4/15 Carrie
    5/22/15 Barbara
    2/11/15 Barbara
    2/15/15 Barbara

    And generate this as a separate, live-updated table:

    Rhonda 6/27/15, 7/1/15
    Carrie 7/11/2015, 7/18/15, 2/4/15
    Barbara 5/22/15, 2/11/15, 2/15/15

    There are actually more columns, and the extracted dates are filtered, only pulling those that match certain conditions. but if I could just do the above in Excel using fairly basic functions (eg no VBA/User Defined Functions, no macros), I'd be happy.

    I do a pivot table to get a list of unique names, then use this formula for each name:

    =iferror(
    ArrayFormula
    (concatenate
    (text
    (filter($A:$A, $C:$C=$A6, $F:$F=C$4, $A:$A>=$D$2, $A:$A<=$E$2),
    "mm/dd/yy")
    &char(44)&char(32)
    )
    )
    ,"")

    Filter is the crux. Syntax is Filter(SourceField,Condition,Condition,Condition,...)

    It pulls an array of dates from the source field where records match the criteria. Text converts to text-date format. Concatenate puts the array entries in one string with comma-space separating, etc etc.

    I just can't figure out how to do similar in Excel. Any thoughts are very welcome.

    Thanks,

    Steve

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Extracting field as with gsheets filter function

    With your Data in A1:B8 and your list of names starting in F1

    In G1 copied to the right and down, this ARRAYED formula

    =IFERROR(INDEX($A$1:$A$8, SMALL(IF($B$1:$B$8=$F1, ROW($B$1:$B$8)), COLUMNS($A$1:A$1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-08-2012
    Location
    United States
    MS-Off Ver
    Various on different jobs
    Posts
    15

    Re: Extracting field as with gsheets filter function

    Goshdarnitall, I'm on a Mac, and for the life of me neither Control-Shift-Return [Enter] or Command-Shift-Return will take. (Powerbook; there is no separate Enter key...) Just sits there like I haven't hit any key. I've tried every imaginable combination, including adding the Function key. Can't get curly brackets.

    I think this may be a powerbook thing, but I think It also reminds me why I've never gone deep with array formulas.

    IAC your formula looks right and seems to work right from your example. Many thanks will keep banging my head against the wall here..

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Extracting field as with gsheets filter function

    Going the extra mile. Try this
    Attached Images Attached Images

  5. #5
    Registered User
    Join Date
    12-08-2012
    Location
    United States
    MS-Off Ver
    Various on different jobs
    Posts
    15

    Re: Extracting field as with gsheets filter function

    Found the answer: Array functions don't work at all in Excel Online. Can see results in uploaded sheets, but can't create, edit, or recalc. Wanting this to be a workbook that multiple people can use.

    And even in the app, Excel's concatenate doesn't work with arrays from formulas. In my app this would mean dozens of extra (hidden) columns and potential complications.

    So sad to say, for multiple reasons, Excel's just not up to the job.

    Thanks again so much for your help. Almost got there...

    Steve

+ 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. Replies: 0
    Last Post: 03-20-2015, 11:39 AM
  2. Replies: 2
    Last Post: 03-18-2014, 03:58 PM
  3. Filter and group by field name and create report with sum function
    By gane27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2013, 11:10 PM
  4. [SOLVED] How to set a 'Date Filter' on a field in the 'Report Filter' section of a Pivot Table?
    By Rhino_dance in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-28-2013, 11:01 AM
  5. Replies: 6
    Last Post: 05-06-2011, 02:17 PM
  6. Extracting month from a date field
    By Alan in forum Excel General
    Replies: 2
    Last Post: 01-30-2006, 06:35 PM
  7. Extracting the last word of a field
    By Name in forum Excel General
    Replies: 13
    Last Post: 01-20-2005, 07:06 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