+ Reply to Thread
Results 1 to 5 of 5

how to have one cell copy to another based on condition

  1. #1
    Forum Contributor
    Join Date
    12-07-2013
    Location
    Staten Island, New York
    MS-Off Ver
    Excel 2010
    Posts
    106

    how to have one cell copy to another based on condition

    Hi everyone. I'm trying to set it up so that if a particular cell has any data in it, the contents of a different cell get sent to another. I want the no data/data to serve as a trigger.

    As an example, if I put anything into cell A3, I want the contents of cell A1 to copy to H1. I'd also like it to be dynamic so that if I put something into cell B3, the contents of B1 get copied to H1, etc.

  2. #2
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: how to have one cell copy to another based on condition

    I'm afraid I don't follow your logic. So anything is in column A, you want A1=H1, and then if anything is in column B, you want B1=H1?

  3. #3
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: how to have one cell copy to another based on condition

    I'm gonna take a stab at it anyway.

    In cell H1, enter this formula:

    =IFERROR(INDEX(A1:G1,match("*",A3:G3,0)),"")

  4. #4
    Registered User
    Join Date
    09-07-2013
    Location
    dubai
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: how to have one cell copy to another based on condition

    I'm not sure but wirte this in H1: if(A3="","",A1)

  5. #5
    Registered User
    Join Date
    02-15-2014
    Location
    metro manila, philippines
    MS-Off Ver
    Excel 2007 & 10
    Posts
    43

    Re: how to have one cell copy to another based on condition

    Hi Curious Dude,

    Try this formula,

    =IF(AND(NOT(A3=""),B3=""),A1,IF(AND(NOT(B3=""),A3=""),B1,IF(AND(NOT(A3=""),NOT(B3="")),A1& " and " & B1,IF(AND(A3="",B3=""),""))))

    paste it in cell h1.

+ 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. [SOLVED] Copy data into another cell based on condition
    By SMILE in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2012, 07:59 AM
  2. How to copy a cell range based on a condition
    By GregoryA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2012, 01:42 AM
  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: 3
    Last Post: 06-10-2008, 09:20 AM
  5. copy cell based on condition where row numbers are not the same.
    By john gibson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2006, 09:25 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