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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:08:13+00:00 2026-06-09T01:08:13+00:00

Can someone provide a reference to how excel compares strings using inequality operators in

  • 0

Can someone provide a reference to how excel compares strings using inequality operators in Excel? I have found some unexpected behavior:

In the below examples, the first two columns are strings, column C is of the expression =A2<B2, the third column is the expected behavior, and the final column is whether the expected behavior matches the actual.

Comparison  Benchmark   Is A < B?   Expected    Pass?
Q1 2009     Q4 2012       TRUE      TRUE        TRUE
Q2 2009     Q4 2012       TRUE      TRUE        TRUE
Q3 2009     Q4 2012       TRUE      TRUE        TRUE
Q4 2009     Q4 2012       TRUE      TRUE        TRUE
Q1 2010     Q4 2012       TRUE      TRUE        TRUE
Q2 2010     Q4 2012       TRUE      TRUE        TRUE
Q3 2010     Q4 2012       TRUE      TRUE        TRUE
Q4 2010     Q4 2012       TRUE      TRUE        TRUE
Q1 2011     Q4 2012       TRUE      TRUE        TRUE
Q2 2011     Q4 2012       TRUE      TRUE        TRUE
Q3 2011     Q4 2012       TRUE      TRUE        TRUE
Q4 2011     Q4 2012       TRUE      TRUE        TRUE
Q1 2012     Q4 2012       TRUE      TRUE        TRUE
Q2 2012     Q4 2012       TRUE      TRUE        TRUE
Q3 2012     Q4 2012       TRUE      TRUE        TRUE
Q4 2012     Q4 2012       FALSE     FALSE       TRUE
Q1 2013     Q4 2012       TRUE      FALSE       FALSE
Q2 2013     Q4 2012       TRUE      FALSE       FALSE
Q3 2013     Q4 2012       TRUE      FALSE       FALSE
Q4 2013     Q4 2012       FALSE     FALSE       TRUE
Q1 2014     Q4 2012       TRUE      FALSE       FALSE
Q2 2014     Q4 2012       TRUE      FALSE       FALSE
Q3 2014     Q4 2012       TRUE      FALSE       FALSE

For dates before the benchmark, it seems like Excel compares the whole string, whereas after the benchmark date, Excel only compares the string until it finds a single character less than the analogous character in the comparison.

  • 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-09T01:08:15+00:00Added an answer on June 9, 2026 at 1:08 am

    What Excel does here is it compares the two strings character by character left to right until it finds a mismatch, and then the string with higher value character becomes the greater string. This is the standard method to compare strings — it’s used in pretty much all programming languages, databases and other software packages.

    So, for example, for the first line the comparison would go like this:

    Comparison  Benchmark   Outcome
        Q           Q        Equal
        1           4        Benchmark is greater - done comparing
     [space]     [space]     Ignored
        2           2        Ignored
        0           0        Ignored
        0           1        Ignored
        9           2        Ignored 
    

    For the fourth line it would be:

    Comparison  Benchmark   Outcome
        Q           Q        Equal
        4           4        Equal
     [space]     [space]     Equal
        2           2        Equal
        0           0        Equal
        0           1        Benchmark is greater - done comparing
        9           2        Ignored 
    

    And for the last line it would be:

    Comparison  Benchmark   Outcome
        Q           Q        Equal
        3           4        Benchmark is greater - done comparing
     [space]     [space]     Ignored
        2           2        Ignored
        0           0        Ignored
        1           1        Ignored
        4           2        Ignored 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone provide a link with a tutorial about exporting data to an excel
Can someone provide an example of drawing an iPhone-like turning wheel using Core Graphics
Can someone please provide links to any paper/reference that talks about disconnected components in
Can someone provide me with a HelloWorld JQuery sample app using VS2010 and list
Can someone provide me a reference to a good PHPUnit mock guide? The one
Can someone provide an explanation of a weak reference in Delphi? I noticed that
When working within javascript can someone provide me a good reference or explanation over
Can someone provide an example of how to load a .svg file and display
Can someone provide a quick top level explanation of how Valgrind works? An example:
Can someone provide basic sample / link for MVP Framework. Need to design a

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.