Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Gap check formula?

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Gap check formula?

Perhaps you meant this
In C1, copied down: =IF(B1+1=A2,"no gap","gap")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"LSSR" wrote:
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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Gap check formula?

Thank you for the reply. I tried it but it does not detect the gaps. Any
other formula would be welcomed.

"Max" wrote:

Perhaps you meant this
In C1, copied down: =IF(B1+1=A2,"no gap","gap")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"LSSR" wrote:
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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default Gap check formula?

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")


"Max" wrote:

Perhaps you meant this
In C1, copied down: =IF(B1+1=A2,"no gap","gap")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"LSSR" wrote:
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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Gap check formula?

A very useful suggestion; however, still cant ID where the gaps are.

"JLatham" wrote:

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")


"Max" wrote:

Perhaps you meant this
In C1, copied down: =IF(B1+1=A2,"no gap","gap")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"LSSR" wrote:
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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Gap check formula?

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
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"LSSR" wrote in message
...
A very useful suggestion; however, still cant ID where the gaps are.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Gap check formula?


Got it to work. thank you both

"Max" wrote:

Perhaps you meant this
In C1, copied down: =IF(B1+1=A2,"no gap","gap")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"LSSR" wrote:
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

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Gap check formula?

good to hear that. admit i'm bemused what happened over there the first time
round
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"LSSR" wrote in message
...

Got it to work. thank you both



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone check this formula please? y_not Excel Discussion (Misc queries) 4 May 14th 06 07:31 PM
Check box formula DaniBee Excel Discussion (Misc queries) 0 December 5th 05 08:04 PM
Check box and and formula Russell-stanely Excel Discussion (Misc queries) 7 July 7th 05 09:06 PM
How do I check a formula? jnord Excel Discussion (Misc queries) 6 April 19th 05 10:42 PM
How do I set up a formula with a check box? Russell-stanely Excel Discussion (Misc queries) 2 January 28th 05 07:17 PM


All times are GMT +1. The time now is 11:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"