+ Reply to Thread
Results 1 to 4 of 4

Copy multiple cell contents to another cell, IF a condition is met

  1. #1
    Registered User
    Join Date
    03-16-2010
    Location
    Chesterfield, England
    MS-Off Ver
    Excel 2016
    Posts
    19

    Copy multiple cell contents to another cell, IF a condition is met

    Hi everyone.

    Sorry if this is a simple question, but this formula has defeated a colleague and I....and we have no idea what to try next!

    Basically, I have a table of employment circumstances. From the responses, I have added two columns on the end which performs some basic validation e.g flag if the respondent has said if they employed and unemployed. A simplified version of my data is below -

    ID Employment Unemployed Further study Unemployed and working, Unemployed and further study, Errors
    Person 1 Yes Yes No TRUE FALSE
    Person 2 No Yes Yes FALSE TRUE
    Person 3 No Yes No FALSE FALSE
    Person 4 Yes Yes Yes TRUE TRUE

    What I am now wanting to do is, where there is a TRUE in the validation columns, is to copy the column heading into the 'Errors' column - simply to provided a summary of the errors within the data. For example I need "Unemployed and working, Unemployed and further study," in the 'Errors' column for Person 4. As seen below.....

    Desired outcome
    ID Employment Unemployed Further study Unemployed and working, Unemployed and further study, Errors
    Person 4 Yes Yes Yes TRUE TRUE Unemployed and working, Unemployed and further study

    Any help would be greatly appreciated!

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Copy multiple cell contents to another cell, IF a condition is met

    Is any TRUE considered an error?

    Or is it only when TRUE causes a contradiction?
    If posting code please use code tags, see here.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Copy multiple cell contents to another cell, IF a condition is met

    in G2:
    Please Login or Register  to view this content.
    or better formatting (space if both conditions met):
    Please Login or Register  to view this content.
    and the version without showing columns E and F (E1 and F1 could be moved somewhere else):
    Please Login or Register  to view this content.
    Last edited by Kaper; 01-15-2014 at 11:09 AM. Reason: added second version

  4. #4
    Registered User
    Join Date
    03-16-2010
    Location
    Chesterfield, England
    MS-Off Ver
    Excel 2016
    Posts
    19

    Re: Copy multiple cell contents to another cell, IF a condition is met

    Hi Norie. Yes, any TRUE is considered an error. The data comes in externally so this is the only way I can add validation (or the only way I've thought of!). Thanks for your help but Kaper's solution has cracked it!

    Thanks so much for your help, it works an absolute treat. My colleague also passes on his thanks. We were amazed it only took 14 minutes for a solution, we've been working on it for hours!

    Thanks again, all the best.


    SOLVED

+ 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: 7
    Last Post: 08-09-2013, 09:08 PM
  2. Insert Column Adjacent to Cell If Cell Contents Anything Other Than Condition
    By Jrub in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-20-2013, 03:45 PM
  3. Macro to copy the contents of a cell based on certain condition
    By Newbiee in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-09-2009, 01:29 AM
  4. Replies: 1
    Last Post: 03-18-2008, 07:03 PM
  5. Replies: 2
    Last Post: 07-28-2006, 11:05 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