+ Reply to Thread
Results 1 to 5 of 5

1 row cell covering 4 rows, but the next column divided in separate rows

  1. #1
    Registered User
    Join Date
    06-05-2014
    Posts
    7

    1 row cell covering 4 rows, but the next column divided in separate rows

    I am working with an excel spreadsheet that was given to me.

    There is a column for "name", and then the next column is for medical condition.

    If the same patient has multiple (say, 4) conditions, the rows for "name" are combined into a single cell(let's say, a cell going from row 2 to row 5, witha a single name in the combined cell) , with the next column having four different cells adjacent to the single cell (cell 2 has "bleeding", cell 3 has "fever", cell 4 has "diarrhea", and cell 5 has "rash"). Some patients have only single conditions, single cells.

    Will this mess up my COUNTS and COUNTIF?

    Is there a way to split the combined cell2-5 for ''name" into four cells all containing the same name?

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

    Re: 1 row cell covering 4 rows, but the next column divided in separate rows

    Yes it will mess up your COUNTIFS. The merged cells will count as 1. You could unmerge the cells. The value in the merged cell will end up in the first cell. Then you will need to paste it into the other cells if you wish to do so.
    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

  3. #3
    Registered User
    Join Date
    06-05-2014
    Posts
    7

    Re: 1 row cell covering 4 rows, but the next column divided in separate rows

    is there any convenient way to unmerge the cells so that they all contain the same values?

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

    Re: 1 row cell covering 4 rows, but the next column divided in separate rows

    Can you upload an example of what you have? (Go Advanced>Manage Attachments)

  5. #5
    Registered User
    Join Date
    02-13-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2007, 2010, 2003
    Posts
    80

    Re: 1 row cell covering 4 rows, but the next column divided in separate rows

    Can you use text to columns in this case? I assume your categories are the same or are separated by comma, semicolons, hyphens?

    Data -> Text to columns

+ 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. Conditional Formatting for cell range covering multiple rows and columns
    By edp428 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2013, 02:02 PM
  2. separating ODD and EVen rows into separate column
    By irvgotti in forum Excel General
    Replies: 4
    Last Post: 05-13-2013, 05:40 PM
  3. Replies: 3
    Last Post: 11-19-2012, 01:06 PM
  4. one column rows to separate columns
    By termite in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2009, 11:39 PM
  5. Count rows in separate column
    By Tseug in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2005, 04:43 PM

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