+ Reply to Thread
Results 1 to 7 of 7

How to have a cell return blank when the target cell it is copying is blank

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    How to have a cell return blank when the target cell it is copying is blank

    Basically, I have a formula that copies details from one workbook to the other based on if 'yes' or 'no' is selected in one of the previous boxes. It is doing what I need it to, but I am struggling on the dates column. If there is a date in the cell then it willc opy it over just fine, but if the cell is blank it will enter 01/01/1900.. here is the formula:

    =IF('[TSC LOG (DW).xlsm]2013-2014'!C126="Yes",'[TSC LOG (DW).xlsm]2013-2014'!I126,"")

    What can I do with that to make it so that a blank in the cell that it is copying from, is actually copied as a blank?

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: How to have a cell return blank when the target cell it is copying is blank

    Add another IF statement!
    =IF(isblank('[TSC LOG (DW).xlsm]2013-2014'!C126),"",IF('[TSC LOG (DW).xlsm]2013-2014'!C126="Yes",'[TSC LOG (DW).xlsm]2013-2014'!I126,""))
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: How to have a cell return blank when the target cell it is copying is blank

    Take a look at this thread from earlier:

    http://www.excelforum.com/excel-form...te-values.html

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    08-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: How to have a cell return blank when the target cell it is copying is blank

    Doesn't work, it returns the same result. Surely it would be an AND statement? I just don't know how to work it

  5. #5
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: How to have a cell return blank when the target cell it is copying is blank

    Ohh ohh... I misunderstood your question.

    Rather than just having the cell appear blank, you'd rather that there's no equation in there at all?

    Unfortunately, that's not going to be able to be accomplished short of a macro. There's really no way for both an equation and a null to exist in a single cell at any given time... You can either return null as the result of an equation, or not have an equation.

    Alternatively, if you're trying to use the data elsewhere, or want to 'scrub' it, sort to speak, you can always highlight the column, copy, Paste Special (alt, e, s), and paste just Values, which will remove the equation and just return the results.

  6. #6
    Registered User
    Join Date
    08-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: How to have a cell return blank when the target cell it is copying is blank

    Ahh, brilliant, the formatting with the two semi colons has solved the issue. Thanks!

  7. #7
    Registered User
    Join Date
    08-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: How to have a cell return blank when the target cell it is copying is blank

    Quote Originally Posted by Miraun View Post
    Ohh ohh... I misunderstood your question.

    Rather than just having the cell appear blank, you'd rather that there's no equation in there at all?

    Unfortunately, that's not going to be able to be accomplished short of a macro. There's really no way for both an equation and a null to exist in a single cell at any given time... You can either return null as the result of an equation, or not have an equation.

    Alternatively, if you're trying to use the data elsewhere, or want to 'scrub' it, sort to speak, you can always highlight the column, copy, Paste Special (alt, e, s), and paste just Values, which will remove the equation and just return the results.
    What I meant is that I wanted it to leave the cell visibly empty rather than have the date come up as 00/01/1900, thanks for the help though

+ 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. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  2. Replies: 5
    Last Post: 08-20-2013, 08:10 AM
  3. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  4. Replies: 0
    Last Post: 03-05-2013, 09:22 AM
  5. Replies: 5
    Last Post: 03-23-2011, 07:09 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