Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9118363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:08:12+00:00 2026-06-17T05:08:12+00:00

In Excel, I am trying to write a formula that checks whether any cell

  • 0

In Excel, I am trying to write a formula that checks whether any cell in certain range of cells contains invalid data, according to each cell’s data validation rules. I want to use this information to display a message in a cell near the top of the sheet, so the user doesn’t have to scroll through the whole sheet to see if it contains any invalid data.

All the cells in the range I want to check use the same rules for their data validation, but these rules are fairly complex and are dependent on the values of other cells in each row. I already know that you can check whether any cell in a given column equals a certain value using the VLOOKUP Function, (E.g. =IF(ISNA(VLOOKUP("Lookup Value", A1:A20, 1, FALSE)), "Not Found", "Found")), but there doesn’t seem to be any way to use that same method to check for cells with invalid data.

Is there a way to do this in Excel without using VBA? If not, can you recommend an alternative solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:08:14+00:00Added an answer on June 17, 2026 at 5:08 am

    So any row is invalid if it contains Fail or N/A in column D and column E in the same row is blank?

    Try using COUNTIFS to see if there are any invalid rows, e.g. this formula at the top

    =IF(SUM(COUNTIFS(D:D,{"Fail","N/A"},E:E,"")),"Invalid Data","All OK")

    or this version will give you the number of instances

    =IF(SUM(COUNTIFS(D:D,{"Fail","N/A"},E:E,"")),SUM(COUNTIFS(D:D,{"Fail","N/A"},E:E,""))&" Row(s) of Invalid Data","All OK")

    COUNTIFS is only valid in Excel 2007 or later, in earlier versions you can count invalid rows with SUMPRODUCT, i.e.

    =SUMPRODUCT((D1:D1000={"Fail","N/A"})*(E1:E1000=""))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write an Excel Function that grabs the data out of a
I am trying to write some code that will look in an excel cell
I'm trying to write an Excel add-in that can get data from a web
I'm trying to write multiline text to excel cells. cell.setCellValue(line1 \n line2); But when
I'm trying to write data to an excel file that includes Japanese characters. I'm
I am trying to write a program that will append data to an Excel
I'm trying to write an import function for getting data out of an excel
I am trying to read an Excel sheet that has some merged cells using
I am trying to write VBA code which works on my Excel sheet. Range(A65536).End(xlUp).Row
Okay, so I'm trying to write a simple script in VBA for Excel that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.