+ Reply to Thread
Results 1 to 8 of 8

Addind to a column if there is data in another

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Addind to a column if there is data in another

    Hi,

    In column D is it possible to generate/write I then P then I then P if there is data in column N.

    example of required:

    column D | Column N
    I | 123456A
    P | 123456T
    I | 1234E6
    P | 12L456
    I | kjdla23
    P | 334llkdi

    I hope this makes sense.

    Thanks for any help,

    David

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Addind to a column if there is data in another

    Can you attach a sample data? I think the answer is a yes

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Adding to a column if there is data in another

    Attached is an example file, because there is data in column N, I want to generate I in column D and then on the next line if there is data in column N, I want to generate P in column D and it keeps repeating until there is no data in column N.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Addind to a column if there is data in another

    Give me a sample with what the end result will look like

  5. #5
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Addind to a column if there is data in another

    Attached is the how it should be after running a macro.

    Thanks.
    Attached Files Attached Files

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Addind to a column if there is data in another

    Do you mean...

    In D2 >> =IF(N(N2),"I","")
    In D3 and copied down >> =IF(ISBLANK(N3),"",IF(AND(D2="I",N(N3)),"P","I"))
    HTH
    Regards, Jeff

  7. #7
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Addind to a column if there is data in another

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Addind to a column if there is data in another

    Thanks Jeff, I needed it in a macro.

    Thanks JieJenn, worked perfectly.
    Last edited by djfscouse; 11-21-2012 at 03:28 PM. Reason: filxed

+ 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