+ Reply to Thread
Results 1 to 2 of 2

Create a conditional transposed list into new worksheet given certain criteria

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    cambridge, england
    MS-Off Ver
    Excel 2010
    Posts
    11

    Create a conditional transposed list into new worksheet given certain criteria

    Hi there.

    I have a worksheet with a vertical list of room names which I would like to transpose horizontally into another worksheet. The rooms should be transposed only if they should be included in the audit.

    In the attached example I would like the room names located in worksheet 'S+ Rooms' (column A) to be transposed horizontally into worksheet 'HCOCC' (row 1, with the first room name at D1) if and only if there is a 'Y' in the cell adjacent to the room name in worksheet 'S+ Rooms' (column B).

    I would also like advice on how to create a new vertical list in worksheet 'AUDITHC' of those room names in 'S+ Rooms' which have a 'Y' in the adjacent cell.

    Thanks in advance for any pointers on how to solve this, I'm completely baffled.

    (ideally not using VBA)

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Create a conditional transposed list into new worksheet given certain criteria

    One way is with Array formulas. In HCOCC D4 copied to the right, enter as an ARRAY

    =IFERROR(INDEX('S+ ROOMS'!$A$2:$A$420, SMALL(IF('S+ ROOMS'!$B$2:$B$420="Y", ROW($B$2:$B$420)-1),COLUMNS($A$1:A$1))),"")


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Almost Identical formula for Part 2 of your question

    =IFERROR(INDEX('S+ ROOMS'!$A$2:$A$420, SMALL(IF('S+ ROOMS'!$B$2:$B$420="Y", ROW($B$2:$B$420)-1), ROWS($A$1:$A1))),"")
    Last edited by ChemistB; 09-17-2015 at 01:44 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Replies: 1
    Last Post: 09-16-2015, 07:24 AM
  2. Saving Data Transposed from Another Worksheet
    By sweeteri in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2015, 05:02 PM
  3. Creating a reference to transposed data from another worksheet with variable name
    By Indigo8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2014, 04:45 AM
  4. [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
  5. Conditional copy of a column in one sheet to another workbook transposed
    By gherzberg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2012, 08:49 AM
  6. Replies: 1
    Last Post: 08-22-2012, 06:04 PM
  7. [SOLVED] Convert CSV from clipboard into a transposed list (part solution provided)
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2006, 02:55 PM

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