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 6386631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:03:02+00:00 2026-05-25T03:03:02+00:00

I would like to know how to compare for every row that their (numeric)

  • 0

I would like to know how to compare for every row that their (numeric) columns have different values or all of them are equal, and get the result (either a boolean or a 0/1) in another column. Something like:

      colA colB colC   Result
row1  12   12   45     false
row2  67   67   67     true

How could I write this formula concisely in Microsoft Excel? Note that the number of columns may vary and at least I have about 30 columns, so I don’t want to name the columns in the formula, but write something like a for

Thank you.

  • 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-05-25T03:03:02+00:00Added an answer on May 25, 2026 at 3:03 am

    If you want to test only numbers, what about?

    =MIN(B1:B30)=MAX(B1:B30)
    

    (if your range goes from 1 to 30)

    for doesn’t exist in Excel formula, the best way to deal with a for loop would be to use array formulas but this is not appropriated here.

    what you may look for is a dynamic range but i can’t see a way to implement it easily in your case

    [EDIT] new formula thanks to Excelll’s comment

    =AND(MIN(B1:B30)=MAX(B1:B30),COUNTBLANK(B1:B30)=0)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know if there is anyway I can compare two columns
I would like to know how to compare int values. I would like to
I would like to compare different PHP code to know which one would be
I would like to compare two DataTables. All I need to know is are
I would like to know if I can open 2 different diagrams using MS
I would like to know how to compare two two-dimension arrays value. First array
I would like to know if using VBA I can compare two similar excel
I would like to know what is better to use. IComparer class and Compare
I'd like to know what would be the best strategy to compare a group
I would like to know the fastest way to compare two datetimes omiting the

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.