+ Reply to Thread
Results 1 to 7 of 7

Looking for blanks

  1. #1
    Registered User
    Join Date
    02-04-2021
    Location
    HA
    MS-Off Ver
    2016
    Posts
    12

    Looking for blanks

    Hi All,

    Scenario: I am trying to figure out how to look for dates (none in particular, just making sure the cell isn't empty) in different columns so the way I was doing it was

    =IF(ISBLANK(A1), B1, A1) But if both Both B1 and A1 are blank how can I make the formula also look in cell C1? and if theres nothing in C1 then return nothing.

    Thank you!
    Last edited by Optimuswicked; 09-15-2021 at 06:57 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    34,244

    Re: Looking for blanks

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Excel Aid

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-04-2021
    Location
    HA
    MS-Off Ver
    2016
    Posts
    12

    Re: Looking for blanks

    Awesome! It worked! is there a way to keep adding to it if I need to check other columns? or is there another way to write the syntax with IF and isblank statements?

    Thank you!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    34,244

    Re: Looking for blanks

    Look at the logic. All 3 not numeric (alphanumeric or blank), first 2 not numeric (C1), only 1 not numeric (B1 or A1). If the contents of the cells are alphanumeric or numeric values, you could use ISBLANK() to test them but, if they are formulae, you can't.

    It's not really scalable. Easy enough to check if all 4, or 5, or 6, etc, are not numeric you said you were checking for dates but after that you've got quite a few combinations to check.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    34,244

    Re: Looking for blanks

    I tend not to use ISBLANK(). I more often test for ="".

    So you could have
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-04-2021
    Location
    HA
    MS-Off Ver
    2016
    Posts
    12

    Re: Looking for blanks

    Got it! makes sense. Thank you!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    34,244

    Re: Looking for blanks

    You're welcome.

+ 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 OR statement not working as intended
    By chris01395 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2020, 09:50 AM
  2. PowerPivot not working as intended?
    By fingerstyle in forum Excel General
    Replies: 11
    Last Post: 10-22-2017, 08:35 PM
  3. Macro to set Y for a 0 value works where is not intended to
    By ciuncky in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2014, 06:21 AM
  4. Value Not Written on the intended Cell
    By love_sick7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2014, 08:17 AM
  5. [SOLVED] Msgbox not working as intended
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-24-2013, 09:12 AM
  6. Functions don't work as intended
    By Coors in forum Excel General
    Replies: 4
    Last Post: 09-19-2011, 02:14 PM
  7. changeing date formats when not intended
    By MarkS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2005, 09:05 AM

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