+ Reply to Thread
Results 1 to 3 of 3

IF statements and blank cells

  1. #1
    Registered User
    Join Date
    04-22-2021
    Location
    Sudbury
    MS-Off Ver
    365
    Posts
    2

    IF statements and blank cells

    Hello, first post. I'm not even sure this is possible but I think I've come to the right place.

    In Column C I have a simple IF statement as follows:

    =IF(A56=B56,"YES","NO")

    Column A
    =TRIM(XLOOKUP(A56,fromAconex210420!A:A,fromAconex210420!B:B,"",0))
    Column B
    =TRIM(XLOOKUP(A56,ReleasedInternal!Q:Q,ReleasedInternal!B:B,"",0))

    When both XLOOKUP cells return nothing my IF statement returns YES - both cells are empty so technically they match
    How do I get the "empty" cells to return N/A or something other than YES, NO

    Thanks in advance!

    Jason Poulin

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: IF statements and blank cells

    Just add another IF
    =IF(A56<>"", IF(A56=B56, "YES","NO"),"")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-22-2021
    Location
    Sudbury
    MS-Off Ver
    365
    Posts
    2

    Re: IF statements and blank cells

    Perfect!! Thank you!

+ 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] If statements with dates and blank cells
    By rowena229 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2019, 04:10 PM
  2. [SOLVED] Nested IF Statements with Blank Cells
    By 8krungirl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2018, 03:43 PM
  3. [SOLVED] Multiple If Statements if Cells are Blank
    By SlimPickens in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-04-2017, 12:22 PM
  4. [SOLVED] If Statements and blank cells
    By Nick2512 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2017, 11:35 AM
  5. IF Statements, Dates, %, and Blank Cells
    By Karenh119 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2015, 04:00 PM
  6. [SOLVED] COUNTIF and IF statements to count non-blank cells only
    By rowena229 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-25-2015, 01:57 PM
  7. Nested If statements. I wanted blank/empty cells to not show 0
    By fleetwood417 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2013, 11:09 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