Need help with formula that ignores blank cells

Russk68

Well-known Member
Joined
May 1, 2006
Messages
589
Office Version
  1. 365
Platform
  1. MacOS
I need a formula that results in TRUE or FALSE.
If the numbers in BO167:BZ167 are in sequential order without skipping numbers then TRUE.
The formula I have only works if all cells have values. The cells with no values are "" from the result of a formula.
Distro Canelo.xlsx
BOBPBQBRBSBTBUBVBWBXBYBZCA
166            
167876877878879880881882883884885886887TRUE
168876877878879880881882883884872886887FALSE
169            
170879880881         #VALUE!
171            
Untitled Worksheet-2
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
not really sure if this is what you want, but it seems to work:
Mr excel questions 35.xlsm
BBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCA
167876877878879880881882883884885886887876877878879880881882883884885886887TRUE
168876877878879880881882883884872886887876877878879880881882883884872886887FALSE
169            FALSE
170879880881879880881         FALSE
171            FALSE
Russk68
Cell Formulas
RangeFormula
BO167:BZ171BO167=IF(BB167=0,"",BB167)
CA167:CA171CA167=AND( SUM(--(IF(ISNUMBER(BO167:BY167)=FALSE,0,BO167:BY167)+1=IF(ISNUMBER(BP167:BZ167)=FALSE,0,BP167:BZ167)))=COUNTA(BO167:BY167), COUNTA(BO167:BY167)-COUNT(BO167:BY167)=0)
 
Upvote 0
Hi Awoohaw,
Very close. CA170 would be TRUE since the 3 numbers don't skip
 
Upvote 0
Hi Awoohaw,
Very close. CA170 would be TRUE since the 3 numbers don't skip
I thought that may be what you wanted, but that was not stated as an expected outcome. So I did what you asked. Since BR = BQ+1 is false.
 
Upvote 0
Of course:
Mr excel questions 35.xlsm
BBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCA
167876877878879880881882883884885886887876877878879880881882883884885886887TRUE
168876877878879880881882883884872886887876877878879880881882883884872886887TRUE
169            FALSE
170879880881879880881         TRUE
171            FALSE
Russk68
Cell Formulas
RangeFormula
BO167:BZ171BO167=IF(BB167=0,"",BB167)
CA167:CA171CA167=((ISNUMBER(MATCH(FALSE,DROP(FILTER(BO167:BZ167,ISNUMBER(BO167:BZ167)),-1)+1 = DROP(FILTER(BO167:BZ167,ISNUMBER(BO167:BZ167)),1),0))=FALSE) * (--(COUNT(FILTER(BO167:BZ167,ISNUMBER(BO167:BZ167)))>0)))>0
 
Upvote 0
ok, i think this has it:

Cell Formulas
RangeFormula
BO167:BZ171BO167=IF(BB167=0,"",BB167)
CA167:CA171CA167=((ISNUMBER(MATCH(FALSE,DROP(FILTER(BO167:BZ167,ISNUMBER(BO167:BZ167)),,-1)+1 = DROP(FILTER(BO167:BZ167,ISNUMBER(BO167:BZ167)),,1),0))=FALSE) * (--(COUNT(FILTER(BO167:BZ167,ISNUMBER(BO167:BZ167)))>0)))>0
 
Upvote 1
Solution
your welcome. and I'm happy you found you solution here.

Best wishes!
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,399
Members
449,447
Latest member
M V Arun

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
Back
Top