+ Reply to Thread
Results 1 to 7 of 7

Formula to pull data based on cell value

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    45

    Formula to pull data based on cell value

    This is a very noob quesiton, and I'm a little disappointed at myself for not knowing how to accomplish this.

    I have 2 sheets. On sheet 1 I have numerous columns. One of the columns contains phone numbers, another column contains the name that the phone number is assigned to, or it says "Available". What I'm trying to do is have all of the numbers that show Available pulled into the second sheet. The second sheet will have 2 columns. 1 with the phone number, and the other column will say available for all of numbers (since they will all be available). I thought about using vlookup, but I don't have a unique identifier since not all phone numbers will be on the second sheet. Any suggestions?

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Formula to pull data based on cell value

    Based on your description...
    adjust the column name to search for the name (assumed "B")
    adjust the names of the input sheet and the output sheet
    adjust the phone number column (assumed 1)
    Please Login or Register  to view this content.
    Last edited by rcm; 04-14-2015 at 08:52 PM.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to pull data based on cell value

    See if you can adapt this:

    Lookup with multiple instances of the lookup value
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-20-2012
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Formula to pull data based on cell value

    Quote Originally Posted by rcm View Post
    Based on your description...
    adjust the column name to search for the name (assumed "B")
    adjust the names of the input sheet and the output sheet
    adjust the phone number column (assumed 1)
    When running this I get a syntax error. I don't know that I explained myself very well. I have attached an example of the results I'm looking for.Example_04142015.xlsx

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to pull data based on cell value

    This array formula** entered in A1 on Sheet2:

    =IFERROR(INDEX(Sheet1!A:A,SMALL(IF(Sheet1!C$1:C$6="Available",ROW(Sheet1!C$1:C$6)),ROWS(A$1:A1))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.

  6. #6
    Registered User
    Join Date
    08-20-2012
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Formula to pull data based on cell value

    For some reason, this is just returning the header of my column in sheet1. My example again was not as clear as it should have been. I copied the formula down, but still have blanks. I should have also mentioned that my working document has approximately 85000 rows.

    EDIT: I did attempt to adjust the formula to look in all of column C.
    Last edited by rp1783; 04-14-2015 at 09:49 PM.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to pull data based on cell value

    Here's your file with the formula implemented.
    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] Formula to pull data based on one cells value
    By Dena in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-13-2014, 02:15 PM
  2. [SOLVED] Formula to pull data based on one cells value
    By Dena in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2014, 06:31 PM
  3. [SOLVED] Formula to pull data from a chart based on a certain lookup value...
    By gmazz in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-23-2014, 10:04 AM
  4. Formula to pull rows of data based on a column cell value (Criteria)
    By PaulLor89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2013, 11:26 AM
  5. Excel 2007 : Formula to pull data based off date
    By sjone24 in forum Excel General
    Replies: 0
    Last Post: 12-15-2010, 06:13 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