Results 1 to 3 of 3

Thread: If cell contains data, then copy value from another cell only if it also contains data

  1. #1
    New Member
    Join Date
    Apr 2019
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default If cell contains data, then copy value from another cell only if it also contains data

    The formula below works but returns 0 when B2 is empty. What I'm trying to do is if B5 contains data then copy B2 only if B2 also contains data, if B2 is empty I would need the cell where I have the formula to stay blank too and not show 0.

    =IF(B5<>"", B2,"")
    Thanks

  2. #2
    Board Regular kweaver's Avatar
    Join Date
    May 2018
    Location
    La Jolla, CA
    Posts
    629
    Post Thanks / Like
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If cell contains data, then copy value from another cell only if it also contains data

    How about:

    =IF(AND(B2<>"",B5<>""),B2,"")

  3. #3
    New Member
    Join Date
    Apr 2019
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: If cell contains data, then copy value from another cell only if it also contains data

    Quote Originally Posted by kweaver View Post
    =IF(AND(B2<>"",B5<>""),B2,"")
    Works perfectly, thanks.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •