+ Reply to Thread
Results 1 to 7 of 7

Copy Cell Value if adjacent is true

  1. #1
    Registered User
    Join Date
    05-12-2015
    Location
    AU
    MS-Off Ver
    2010
    Posts
    58

    Copy Cell Value if adjacent is true

    Hi All,

    Merry Christmas.

    I would like to copy a certain Cell values if the cell above is true. (see screenshot below).
    I need a vba or formula to copy any value of each group when the G2, H2 and I2 select via data validation.

    copy cell value if true.jpg

    Thank you.
    Attached Files Attached Files
    Last edited by rxk; 12-24-2018 at 12:41 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy Cell Value if adjacent is true

    Hi,

    This is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.

    In addition what's the overall requirement here. By that I don't mean tell us how you currently get to the end goal and the data & layout you use but tell us what you start with and what you want to see at the end. There will probably be a better way of holding your data and subsequent reporting of it.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-12-2015
    Location
    AU
    MS-Off Ver
    2010
    Posts
    58

    Re: Copy Cell Value if adjacent is true

    Hi Richard,

    I uploaded the actual workbook with the desired outcome on sheet name (Dashboard). Groups 1,2,3 are on its individual sheets as well. Each group may contain than 3 columns.
    What I want to achieve is when select G2 (via data validation) G3:Gx will be populated with the values of (row 4) if the cell values of (row 3) is true.
    For example: G2 = Group 1 the G3 = Apple & G4 = Grapes.

    Thanks

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy Cell Value if adjacent is true

    OK.

    Try this in G3 filled down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Registered User
    Join Date
    05-12-2015
    Location
    AU
    MS-Off Ver
    2010
    Posts
    58

    Re: Copy Cell Value if adjacent is true

    Hi Dave,

    Thank you for you reply but it returns blank when I copy the formula to cell G3. Groups are on separate sheet as G3.

    Sorry, I am not good in complex formula. Is it possible to use my sample excel file upload on my post#1.

    Merry Christmas.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy Cell Value if adjacent is true

    Here you go.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-12-2015
    Location
    AU
    MS-Off Ver
    2010
    Posts
    58

    Re: Copy Cell Value if adjacent is true

    HI Dave,

    Thank you and Merry Christmas again.

    Ray

+ 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: 4
    Last Post: 04-18-2017, 07:09 AM
  2. Replies: 1
    Last Post: 01-03-2014, 03:01 AM
  3. Index and Match Only If Adjacent Cell Value is True
    By Duggerz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2013, 07:29 PM
  4. copy a specif cell value, find another like that in sheet copy adjacent cell and pate
    By smwaqas89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2013, 10:00 AM
  5. Search for a string value and make adjacent cell True
    By ChuckT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2012, 03:46 PM
  6. [SOLVED] Match text in 2 columns, if true output adjacent cell to the match.
    By kenoboy in forum Excel General
    Replies: 3
    Last Post: 07-03-2012, 09:52 AM
  7. How to Pick Value of adjacent cell when Search is true
    By tushar@excel in forum Excel General
    Replies: 3
    Last Post: 08-11-2008, 12:36 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