#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default N + 1

Hello,

Is there a function for n+1? also how do I tell it to stop when the cell
equals another cells value?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default N + 1


function for "n+1"? sorry, can you please elaborate a little bit?


"Eric" wrote:

Hello,

Is there a function for n+1? also how do I tell it to stop when the cell
equals another cells value?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default N + 1

Function Inc(rngAdd as range, rngMax as Range)
If rngAdd.Value = maxRange.Value Then
Inc = maxRange.Value
Else
Inc = rngAdd.Value + 1
End If
End Function

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Eric" wrote in message
...
Hello,

Is there a function for n+1? also how do I tell it to stop when the cell
equals another cells value?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default N + 1

The function is =N1+1, where cell N1 contains your value N.

If you want it to stop when it reaches another cell's value, you can use
=MIN(N1+1,A1) where A1 is the other cell.
--
David Biddulph

"Eric" wrote in message
...
Hello,

Is there a function for n+1? also how do I tell it to stop when the cell
equals another cells value?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default N + 1

Hi Eric,

Is your n value the n in a statistical analysis range.
If that is the case you could use =COUNT(A:A)+1
or if you need to limit the length of the range
use =COUNT(A1:A50)+1 or whatever.

HTH
Martin


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



All times are GMT +1. The time now is 02:22 AM.

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

About Us

"It's about Microsoft Excel"