+ Reply to Thread
Results 1 to 2 of 2

How to put multiple value in different cells if a text exist in an other cell

  1. #1
    Registered User
    Join Date
    04-03-2019
    Location
    Budapest
    MS-Off Ver
    Office 2016
    Posts
    4

    How to put multiple value in different cells if a text exist in an other cell

    Hi all

    Let me explain my problem in the simpliest way i can.
    I have 2 excel sheet like:

    First sheet:

    Andrea YES
    Steve YES
    John

    Second sheet:
    On the second sheet these names can be found multiple times (for example 'John' as well)
    and if I put a YES in sheet 1 after 'John' then I would need Excel to put YES to every John's in sheet 2 automatically.

    Can I do it with formulas or a script?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,812

    Re: How to put multiple value in different cells if a text exist in an other cell

    You can do it with a formula (let's say in cell B2 of the second sheet) along the lines of:

    =IFERROR(VLOOKUP(A2,SHEET1!A:B,2,0)&"","")

    where it is assumed that column A of Sheet2 contains your names. Copy this down as required.

    Hope this helps.

    Pete

    P.S. You might need to change the commas ( , ) in the formula to semicolons ( ; ), depending on your regional settings.

+ 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. Add text to cell only where values exist in rows
    By MikeWaring in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2018, 12:03 PM
  2. [SOLVED] Need to combine cells to one string of text if duplicate values exist in multiple cells
    By Chris McGlothen in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-17-2017, 09:13 PM
  3. [SOLVED] VBA to delete rows if certain text exist in cell & fill with formula
    By johnmacpro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2016, 05:46 PM
  4. [SOLVED] Check First IF Sheet Is Exist With The Name Of Cell K7 If exist Then run the code
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2015, 10:08 AM
  5. If multiple conditions exist, then combine text fields
    By shilburn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2014, 01:11 PM
  6. [SOLVED] Find text string exist in cell from keys words
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-11-2013, 01:56 AM
  7. Replies: 1
    Last Post: 01-25-2013, 12:44 AM

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