+ Reply to Thread
Results 1 to 4 of 4

Copy from sheet 1 or 2 depending which one has values

  1. #1
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Copy from sheet 1 or 2 depending which one has values

    Is there a way to make a formula in Excel where you simply get Excel to either copy data from f.ex A1 from sheet 1 or 2 into 3 depending on which sheet (1 or 2) that contains data?

  2. #2
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: Copy from sheet 1 or 2 depending which one has values

    Okay I think I figured it out. This seems to work "=IF(ISBLANK(Sheet1!B2);Sheet2!B2;Sheet1!B2)"

  3. #3
    Forum Contributor
    Join Date
    04-28-2016
    Location
    Stavanger, Norway
    MS-Off Ver
    365
    Posts
    142

    Re: Copy from sheet 1 or 2 depending which one has values

    This only works if its just values, is there a way to make it work if the cell contains text and/or a formula?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Copy from sheet 1 or 2 depending which one has values

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. copy certain columns to another sheet depending on values
    By aarona in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2017, 08:00 AM
  2. VBA to Copy an entire column depending on row values
    By kwesmc in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-25-2016, 04:18 PM
  3. [SOLVED] Copy data from one sheet to another depending on condition
    By ghostly1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-08-2016, 08:56 AM
  4. [SOLVED] Find value depending on two values from different sheet
    By Masun in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2013, 04:48 AM
  5. [SOLVED] Copy cells from each row into new sheet, depending on if statement
    By christopherL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-28-2013, 08:06 AM
  6. Copy Sheet to new Workbook depending on Sheet name or value in A1
    By anauros in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2012, 08:31 AM
  7. Replies: 5
    Last Post: 09-28-2005, 01:05 PM

Tags for this Thread

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