+ Reply to Thread
Results 1 to 2 of 2

Fill Text Based on Text in Another Cell

  1. #1
    Registered User
    Join Date
    10-22-2019
    Location
    Malaysia
    MS-Off Ver
    MS Office 365 64-bit
    Posts
    4

    Fill Text Based on Text in Another Cell

    Hi guys,

    I hope I could get some guidance on the following case:

    - I have an Excel file with 2 spreadsheets - Sheet1 and Sheet2

    - Text in cell Sheet1!A11 is ABC

    - Text in cell Sheet2!B2 can be either of two possibilities:
    That's (with an apostrophe)
    They're (again with an apostrophe)

    - If the text in Sheet2!B2 is That's --> cell Sheet2!D2 should be filled with the exact text in cell Sheet1!A11

    - If the text in Sheet2!B2 is They're --> cell Sheet2!D2 should be left empty

    Could you let me know how this could be achieved?

    Thank you very much in advance.

  2. #2
    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: Fill Text Based on Text in Another Cell

    Hi, welco,e to the forum

    Maybe something like this?

    =if(Sheet2!B2="That's",Sheet1!A11,"")
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 05-14-2019, 03:06 PM
  2. Automatically fill a cell based on text
    By wlbamc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2016, 08:07 AM
  3. VBA auto fill cell based on text above it
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2014, 11:22 AM
  4. How to fill cells with text based on a cell value
    By kgfromthemv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 04:53 PM
  5. Fill cell with text based on dates and text in another table
    By triptich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2013, 04:13 PM
  6. Replies: 2
    Last Post: 11-29-2012, 11:27 AM
  7. [SOLVED] How to auto-fill text based on text in another cell
    By Jason in forum Excel General
    Replies: 2
    Last Post: 02-16-2005, 04:37 PM

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