+ Reply to Thread
Results 1 to 11 of 11

Formula to indicate if row in Col B is empty with data in same row Col A

  1. #1
    Registered User
    Join Date
    04-11-2017
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    9

    Formula to indicate if row in Col B is empty with data in same row Col A

    Hello,

    I am trying to flag potential user input errors/omissions on a sheet. The user enters information in Col A and then subsequently in Col B. I would like to notify the user if there is information in Col A but not in Col B.

    So far I've tried:

    Please Login or Register  to view this content.
    I've also tried
    Please Login or Register  to view this content.
    but neither of these are what I'm looking for.

    I would like to have a formula that looks at the entire array A1:B21 to evaluate the criteria, instead of row by row. I've attached an example sheet.

    Thank you very much in advance!

    Chris
    Attached Files Attached Files

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

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    If there is ALWAYS only one row (or no rows) with data missing - this array formula will do this. Is it possible for there to be more than one missing value?

    =IFERROR("Data missing for "&INDEX($A$2:$A$10,MATCH(1,($A$2:$A$10<>"")*($B$2:$B$10=""),0)),"No data missing")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    If, however, there can be more than one row with data missing, use this array formula, copied down as far as needed:

    =IFERROR("Data missing for "&INDEX(A:A,SMALL(IF($A$2:$A$10<>"",IF($B$2:$B$10="",ROW($B$2:$B$10))),ROWS($C$2:C2))),"")

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    Hi c.bernardo,

    This seems like an appropriate place to use VBA. Here is the Event Code behind the sheet.
    Please Login or Register  to view this content.
    And the attached file below so you can test it. Type something in the first blank row in column A and it will check and give a message...
    MsgBox to fill in blank B on Event Change.xlsm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    07-08-2004
    Posts
    18

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    Has been deleted.
    Last edited by dkhanknu; 04-22-2017 at 11:00 AM.

  6. #6
    Registered User
    Join Date
    04-11-2017
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    9

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    Glenn this worked great! I have a follow-up question. Will this formula work in a hidden sheet, from which a visible "Flags" sheet pulls? My intent is to hide the sheet with the formula you provided, but display a protected sheet called "Flags" that displays the "Flags" revealed by your formula, which will reside on the hidden sheet.

    Thanks again for the help

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

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    Yep. No problem. just make sure that the formula is pointing to the right sheet...

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    Or maybe this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C
    1 Fruit Color
    2 Apple Data B missing for A
    3 Pear Green
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  9. #9
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    Possibly...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    04-11-2017
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    9

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    Thank you to everyone who contributed to this thread. I tested all your solutions and they all worked to some extent. Glenn's gives me exactly what I was looking for and is the best fit for my "Flag" sheet use.

    Thank you all, I appreciate your time and effort

    Chris

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Formula to indicate if row in Col B is empty with data in same row Col A

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] How execute formula using data from A1 to A... (until empty cell in B)
    By elite_thut in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-29-2016, 11:46 AM
  2. Replies: 7
    Last Post: 07-17-2014, 12:39 PM
  3. Formula to read data from different sheet, eliminating empty cells
    By jrosko1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2014, 11:52 AM
  4. Replies: 0
    Last Post: 02-28-2014, 04:55 PM
  5. Replies: 5
    Last Post: 01-12-2013, 12:16 AM
  6. Replies: 0
    Last Post: 06-22-2012, 11:28 AM
  7. Replies: 3
    Last Post: 01-04-2012, 02:19 PM

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