Sequence true or false

James Clear

Board Regular
Joined
Jul 12, 2021
Messages
122
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2010
Platform
  1. Windows
I would like to have answer other than v lookup

If sequence is 01111 - False , 10111- false, 11111- True , 11011 - false
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
38,150
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Another way...

=0+A1<11111

Note: The +0 is because I assumed the values are Text to preserve the leading 0. If the values are real numbers custom formatted with 00000 instead, then you can remove the +0.
 
Last edited:
Upvote 0

James Clear

Board Regular
Joined
Jul 12, 2021
Messages
122
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2010
Platform
  1. Windows
How
Try this

=ISERR(SEARCH(0,A1))

Or

=REPT(1,LEN(A1))=A1&""

Actually 11100 - Should come true ,
=ISERR(SEARCH(0,A1)) getting FALSE with this
 
Upvote 0

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
7,245
Office Version
  1. 2016
Platform
  1. Windows
Hi,

You didn't explain your logic behind your TRUE/FALSE requirements, so this is my guess, see if this works for you:

Book3.xlsx
AB
101111FALSE
210111FALSE
311111TRUE
411011FALSE
511100TRUE
Sheet941
Cell Formulas
RangeFormula
B1:B5B1=ISODD(LEN(SUBSTITUTE(A1,"0","")))
 
Upvote 0

James Clear

Board Regular
Joined
Jul 12, 2021
Messages
122
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2010
Platform
  1. Windows
Hi,

You didn't explain your logic behind your TRUE/FALSE requirements, so this is my guess, see if this works for you:

Book3.xlsx
AB
101111FALSE
210111FALSE
311111TRUE
411011FALSE
511100TRUE
Sheet941
Cell Formulas
RangeFormula
B1:B5B1=ISODD(LEN(SUBSTITUTE(A1,"0","")))
This is what I was looking for..Thanks a lot
 
Upvote 0

Forum statistics

Threads
1,191,689
Messages
5,988,031
Members
440,124
Latest member
vincentchu2369

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top