+ Reply to Thread
Results 1 to 4 of 4

Only Show data that matches criteria

Hybrid View

Charlie12345 Only Show data that matches... 12-17-2012, 07:10 AM
Pete_UK Re: Only Show data that... 12-17-2012, 07:29 AM
Charlie12345 Re: Only Show data that... 12-17-2012, 09:06 AM
BB1972 Re: Only Show data that... 12-17-2012, 09:39 AM
  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Question Only Show data that matches criteria

    Hello

    I have a spreadsheet where from a list of 4000 customers I need to bring the details of about 150 to another page for further analysis. I have attached a sample sheet to show what I want with the "data" sheet representing the details of the 4000 customers and the "Main" one representing the 150 in which I'm interested. All I want to show in "Main" A2, A3, etc is the account numbers from "Data" A2, A3, A4 etc if "data" B2, B3, B4 etc says "TRUE" next to the relevant cell - in my example returning the data I've shown in cells "Main" F2, F3 and F4.

    The data in the "data" sheet is coming straight from live SQL database and it would be great if the rows on the "Main" sheet could automatically update if relevant rows are added to the table on the "data" sheet.
    Attached Files Attached Files

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

    Re: Only Show data that matches criteria

    Put this formula in D2 of the Data sheet:

    Formula: copy to clipboard
    =IF(Table1[[#This Row],[Include]],MAX(D$1:D1)+1,"")


    then copy down to the bottom of your table. Then put this formula in A2 of the Main sheet:

    Formula: copy to clipboard
    =IFERROR(INDEX(Data!A:A,MATCH(ROWS($1:1),Data!D:D,0)),"")


    then copy this down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-09-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Only Show data that matches criteria

    Thank you - that works. Only slight problem is that Excel doesn't seem to like the amount of thinking it has to do when applied to my live data...

  4. #4
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Only Show data that matches criteria

    Charlie,

    Using specific ranges instead of complete columns should speed things up a bit for you, so if you have approx 4,000 customers, I would amend Pete's formula to:

    =IFERROR(INDEX(Data!A1:A5000,MATCH(ROWS($1:1),Data!D1:D5000,0)),"")
    with the 5000 (or other number of your choosing) giving you some headroom over and above your approx 4,000 customers.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

+ 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