+ Reply to Thread
Results 1 to 4 of 4

Use of IF to copy specific cells in a range

  1. #1
    Registered User
    Join Date
    05-02-2018
    Location
    Brighton, England
    MS-Off Ver
    Excel 2016
    Posts
    21

    Use of IF to copy specific cells in a range

    Hi,

    I am using the below formula to copy data from one cell to another if a certain cell is populated:

    =IF('Sheet2'!E6=""," ",'Sheet2'!B6)

    The desired destination is a cell in Sheet 1 (If this makes a difference)

    Basically, I am trying to make it so this will work across multiple cells.

    Desirably this would be =IF('Sheet2'!E6:E8=""," ",'Sheet2'!B6:B8) but this isn't working.

    Can anyone advise of a usable formula?

    Thanks

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Use of IF to copy specific cells in a range

    Just take your original formula and copy it to the other cells, the formula will adjust accordingly.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    05-02-2018
    Location
    Brighton, England
    MS-Off Ver
    Excel 2016
    Posts
    21

    Re: Use of IF to copy specific cells in a range

    Quote Originally Posted by Special-K View Post
    Just take your original formula and copy it to the other cells, the formula will adjust accordingly.
    Sorry, I should have made myself clearer.

    I want to be able to use the IF across a range of cells but have this data collate into just one cell.

    E.g. =IF('Sheet2'!E6=""," ",'Sheet2'!B6) OR =IF('Sheet2'!E7=""," ",'Sheet2'!B7) and so on.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Use of IF to copy specific cells in a range

    =IF('Sheet2'!E6=""," ",'Sheet2'!B6)&IF('Sheet2'!E7=""," ",'Sheet2'!B7)&IF('Sheet2'!E8=""," ",'Sheet2'!B8)

+ 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] VBA Macro Button copy certain range cells on a specific value to next sheet
    By Jeffrey_ghost in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-16-2015, 04:39 PM
  2. Vba to Copy from Mass Specific Cells Range to a workbook
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-14-2014, 12:15 PM
  3. need to copy specific range of cells from two spreadsheets to one master
    By moates in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2013, 10:22 AM
  4. Check cell Value in range and copy specific cells to another sheet
    By jmethejedi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2013, 06:25 PM
  5. Non-Sheet Specific Macro to copy range of cells to next worksheet in WB
    By Petrolcb41 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-29-2010, 11:04 AM
  6. Copy range from one workbook to other in specific cells?
    By fcb1900 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2010, 08:38 AM
  7. Copy Specific Cells from Last Row in Range.
    By WinXL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2010, 01:10 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