+ Reply to Thread
Results 1 to 4 of 4

How to copy data from Column B to Column D if a keyword does not appear in coulmn B

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    How to copy data from Column B to Column D if a keyword does not appear in coulmn B

    I am using the following piece of code in the attached workbook to identify if the word 'Subjects' appears in column B of the relevant row and, if so, place the word 'Subjects' in column D.

    =IF(ISNUMBER(FIND("/subjects/",B2)),"Subjects","")

    This is working fine, however I would like to extend this. Instead of leaving column D blank if 'Subjects' does not appear, I would like it to copy the text in column B into column D. (See attachment for an example).

    Can someone help me out with a way to do this?

    Thanks

    Glayva
    Attached Files Attached Files
    Last edited by Glayva; 06-21-2012 at 09:05 AM. Reason: solved

  2. #2
    Registered User
    Join Date
    06-20-2012
    Location
    PA
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: How to copy data from Column B to Column D if a keyword does not appear in coulmn B

    Hi, instead of using this formula:
    Please Login or Register  to view this content.
    try this:
    =IF(ISNUMBER(FIND("/subjects/",B2)),"Subjects",B2)

  3. #3
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: How to copy data from Column B to Column D if a keyword does not appear in coulmn B

    How about:
    =IF(ISNUMBER(FIND("/subjects/",B3)),"Subjects",B3)

    Is this what you are looking for?

    Kirk
    Click on star (*) below if this helps

  4. #4
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: How to copy data from Column B to Column D if a keyword does not appear in coulmn B

    Doh! I's been trying to put the cell reference in quote marks, which was what was tripping me up.

    Thanks guys

    G

+ 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