+ Reply to Thread
Results 1 to 6 of 6

Excel Error

  1. #1
    Registered User
    Join Date
    04-26-2022
    Location
    India
    MS-Off Ver
    2019
    Posts
    23

    Excel Error

    I have attached the image for more clarification. what i want to do is to get a reply true if the next number i.e a2 is either equal to a1 or is from a certain set of values that is different for different numbers. For e.g if A1 is 34 then A2 should be either 2,25,17,6,27,13. Like this, there are different sets of values for different numbers. Thanks for your help!

    Screenshot (71).png

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Excel Error

    Hi - can you attach a small file rather than just a picture?
    Makes it a lot easier to try and fix your issue. See above yellow banner on how.

    Thanks

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Excel Error

    where does that "certain set of values" come from? Is it something to do with a roulette wheel?

    I think we need more explanation.

  4. #4
    Registered User
    Join Date
    04-26-2022
    Location
    India
    MS-Off Ver
    2019
    Posts
    23

    Re: Excel Error

    Thanks I have uploaded the file.

    Yes those certain set of values come from roulette. If the number is x(a1 in excel) then we have to pick 3 neighbors from both sides and x as well for predicting the next spin i.e a2 in excel and if a1 and a2 fit these criteria then the result should be true. This make different set of values for different value of x.

    For e.g x is 34 then values will be-- 17,5,22,34,15,3,24 and so on for different value of x.

    I want to make a formula so that it replies true if value a2 is either equal to a1 or it is withing those certain sets of values(3 neighbors on both sides).
    Attached Files Attached Files

  5. #5
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Excel Error

    Lots of ways to do this. Here is one (using a couple of helper columns);

    In Column L I put all the roulette numbers in a sequence (27,10,25 etc). You also need to work out how to distinguish between 0 and 00 (I used "DZ"...but it doesn't really matter)

    Then in column M, I worked out the first number in the wheel from which to compare using (in M1 and drag down to row 44);

    Please Login or Register  to view this content.
    Then using a match in column L and checking the next 6 numbers in column M (in C2 or wherever you want, and drag down)

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Croweater; 04-27-2022 at 12:12 AM.

  6. #6
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Excel Error

    Well? Is that what you wanted?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel VBA: SQL Connection Error (run-time error 2147217843 login failed"
    By VAer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2021, 08:49 PM
  2. VBA Excel error - Run-time error '438': Object doesn't support this property or method
    By officialhoad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2017, 09:42 AM
  3. [SOLVED] I am getting error as "Run Time error '1004' Microsoft excel cannot paste the data
    By Amittapre in forum Excel Programming / VBA / Macros
    Replies: 43
    Last Post: 03-24-2017, 04:40 PM
  4. VBA ERROR: run time error 1004: Application-defined or Object-defined error in excel 2013
    By AnanthKrishna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2015, 06:16 AM
  5. Run time error 75 (Path/File Access Error) - Excel 2007 on XP SP3
    By Portuga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2014, 10:39 AM
  6. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  7. Facing 'run-time error -2147217871 (80040e31) Automation error' in excel VBA
    By junaidanjum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2013, 03:48 AM

Tags for this Thread

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