+ Reply to Thread
Results 1 to 9 of 9

Comparable FILTER function in google sheets, but need it to work in Excel instead.

  1. #1
    Registered User
    Join Date
    07-10-2019
    Location
    Missouri, US
    MS-Off Ver
    O365
    Posts
    12

    Unhappy Comparable FILTER function in google sheets, but need it to work in Excel instead.

    Currently in the process of converting a sheet from Google to Excel due to work security requirements. In Sheets you have very useful and handy functions like SORT Filter and QUERY which Excel does not support. Even though MS says they have been Beta testing these for over a year, they still hav enot released it and will not say if and when they plan to. So here is what I need. The current Google formula is iferror(FILTER($L$1:$R$1,L2:R2="Off")) which looks to a range of cells and searches for the word "Off" and then returns that rows header in the empty spaces. The purpose of this is that we have data downloaded from another program by another department. That data comes to us for employee schedules, and has 7 columns each labeled with the days of the week, Monday, Tuesday, etc. Across from each employees name, the cell is empty if they work that day, and says "Off" if they do not. Some employees have two days off, some have three. I need to basically have the next three columns indicate the actual day of the week that the employe has off based on the previous seven columns. So column 1 through seven are labeled with headers of the weekdays, and starting in column 8 I need it to say the actual day of the week the employee has off.

    As an example, employee 1 will have blanks in Sunday, Monday, Tuesday will say Off, Wednesday will say off, Thursday and Friday will be blank, Saturday will say Off.
    Employee 2 will have Sunday and Monday say Off, and the rest will be blank
    Employee 3 will have Sunday Blank, Monday and Tuesday will say off, and the rest will be blank.

    So what I need is for the next three cells in the row to say for employee 1, Cell 8 will say Tuesday, cell 9 will say Wednesday, and Cell 10 will say Saturday
    For employee 2 cell 8 would say Sunday, Cell 9 would say Monday and cell 10 would be blank
    for Employee 3 cell 8 would say Monday, Cell 9 would say Tuesday and cell 10 would be blank

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,792

    Re: Comparable FILTER function in google sheets, but need it to work in Excel instead.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-10-2019
    Location
    Missouri, US
    MS-Off Ver
    O365
    Posts
    12

    Re: Comparable FILTER function in google sheets, but need it to work in Excel instead.

    Apologies, example attached
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,792

    Re: Comparable FILTER function in google sheets, but need it to work in Excel instead.

    In I6 copied across and down:

    =IFERROR(INDEX($B$15:$H$15,SMALL(IF($B16:$H16="Off",COLUMN($B16:$H16)-COLUMN(INDEX($B16:$H16,1,1))+1),COLUMNS($A1:A1))),"")

    ... 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.

    As you have Office 365, you may not have to enter this as an array formula.

  5. #5
    Registered User
    Join Date
    07-10-2019
    Location
    Missouri, US
    MS-Off Ver
    O365
    Posts
    12

    Re: Comparable FILTER function in google sheets, but need it to work in Excel instead.

    WOW!!! Super fast response. Works Great!! Thank you for your help!!!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,792

    Re: Comparable FILTER function in google sheets, but need it to work in Excel instead.

    No worries.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Comparable FILTER function in google sheets, but need it to work in Excel instead.

    Here is an alternate formula in I6 that does not require Ctrl Shift Enter:

    =IFERROR(INDEX($5:$5,AGGREGATE(15,6,COLUMN($B6:$H6)/($B6:$H6="Off"),COLUMNS($A:A))),"")

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,792

    Re: Comparable FILTER function in google sheets, but need it to work in Excel instead.

    Nice one!

    In Office 365 you don't need to enter anything with CSE - it works without. I've been noticing this for some time now.

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Comparable FILTER function in google sheets, but need it to work in Excel instead.

    Thanks. No way! I was not aware of that (don't have 365).

    I missed that part of your post.

+ 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. Converting Unique,Filter,Countif formula in Google Sheets to Excel
    By imnotarobot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2019, 09:51 AM
  2. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  3. Conditional formatting for multiple work schedules [Google Sheets]
    By theclarkmeister in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 06-30-2017, 06:34 PM
  4. Excel equivalent to Google Sheets' FILTER(range, condition)?
    By Trille in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-14-2016, 06:09 PM
  5. Google Sheets Query IF column problem Converted to Excel Function?
    By Garthilk in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-24-2015, 10:37 PM
  6. Replies: 3
    Last Post: 02-03-2010, 01:32 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