Closed Thread
Results 1 to 27 of 27

Re: Next Number

  1. #1
    Registered User
    Join Date
    11-10-2009
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Next Number

    Hi,
    I have a data list of numbers. I wish to find the next number in the data list. Does anyone know how to do this with a nested IF statement? I tried this one, but, it doesn't seem to work.

    =IF(A1="","",IF(A1=(A2-1),"",IF(MATCH(A1+1,A1:A91),A1+1,MAX(A1:A91)+1)))

    I also tried this one, but it dosn't work either:

    =IF(ISNA(MATCH(TRUE,(A2:A91-A1:A90)>1,0)),MAX(A1:A91)+1,INDEX(A1:A91,MATCH(TRUE,(A2:A91-A1:A90)>1,0))+1)

    Thanks,
    Bonkley

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Next Number

    Not sure what you mean by "find the next number". Do you want to find a number that's actually in the list or one that isn't? Perhaps you can give an example, sample data with expected result......

  3. #3
    Registered User
    Join Date
    11-16-2009
    Location
    Tucson, AZ
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Next Number

    It would help if you gave us a example of the list you're trying to search through... are there empty cells, or are they just not in order or what?

    Chad

  4. #4
    Registered User
    Join Date
    11-10-2009
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Next Number

    Quote Originally Posted by daddylonglegs View Post
    Not sure what you mean by "find the next number". Do you want to find a number that's actually in the list or one that isn't? Perhaps you can give an example, sample data with expected result......

    The number not in the list... that's the next number.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Next Number

    ok 86*3.1427 thats not in the list so that must be your answer!
    you need to provide an example of what you have and what you expect the answer to be. it may be clear to you but the rest of us dont have a crystal ball lol
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    11-10-2009
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Next Number

    Sure. Look at my original post... I said, I have a data list (a1:a91). I am trying to find the next expected value, based on the data list. Here is the list:
    17
    23
    8
    8
    2
    20
    6
    5
    1
    7
    5
    5
    2
    2
    13
    17
    3
    1
    21
    3
    7
    16
    19
    10
    2
    2
    14
    1
    7
    16
    7
    15
    8
    6
    3
    7
    4
    19
    6
    23
    19
    5
    1
    16
    10
    15
    13
    5
    3
    16
    18
    9
    4
    19
    1
    26
    4
    4
    5
    2
    5
    25
    4
    10
    14
    14
    3
    1
    1
    18
    9
    4
    13
    17
    5
    7
    18
    41
    12
    2
    13
    5
    5
    6
    14
    3
    2
    10
    7
    8
    19

    Based on the formulae in my original post, does anyone know how to write a similar formula that would give an expected value, based on the data list, for A92?

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Next Number

    Nevermind.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Next Number

    Just put this in cell 92:
    =RANDBETWEEN(1, 59)

    Whatever it says is right. The list is, after all, random. So every answer is correct.

    (http://www.excelforum.com/excel-prog...-sequence.html)

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Next Number

    is there a logic behind this list?

  10. #10
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Next Number

    Not again! We've been through this in http://www.excelforum.com/excel-prog...-sequence.html

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Next Number

    Whether you can calculate the next value, or what it might be, would depend on how those numbers are generated.

    If they are independent of each other then the next number could presumably be any number within the constraints you have set.

    If they aren't independent then one would need to know the relationship between them.

  12. #12
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Next Number

    according to the forum rules this is a duplicate post.

    Bonkley, could you please stick to one thread for the same problem.

    And please understand that random numbers can not be predicted. You'v received many comments and even some formulas in the other post.

    Let's not start again.

  13. #13
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Next Number

    that's it !
    in the words of Dragons den.
    "I'm out"

  14. #14
    Registered User
    Join Date
    11-10-2009
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Next Number

    I find it hard to believe that, in spite of the foregoing formulae I posted, in plain view, NO ONE

  15. #15
    Registered User
    Join Date
    11-10-2009
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Next Number

    I find it hard to believe that, even with the foregoing formuae I posted as a basis for finding the nth number in a data list, NO ONE is resourceful enough (frequencies, d values, etc) to even formulate the logic. I am starting to wonder if this is just "paper moon" stuff, to where people pretend to be omniscent, and brandish their surety reps, but all the while know jack shi*.... geezzz!

  16. #16
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Next Number

    Careful...! We're all volunteers here, no need to get insulting.

  17. #17
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Next Number

    ok I'm in for a second go!
    in spite of the foregoing formulae I posted, in plain view
    but you said neither of them work!
    so how does that clear things up.
    just checking my calender is this April the 1st?
    now i'm really out

  18. #18
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Next Number

    Bonkley, one of the definitions of random, courtesy of dictionary.com is
    Statistics. of or characterizing a process of selection in which each item of a set has an equal probability of being chosen.
    If we could predict it with a formula, it really wouldn't be random. Read shg's answer to me in the last thread, where he posts Microsoft's algorithm for random numbers. The one for 2007 produces about 10^13 numbers before it repeats. It's complex simply because it's not meant to be easily solved and put into a short formula. We're not denying you an answer because we're all pretentious noobs as you imply (some of the mods are even Microsoft MVPs), we're denying you an answer because there is no answer.

  19. #19
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Next Number

    Quote Originally Posted by Bonkley View Post
    I find it hard to believe that, even with the foregoing formuae I posted as a basis for finding the nth number in a data list, NO ONE is resourceful enough (frequencies, d values, etc) to even formulate the logic.
    Bonkley, I find it easy to believe that someone can come up with a question for which there isn't actually a satisfactory answer. (to them)

    I find it easy to believe it can be discussed calmly. Quite easy in fact.

    I find it easy to believe that when faced with a consensus from many "somewhat knowledgeable" people... that a person can still choose to believe something completely different. You've proven that all by yourself.

    I find it easy to let you do that and not laugh at you. Surely you can have others tell you things you don't want to hear without getting emotional about IT. Surely.

    I am starting to wonder if this is just "paper moon" stuff...
    If you're referring to your posited query, I would have to agree. Very likely a paper moon pursuit.

    ...to where people pretend to be omniscent, and brandish their surety reps, but all the while know jack shi*.... geezzz!
    Oh, you mean you don't like what you've heard so everyone here must be idiots? How truly surprising. All these people taking time out of their day to engage you in your chosen topic and the best you can offer back is "oh yeah...you're stupid"...?

    Surely you can do better than that. Surely.

    I think an apology is in order, and would cost you nothing more than a few moments of typing to provide...

    Surely you'll choose make your mother proud and to offer one. Surely.
    Last edited by JBeaucaire; 11-16-2009 at 08:21 PM.

  20. #20
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Next Number

    some of the mods are even Microsoft MVPs
    ... and some of the other contributors, too, but they don't advertise it.

  21. #21
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Next Number

    OK, three strikes.

    this is the third time I'm asking you not to use Private Messaging for exchanges pertaining to threads.

    I feel harassed.

    "Formulas"?... I don't recall anyone giving a formula, other than myself; and, even at that, no one took the time look at them, or try to understand the question. How can I put it in more reduced terms? Let me try one last time... how do I get Excel to read a data list of numbers, and then based on the data list, either give me the nth term, OR, the probability (between 0 and 1) for the nth term of the list??

    Get it now??
    Mods, Can I ask for some Moderation, please

  22. #22
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Next Number

    Bonkley, if you have something to say, please say it in the thread.
    Entia non sunt multiplicanda sine necessitate

  23. #23
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Next Number

    Thread Tools > Unsubscribe > "ahhhhh"

  24. #24
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Next Number

    @JB

    LOL! Ditto: click here, then User Lists > Add to Ignore List

    Peace.

    PS. Edit: Absolutely friggin' brilliant: I don't see any of the ignored poster's posts in any thread, nor can I see any of the PMs. To quote JB: Ahhhh!
    Last edited by teylyn; 11-17-2009 at 05:15 AM.

  25. #25
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Next Number

    me to! got my own PM
    well i am apparently a buffoon
    well i must say i resemble that remark.
    also i reckon i qualify as
    A jester, joker, jokester, fool, wit-cracker, prankster .
    thanx for the compliment.

  26. #26
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Next Number

    I have a feeling Bonkley is taking a time-out, so let's all just relax and help others who appreciate it.

    vibes ....

  27. #27
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Next Number

    FWIW - I am closing this thread given this is in essence a duplicate (and the latter posts bear no resemblance to the question).

    Bonkley, whether or not you resolve your issue with the assistance of the board please remain courteous at all times. Those trying to provide solutions do so in their own time and at no charge.

    If you feel the standard of the board is insufficient to meet your requirements then we would suggest you post in an alternative forum going forward (of which there are many).

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1