+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Find and copy data using if condition

Hybrid View

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    8

    Smile Find and copy data using if condition

    Hi all,
    I am trying check in column A, which contains and list of categories, of which I only have to copy the first category from the cell and paste it to corresponding cell in column B.

    The formula I am using is with if statement, which works fine for multi category cells but returns error for single category cell.

    Please refer to workbook attached.

    It will be great if someone can help.

    Thanks

    Praney
    Attached Files Attached Files
    Last edited by praneybehl; 02-15-2010 at 06:58 PM. Reason: Solved

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Find and copy data using if condition

    Hi,

    Do you mean ...
    =IF(ISERROR(IF(FIND(",",A1),LEFT(A1,FIND(",",A1)-1),A1)),A1,IF(FIND(",",A1),LEFT(A1,FIND(",",A1)-1),A1))
    HTH

  3. #3
    Registered User
    Join Date
    02-10-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Find and copy data using if condition

    Quote Originally Posted by JeanRage View Post
    Hi,

    Do you mean ...


    HTH
    Hey that works, thanks alot.

    have a great day.

    praney

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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