+ Reply to Thread
Results 1 to 2 of 2

IF Statement not pulling all data from one worksheet to another

  1. #1
    Registered User
    Join Date
    12-10-2014
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2205 Build 16.0.15225.20368) 64-bit
    Posts
    96

    IF Statement not pulling all data from one worksheet to another

    Hello! I am running into difficulty trying to use an IF statement to try and pull data from one worksheet (NHL Playoffs Schedule (1983)) and apply it to another worksheet (Playoff Gamelog (Skating)).

    The problem I have is that I need to get the data from the Series and Series GM columns. However, it will work on the first line. But if I try to apply it to all rows in question.

    For the Series column in the Playoff Gamelog (Skating) workbook, I have the IF statment set to:

    =IF(Date='[NHL Playoffs Schedule (1983).xlsx]BOS'!$B:$B,'[NHL Playoffs Schedule (1983).xlsx]BOS'!$E:$E)

    But it will only work for the first row


    For the SeriesGM column in the Playoff Gamelog (Skating) workbook, I have the IF statment set to:

    =IF(Date='[NHL Playoffs Schedule (1983).xlsx]BOS'!$B:$B,'[NHL Playoffs Schedule (1983).xlsx]BOS'!$F:$F)

    However, it will only work for the first row.

    I have included these workbooks as well. Can someone let me know how I can make this work for all rows based on the date from the NHL Playoffs Schedule (1983) and apply it based on that date.

    Thank you in advance for your help with this!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: IF Statement not pulling all data from one worksheet to another

    You need to use an array-entered formula (entered using Ctrl-Shift-Enter) like

    =IFERROR(INDEX('[NHL Playoffs Schedule (1983).xlsx]BOS'!$E:$E,SMALL(IF('[NHL Playoffs Schedule (1983).xlsx]BOS'!$B$2:$B$100=Date,ROW($B$2:$B$100)),ROW(A1))),"")

    and then copied down until it returns blanks.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. VBA Help pulling data from a different worksheet and ...
    By debstep in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2014, 11:32 AM
  2. Replies: 0
    Last Post: 11-26-2013, 05:42 PM
  3. Pulling data from one worksheet into a charted worksheet
    By bbnb in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-20-2013, 12:10 PM
  4. Replies: 0
    Last Post: 05-20-2013, 10:09 AM
  5. [SOLVED] Pulling data from one worksheet to another
    By JoeJoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2006, 02:26 PM
  6. [SOLVED] Pulling Data from a different worksheet (Need Help)
    By jeo1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2006, 03:50 PM
  7. Pulling user data from one worksheet to another worksheet
    By rmeffert in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-16-2005, 10:55 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