Gap check formula?

  • Thread starter Thread starter LSSR
  • Start date Start date
L

LSSR

Iam using Excel 2003. I have 2 col of a couple thousand rows and need to
determine where a gap in numbers exist between the rows Example:
a b
1 1 5
2 6 15
3 19 25

I recall using something similiar to =if(b1+1=a2 "no gap" "gap") but cannot
get it to work. Suggestions? Thank you
 
Thank you for the reply. I tried it but it does not detect the gaps. Any
other formula would be welcomed.
 
Max has identified the probable problem (lack of commas in your formula).
I'm just wondering if this variation might make things more visible since
you'd only see where gaps are and not be distracted by many "no gap" entries:
=IF(B1+1=A2,"","gap")
 
For the sample data that you posted, indicate the expected results in col C
,
and the "wrong" results you got when you used Jerry's formula
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top