+ Reply to Thread
Results 1 to 5 of 5

Can’t bring data over from sheet1 to sheet2 based on citeria

  1. #1
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Can’t bring data over from sheet1 to sheet2 based on citeria

    I tried formulas and macros to populate sheet2 from sheet1 based on criteria. I need the row from sheet1 to populate sheet2 based on data in sheet1 C2:C1500. My expected results are on Sheet ‘Body!’
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Can’t bring data over from sheet1 to sheet2 based on citeria

    The departmental numbers are stored as TEXT rather than as numbers, hence the " " round the "numbers" in this formula. Place in A2, copy across and down:

    =IFERROR(INDEX(Plant!A:A,AGGREGATE(15,6,ROW(Plant!$A$2:$A$948)/(Plant!$C$2:$C$948={"11","44"}),ROWS($1:1))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Can’t bring data over from sheet1 to sheet2 based on citeria

    I missed your 3rd "OR" criterion:

    =IFERROR(INDEX(Plant!A:A,AGGREGATE(15,6,ROW(Plant!$A$2:$A$948)/(Plant!$C$2:$C$948={"11","44","19"}),ROWS($1:1))),"")

  4. #4
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Re: Can’t bring data over from sheet1 to sheet2 based on citeria

    That is awesome. Works perfectly. Thanks Glenn.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Can’t bring data over from sheet1 to sheet2 based on citeria

    No problem. you're welcome.

+ 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] Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet 1
    By Xsample in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-01-2018, 08:53 AM
  2. Transferring data from Sheet1 to Sheet2 based on criteria
    By ronofcam in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 10-18-2017, 10:18 AM
  3. move data from sheet1 to sheet2 based on date in column1 of sheet1
    By pcaldwell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2014, 03:20 PM
  4. [SOLVED] copy data from sheet1 to sheet2 based on column (A) sheet1 and column (C) sheet2
    By AWITCHER in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-13-2014, 03:20 PM
  5. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  6. Replies: 3
    Last Post: 06-06-2012, 05:36 AM
  7. [SOLVED] Copy and Paste Entire Row from Sheet1->Sheet2 based on text string match in Sheet1 Row
    By dmlovic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-17-2012, 08:42 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