+ Reply to Thread
Results 1 to 3 of 3

Enter Value of cell G2 into C2 if cell E2 contains "In"

Hybrid View

edwinkbell Enter Value of cell G2 into... 08-02-2009, 04:38 PM
teylyn Re: Enter Value of cell G2... 08-02-2009, 08:39 PM
edwinkbell Re: Enter Value of cell G2... 08-03-2009, 02:11 AM
  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    USA & KSA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Enter Value of cell G2 into C2 if cell E2 contains "In"

    I need to enter Value of cell "G2" into cell "C2" if cell "E2" contains the word "In".
    If it does not C2 remains blank.

    Can someone please help?

    Thanks
    Last edited by edwinkbell; 08-03-2009 at 02:26 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Enter Value of cell G2 into C2 if cell E2 contains "In"

    In cell C2 put the following formula:

    =IF(ISNUMBER(SEARCH("in",E2,1)),G2,"")

    The SEARCH function searches for a text ("in") in cell E2 and will return the position of the text in the string as a number. If the text is not found in E2, the SEARCH funciton will return #VALUE.

    The ISNUMBER function checks if SEARCH returns a number. If so, the search text was found in E2, ISNUMBER evaluates to TRUE, and whatever is displayed in G2 will now also be displayed in C2.

    If the SEARCH does not return a number, the ISNUMBER function evaluates to FALSE and a blank will be shown in C2

    HTH

  3. #3
    Registered User
    Join Date
    07-28-2009
    Location
    USA & KSA
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Enter Value of cell G2 into C2 if cell E2 contains "In"

    Thanks Teylyn,
    That solution worked just as I needed it to.
    I also have another problem that I could use soem assistance with, if you are up for the challenge? I posted it a few days ago and have not gotten any responses, maybe you could take a look and give me some advise.

    The link to my post titles "Multiple Timesheets, auto fill from data sheet" :
    http://www.excelforum.com/excel-work...ata-sheet.html

    Please let me know if this is possible or how I can accomplish it.

    Thanks again for your help! I really, really, really appreciate it...

    E

+ 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