+ Reply to Thread
Results 1 to 7 of 7

Simple question: Create new spreadsheet with values that follow one condition

  1. #1
    Registered User
    Join Date
    07-01-2015
    Location
    Italy
    MS-Off Ver
    2013
    Posts
    4

    Talking Simple question: Create new spreadsheet with values that follow one condition

    Guys, I've gotten pretty rusty with Excel, so please help me out! I'll simplify it:

    Say you have a list with student names on column A, their phone number on column B, and on column C information if they passed or failed (PASS/FAIL)

    A1: Student B1: Phone # C1:Condition
    A2: Jordan B2: 03322141 C2:Passed
    A3: Cody B3: 30293095 C3:Failed

    etc

    I wanted to create two new different spreadsheets for those who passed and for those who failed, with the the names and phone numbers.

    Which formula should I use?

    Thanks a lot!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Simple question: Create new spreadsheet with values that follow one condition

    Use the Autofilter and filter for Passed or Failed

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Simple question: Create new spreadsheet with values that follow one condition

    Hi
    Try these in a sheet [Passed]
    =IFERROR(INDEX(GlobalResults!$A$2:$C$50,IFERROR(ABS(1/AGGREGATE(15,6,-1/ROW($A$1:$A$49)*--(GlobalResults!$C$2:$C$50="Passed"),ROW(A1))),""),COLUMN(A$1)),"")

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where [GlobalResults!$A$2:$C$50] is your data.
    Copy down an acros.
    Substitute in that formula "Passed" by "Failed" to make a sheet [Failed]

    I hope this helps

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Simple question: Create new spreadsheet with values that follow one condition

    We can use a bit of VBA to make this work. See attached example. There are 2 worksheets "Data" and "Get Data"

    DataPic.jpg

    The Get data sheet looks like this when you select either "Passed" or "Failed" the results will show.
    Code is in the worksheet module.

    GetDataPic.jpg


    Here id the code used.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,296

    Re: Simple question: Create new spreadsheet with values that follow one condition

    You can also use two pivot tables
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Simple question: Create new spreadsheet with values that follow one condition

    Quote Originally Posted by popipipo View Post
    You can also use two pivot tables
    Could you expand on that?

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,296

    Re: Simple question: Create new spreadsheet with values that follow one condition

    Take a look at these 2 pivot tables
    Attached Files Attached Files

+ 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] Hopefully a simple question. Getting Textbox to Total Values from Spreadsheet Column?
    By t0mps in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2014, 11:59 AM
  2. Replies: 5
    Last Post: 05-03-2012, 08:09 AM
  3. condition format will follow when insert row
    By choy96 in forum Excel General
    Replies: 0
    Last Post: 10-28-2010, 10:55 AM
  4. Simple Condition Question
    By Losse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2010, 10:44 PM
  5. create simple chart question
    By Shooter in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2006, 05:35 PM
  6. Simple Question: Select Text Box from Spreadsheet?
    By Lost! in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2005, 11:05 AM
  7. [SOLVED] i want to create a simple yes/no spreadsheet with a dot represent.
    By alaskatpj in forum Excel General
    Replies: 6
    Last Post: 04-23-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