+ Reply to Thread
Results 1 to 6 of 6

Copy multiple fields based on criteria

Hybrid View

  1. #1
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Copy multiple fields based on criteria

    Just for fun, here's an ARRAY FORMULA* which produces alphabetized lists for each row! Paste in J5, copy across and down:

    =IFERROR(INDEX($C$5:$C$17,MATCH(AGGREGATE(15,6,COUNTIF($C$5:$C$17,"<"&$C$5:$C$17)/($D$5:$D$17=$G5),COLUMNS($J5:J5)),COUNTIF($C$5:$C$17,"<"&$C$5:$C$17),0)),"")
    NOTE- The COLUMNS($J5:J5) clause points to the cell where you paste the formula. If you alter it, be sure to get the $ dollar sign right.

    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.


    Please click the Add Reputation star below any helpful posts, and use Thread Tools (up top) to mark your thread as SOLVED once you have your answer. Thanks!-Lee
    Last edited by leelnich; 08-08-2017 at 07:13 AM.

+ 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] Copy various fields from one workbook to various fields in another by criteria
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 04-26-2016, 03:55 PM
  2. Copy value based off multiple cell criteria in a row.
    By this2willpass in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2015, 06:40 PM
  3. How to copy rows based on multiple criteria from one worksheet to another ?
    By Caster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2015, 06:27 AM
  4. Populating fields in multiple cells based on criteria in multiple columns
    By excelalways in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2014, 08:17 AM
  5. [SOLVED] Copy Data from one Sheet to another based on multiple criteria
    By ParisG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2014, 02:53 AM
  6. [SOLVED] Copy Columns based on multiple criteria
    By slmthai in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-19-2013, 02:07 AM
  7. [SOLVED] vba copy and paste based on multiple loop criteria
    By sarahcpa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-19-2013, 10:29 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