+ Reply to Thread
Results 1 to 8 of 8

Formula to filter data

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    Mexico
    MS-Off Ver
    MS Office 2010
    Posts
    11

    Formula to filter data

    Hello,

    is there a formula that is equivalent to the filter function?

    Example:
    In my case I have a sheet with a lot of data, and in one column the machine number is given. However, there can be several rows with the same machine number.
    Now I need every single machine number just once transferred into a new table sheet. Meaning, to create an overview of all the machines that are in that data sheet.
    I cannot use VLOOKUP because I do not know all the machine numbers.
    I cannot use PivotTable either because I am only allowed to program the excel table with formulas.
    Here is a picture of the data I need to sort:
    23-11-_2016_11-50-03.png

    And here in this column in another sheet I need every machine number once:
    23-11-_2016_12-08-13.png


    Thank you for any help!!

    Appreciate it!

    Regards

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Formula to filter data

    Many contributors (including me) are not able to view .png files on this forum due to software incompatibilities with some browsers. Besides, you can't try out different formulae in picture files, so it would be better if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Pete

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Formula to filter data

    Agree that we need to see a file, not a pic, but if I understand you correctly, see if this will get you started...
    F
    G
    6
    Tuesday
    Tuesday
    7
    Wednesday Wednesday
    8
    Thursday Thursday
    9
    Friday Friday
    10
    Saturday Saturday
    11
    Sunday Sunday
    12
    Monday Monday
    13
    Tuesday
    14
    Wednesday
    15
    Thursday

    G6=IFERROR(INDEX($F$6:$F$15,MATCH(0,INDEX(COUNTIF($G$5:G5,$F$6:$F$15),),0)),"")
    copied down

    This will give you a unique listing of entries
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-22-2016
    Location
    Mexico
    MS-Off Ver
    MS Office 2010
    Posts
    11

    Re: Formula to filter data

    Right, thank you for the description how to upload a file. If I did it right, it should be attached now.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-22-2016
    Location
    Mexico
    MS-Off Ver
    MS Office 2010
    Posts
    11

    Re: Formula to filter data

    Thank you for that formula! I transferred it and it worked, thank you.
    However, if I want to enter a whole column for the range, it returns wrong values.
    In your example:
    G6=IFERROR(INDEX(F:F,MATCH(0,INDEX(COUNTIF($G$5:G5,F:F),),0)),"")

    Is there a way to include the whole column? (For now, I put F2:F9999 to have sufficient range, but safer would be the whole column in case that the original data changes)

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Formula to filter data

    Does your data start in row 1?

    You could quite easily change that to something like...
    =IFERROR(INDEX($F$6:$F$50000,MATCH(0,INDEX(COUNTIF($G$5:G5,$F$6:$F$50000),),0)),"")

  7. #7
    Registered User
    Join Date
    11-22-2016
    Location
    Mexico
    MS-Off Ver
    MS Office 2010
    Posts
    11

    Re: Formula to filter data

    I have headings in row 1 and the data starts in row 2.

    True, I'll just change it to such a big number that the probability of inaccurancy would almost be equal zero.

    Thank you very much! It helped me a lot!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Formula to filter data

    The inaccuracy is due to you including the headings (which you did by using full-column references)

+ 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] Formula to filter specific data
    By natasajov in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2016, 07:14 AM
  2. Filter list data using only formula
    By nihath in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2015, 04:45 AM
  3. Replies: 1
    Last Post: 01-08-2015, 07:02 PM
  4. Formula to filter data?
    By TCstr8 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-03-2014, 12:47 PM
  5. Formula to search for and filter data
    By Hampo7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2013, 06:54 AM
  6. [SOLVED] Formula to filter data
    By Sreejith.ag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2012, 09:50 AM
  7. Can I use a formula to filter data?
    By Josh Craig in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-19-2006, 09:40 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