+ Reply to Thread
Results 1 to 12 of 12

Find Text in Range of Cells and Autofill required Text in different worksheet

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    nowhere
    MS-Off Ver
    Excel 2007
    Posts
    6

    Find Text in Range of Cells and Autofill required Text in different worksheet

    [SOLVED]What formula should I use if I want to automatically replace certain text ("MATHS") in a cell (C29 in SHEET 2) if with condition found certain text (e.g. BA101) within a range of cells (C3:C52) in SHEET 1?
    Please refer attachments for details.[/SOLVED]
    Attached Files Attached Files
    Last edited by ade2tay; 12-06-2012 at 01:42 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    Hi ade2tay,

    Welcome to the forum.
    You want replace "MATHS" in a cell but with what text ? Or you simply want to show blank ("") in place of it ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    12-02-2012
    Location
    nowhere
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    "MATHS" is the text to be automatically filled in cell C29 SHEET 2, if found any "BA101" in C3:C52 SHEET 1.

    I'll be glad if you could help .

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    Not sure if this is what you want, but give it a try...

    =IF(ISERROR(VLOOKUP("BA101",'SHEET 1'!$C$3:$C$52,1,FALSE)),"","MATHS")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    Hi ade2tay,

    Try using below formula:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See attached:- question.xls

    regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Registered User
    Join Date
    12-02-2012
    Location
    nowhere
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    Thanks for your help FDibbins. But I'm not sure whether I'm doing correctly with the code tags. I don't quite get it.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    if you mean code tags in here, that only applies if you post VBA/macro coding

    if thats not what you meant, perhaps you could explain more?

  8. #8
    Registered User
    Join Date
    12-02-2012
    Location
    nowhere
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    It's fine with the formula. Using VBA/ macro coding is much more complicated, I guess.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    Quote Originally Posted by ade2tay View Post
    Thanks for your help FDibbins. But I'm not sure whether I'm doing correctly with the code tags. I don't quite get it.
    I was referring to your question regarding code tags - you only need to use those in here IF you are posting VBA code, otherwise you dont need top bother about them

  10. #10
    Registered User
    Join Date
    12-02-2012
    Location
    nowhere
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    OMG. sorry, I'm new here...LOL

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    lol thats ok, if you dont ask, you wont know...so in future, ask away if there is anything you dont understand, or need more explanation

    and thanks for the rep

  12. #12
    Registered User
    Join Date
    12-02-2012
    Location
    nowhere
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Find Text in Range of Cells and Autofill required Text in different worksheet

    Here's another one. What's the formula if I want all the texts from C3:C52 in SHEET 1 to automatically appear in cell C29 (in SHEET 2)? Please refer previous attachment. TQ.
    Last edited by ade2tay; 12-10-2012 at 10:43 AM.

+ 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