+ Reply to Thread
Results 1 to 2 of 2

separate column and put the values in the right place

  1. #1
    Forum Contributor
    Join Date
    01-17-2011
    Location
    amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    189

    separate column and put the values in the right place

    In column F there are two values P or C.
    I want to cut P, as well as the values some other values that are in the same row and punt them next to the C.

    So for coulumn F
    If the value of is a C it's ok
    If the value is a P it has to be placed in column M but in a certain place


    So if F had P column F,G,H,I,J has to be placed in column M,N,O,P,Q,R,S but at the right place

    The right place is where the values of C and P are the same so column A, B, C, D,E, T and U must be the same for the values of C and P
    Attached Files Attached Files
    Last edited by keis386; 04-11-2011 at 11:21 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,905

    Re: separate column and put the values in the right place

    Add a Helper Column, say column Z, and concatenate the values of the relevant columns:

    =A2&"|"&B2&"|"&C2&"|"&D2&"|"&E2&"|"&T2&"|"&U2&"|"&F2 and drag down

    Then, in column M, use the formula:

    =IF(AND(F2="C",COUNTIF(Z:Z,LEFT(Z2,LEN(Z2)-1)&"P")>0),"P","")


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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