+ Reply to Thread
Results 1 to 3 of 3

Excel list based on criteria

  1. #1
    Registered User
    Join Date
    07-24-2017
    Location
    Ireland
    MS-Off Ver
    MS 2013
    Posts
    1

    Excel list based on criteria

    Hello,
    I have a list of data in the following format:

    Col A Col B
    Cty1 Step 1 Cty1
    Cty1 Step 2 Cty1
    Cty1 Step 3 Cty1
    Cty1 Step 4Cty1
    Cty 2 Step 1 Cty 2
    Cty 2 Step 2 Cty 2
    Cty 2 Step 3 Cty 2
    Cty 2 Step 4 Cty 2


    I need to sort it so that I get in the following format:




    Col A Cty1 Cty2
    Step 1 Step 1 Cty1 Step 1 Cty2
    Step 2 Step 2 Cty1 Step 2 Cty2
    Step 3 Step 3 Cty1 Step 3 Cty2
    Step 4 Step 4 Cty1 Step 4 Cty2



    I have tried a couple of formulas but I cannot seem to get it working. It either keeps pulling back the same value or it ignores whether it is Cty1 or Cty2 and pulls back everything in the list.

    Any ideas?
    Last edited by helen.m; 07-24-2017 at 06:03 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Excel list based on criteria

    Try these formulas

    Formulas
    Column A: IFERROR(IF(LEFT(B21,4)=LEFT(C21,4),LEFT(B21,6),""),"")
    Column B: IFERROR(INDEX($A$2:$B$11,SMALL(IF($A$2:$A$11="cty1",ROW($A$2:$A$11)),ROW(1:1))-1,2),"")
    Column C: IFERROR(INDEX($A$2:$B$11,SMALL(IF($A$2:$A$11="cty 2",ROW($A$2:$A$11)),ROW(1:1))-1,2),"")

    See attachment
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Excel list based on criteria

    Updated attachment
    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] excel formula return dynamic list of names based on two criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2015, 02:23 PM
  2. List based on criteria if criteria changes list locks
    By cconlaund in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2015, 11:05 AM
  3. Excel 2007 : How to generate a list based on criteria
    By fraggle in forum Excel General
    Replies: 7
    Last Post: 05-20-2015, 04:41 AM
  4. Top Ten list based on an certain criteria.
    By Clark85 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 10-31-2013, 11:42 AM
  5. Replies: 4
    Last Post: 03-26-2013, 07:36 AM
  6. [SOLVED] Create a separate list based on criteria in another list.
    By dpitts21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2012, 07:09 PM
  7. Replies: 1
    Last Post: 07-13-2012, 10:11 AM

Tags for this Thread

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