+ Reply to Thread
Results 1 to 8 of 8

If multiple cells are not blank

  1. #1
    Registered User
    Join Date
    02-23-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    If multiple cells are not blank

    I am trying to make a formula that if Cells A1, B1, C2, D3 = BLANK, my cell returns a blank. If they are all filled, then return them all into one cell.

    Cell A10 = IF A1 = ''", "", IF B1 = "","", IF C2 = "","", IF D3 = "","", A1,B1,C2,D3

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2405-17628.20102
    Posts
    1,404

    Re: If multiple cells are not blank

    Are {A1, B1, C2, D3} blank as a result of a formula or are they actually blank?

    When you say you want them in one cell: do you want them separated by a comma or a newline etc.?
    If things don't change they stay the same

  3. #3
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2405-17628.20102
    Posts
    1,404

    Re: If multiple cells are not blank

    Also what would happen if one, two or three out of the 4 cells was blank?

  4. #4
    Registered User
    Join Date
    02-23-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: If multiple cells are not blank

    Each Cell is initially blank, and are manually filled in throughout a process.
    I want A10 to have the other cells brough over like a newline.

    I don't want
    - A1, B1, C2, D3

    I want:
    - A1
    B1
    C2
    D3

  5. #5
    Registered User
    Join Date
    02-23-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: If multiple cells are not blank

    Quote Originally Posted by CheeseSandwich View Post
    Are {A1, B1, C2, D3} blank as a result of a formula or are they actually blank?

    When you say you want them in one cell: do you want them separated by a comma or a newline etc.?
    If any cell is blank, a blank is returned. All cells would need to be completed to return a value.

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

    Re: If multiple cells are not blank

    Try:

    =IF(OR(A1="",B1="",C2="",D3=""),"",TEXTJOIN(",",,A1,B1,C2,D3))

    also... remember that creating a small sample file for us to play with makes it easier for us to help you.
    Attached Files Attached Files
    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

  7. #7
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2405-17628.20102
    Posts
    1,404

    Re: If multiple cells are not blank

    Here is my effort:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Remember, cell A10 will need to be formatted as wrap text.
    Attached Files Attached Files

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

    Re: If multiple cells are not blank

    Ah yes... I missed that:

    =IF(OR(A1="",B1="",C2="",D3=""),"",TEXTJOIN(CHAR(10),,A1,B1,C2,D3))

+ 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] Retun values from non blank cells and combine results from multiple cells
    By Alabina25 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-17-2019, 05:10 AM
  2. How can I make multiple cells mandatory if new rows are used with some cells left blank?
    By markbarnett in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2015, 07:06 AM
  3. [SOLVED] Nested If statement, checking multiple cells for Blank cells
    By JLeague in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-30-2015, 11:18 AM
  4. [SOLVED] Combine multiple cells text into one cell, skip blank cells.
    By T15K in forum Excel General
    Replies: 6
    Last Post: 12-05-2014, 09:49 PM
  5. IF Statement to leave cell blank if multiple cells are all blank
    By sweeteri in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-14-2014, 12:02 PM
  6. [SOLVED] Macro to SUM the cells between two blank cells in a column, multiple occurances
    By importriders in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-28-2013, 08:39 AM
  7. Replies: 4
    Last Post: 06-24-2013, 07:17 AM

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