+ Reply to Thread
Results 1 to 5 of 5

Filter function based on rows and columns

  1. #1
    Registered User
    Join Date
    05-06-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    3

    Filter function based on rows and columns

    Hi Guys,

    I am a geologist from Australia, and almost a complete newbie on Excel.

    I am just trying to create a filter function that will allow me to manipulate data based on both different row and column values.

    The spreadsheet example I have attached shows the drillhole number (Hole_ID), from (Depth_From) and to (Depth_To) depths and metal values (Au_ppm and Cu_ppm).

    What I want to create is a filter that says:

    IF D2>D3 AND F2>5000

    I want to be able to apply this filter to the entire spreadsheet and display the filtered results. I tried to put in the formula numerous times but I always seem to have the syntax incorrect.

    This filter would tell me which drillholes finished in certain copper values (and probably should be drilled deeper).

    On my example spreadsheet there should be two holes that finish in copper mineralisation greater than 5000ppm, these are BEN1081 and BEN1082. And I would like to be able to display these filtered results.

    I am unsure if it is best to use filter function or another function to achieve these results?

    Thanks very much for any help guys.
    Attached Files Attached Files

  2. #2
    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,936

    Re: Filter function based on rows and columns

    not sure if this is what you want, because based on your criteria, i get a different answer to you. take a look at the attached and let me know? i used conditional formatting (which you can remove if you want) to highlight "success", and i added a filter so that you can filter out (or in) what you want to see. was unsure what you wanted to show if success was met or not, so you can change my "comment" in the formula to suite ehat you want.

    let me know if this works for you?
    Attached Files Attached Files
    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

  3. #3
    Registered User
    Join Date
    05-06-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Filter function based on rows and columns

    Quote Originally Posted by FDibbins View Post
    not sure if this is what you want, because based on your criteria, i get a different answer to you. take a look at the attached and let me know? i used conditional formatting (which you can remove if you want) to highlight "success", and i added a filter so that you can filter out (or in) what you want to see. was unsure what you wanted to show if success was met or not, so you can change my "comment" in the formula to suite ehat you want.

    let me know if this works for you?
    Hi FDibbins

    That did work! Fantastic, the other drillhole wasn't highlighted only because you had >5000 in the formatting and the Cu number was 5000, if I change to >4999 will include that drillhole.

    Thanks very much for your help, I'll be able to apply that to some real datasets and see how I go.

    Cheers
    dj_420

  4. #4
    Registered User
    Join Date
    05-06-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Filter function based on rows and columns

    Sorry FDibbins,

    One other question. Where abouts do I go to edit the "Drill Deeper" and "Deep Enough" rules?

    Cheers

  5. #5
    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,936

    Re: Filter function based on rows and columns

    if you look inthe cell where it sayds that, i put the formula in there. edit that part of the formula that is between " "'s you can put whatever you want between then...of if you just want 1 of them to remain, use "" note, there is no space between them this time

    Shout if you need anything else?

    edit: instead of >5000, you could alos use >=5000

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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