+ Reply to Thread
Results 1 to 4 of 4

group values from 3 different columns when the value in one column is sorted

  1. #1
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    group values from 3 different columns when the value in one column is sorted

    This workbook has grown to a monster beyond my skill set, and I am hoping there is an excel genius out there who can help. When you open the book you will see 3 teamsheets marked "sequoia teamsheet". "dawn teamsheet", and "coast teamsheet". You can see by the formulae that these teamsheets pull values from the top census sheet, which is and will be the master data entry sheet. At one point I simply imported the data as well as the associated info that I wanted to include into column D, P, and Q. I then learned I needed to truncate the last names for HiPPa laws so you can see an assortment of formulae there now that arrange the names alphabetically according to last name. The problem is that when i do this the values in column P and Q remain as they did originally. What I would like is a formula that keeps the values for column D, P, and Q together even when the value in column D move to another row due to sorting.

    Here is an example if you need more clarification: On the top Census sheet you see the patient named "up town" is in room 829-2 (column A) and has 2 CIWA scores - 5,2 (column H). They are on the Sequoia team (column N) so their name will populate on teh Sequoia Teamsheet. When you look at the Sequoia Teamsheet you can see that "up town" is there, but after being sorted the room number and CIWA scores remain in row 4 while "up town" was moved to row 9. How can I keep these values together so that the room number and the CINA/CIWA scores are always in the same row no matter how many times the name is sorted?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: group values from 3 different columns when the value in one column is sorted

    by the way...I can add as many columns and/or rows as are needed...I will just hide them before printing.

  3. #3
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: group values from 3 different columns when the value in one column is sorted

    assuming the patient names are unique you can link columns P & Q to them thus they will stay in the same row when sorted, see attached (highlighted)
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: group values from 3 different columns when the value in one column is sorted

    whaty a simple and elegant solution. THank you.

+ 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] Summerize unique values from multiple columns / Sorted alphabetically
    By Lacaycer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-01-2014, 02:40 PM
  2. A column with mixed item list needs to be sorted out in separate columns
    By vishal karmocha in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-27-2014, 06:21 PM
  3. [SOLVED] Multiple columns to individuals columns by sorted column
    By wildlifeduke in forum Excel General
    Replies: 4
    Last Post: 07-27-2012, 05:05 PM
  4. sorting two columns and write the sorted values on two columns in a different sheet
    By virsojour in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2010, 04:38 AM
  5. dates in multiple columns/ranges to be copied and sorted with no duplicate values
    By mpreddy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2007, 09:51 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