+ Reply to Thread
Results 1 to 7 of 7

if true then copy initial cell to new cell

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    colorado
    MS-Off Ver
    Excel 2007
    Posts
    5

    if true then copy initial cell to new cell

    Hello EF,

    I am trying to write an if statement that can find certain text (in column A)and then copy the contents of cell Ax to cell XX. I am using the following with no success

    =IF(A6="008*",C6=A6)

    where am I going wrong? Thanks for any and all help!

    the contents of column A comes from a copy of a PDF that I paste into excel. its made up of letters and numbers.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: if true then copy initial cell to new cell

    can you try

    in cell XX=IF(ISERR(SEARCH("008*",A6)),"",A6)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: if true then copy initial cell to new cell

    vlady's solution works, but you could also do away with the asterisk (*) in vlady's solution above

    Hence,
    =IF(ISERR(SEARCH("008",A6)),"",A6)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: if true then copy initial cell to new cell

    where did that asterisk came from ???

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: if true then copy initial cell to new cell

    From the OP's initial post I reckon

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: if true then copy initial cell to new cell

    yeah just copied and pasted not looking briefly, hehehe.

  7. #7
    Registered User
    Join Date
    08-08-2012
    Location
    colorado
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: if true then copy initial cell to new cell

    Thank you Vlady and ACE_XL that works! but I was wondering whether I need to ask a new question because what I ultimately need is for certain data to go to different cells. For example, the statement that is being evaluated is something like this "00678299 neverclosed 2012-07-12 more" and I need to extract the number 00678299 and date 2012-07-12 to separate columns/cells. If I need to do a new question that is not a problem, Thanks!

+ 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