Closed Thread
Results 1 to 9 of 9

Icon Flip

  1. #1
    Registered User
    Join Date
    08-22-2017
    Location
    Nevada
    MS-Off Ver
    Latest
    Posts
    3

    Icon Flip

    I need Excel to select a value depending on a random coin flip. The values are: 5, 10, 15, 20, 25, ... through 95. The beginning number is always 10. If the coin returns tails the number returned will always increment one level (plus 5, but never greater than 95). If the coin returns heads the number returned will always decrement one level (minus 5, but never less than 5). However, if the coin returns heads two out of any three consecutive tosses the number will be set to 10 and everything starts over.

    I'd like to perform this with INDEX/MATCH or VLOOKUP if possible. I've been able to get most of it, but the "two out of any three consecutive tosses" has got me stumped.

    Thanx,

    Ken

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Icon Flip

    Welcome to the forum!

    Please attach what you have managed so far.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-22-2017
    Location
    Nevada
    MS-Off Ver
    Latest
    Posts
    3

    Re: Icon Flip

    What I have is a mess... and it doesn't work. All I have accomplished is a rudimentary look table.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Icon Flip

    Nonetheless, please share it. You have everything but the two out of three consecutive coin tosses.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Icon Flip

    Maybe I've not understood your question properly but can this not be done with a formula. No lookups or indexing required.

    The flip value would be in column B and the tally would be in column C.
    =IF(COUNTIF(B3:B5,0)=2,10,IF(B5=1,MIN(C4+5,95),MAX(C4-5,-5)))
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Icon Flip

    Cell C5 = IF(AND(COUNTIF(B3:B5,0)>=2,B5=0),10,IF(B5=1,MIN(C4+5,95),MAX(C4-5,-5)))

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Icon Flip

    Rule 08: Cross-posting Without Links

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    No further help to be offered, please, until the OP has complied with this request.

  8. #8
    Registered User
    Join Date
    08-22-2017
    Location
    Nevada
    MS-Off Ver
    Latest
    Posts
    3

    Re: Icon Flip

    Can't stand independent competition? OK, let's all go out and slow down progress...

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Icon Flip

    The same rule applies on all other forums where I have seen you post the same query. As your comment here suggests that you are unwilling to abide by our forum rules, I am closing this thread.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how flip 1 2 3 to 3 2 1
    By sevla00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2017, 02:04 PM
  2. [SOLVED] Can we change the icon other than Excel's own green icon with an X on it?
    By ImranBhatti in forum Excel General
    Replies: 3
    Last Post: 12-31-2016, 04:24 AM
  3. Email icon in spreadsheet as per email icon in Quick Access Toolbar
    By Mike_100 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-23-2014, 01:53 AM
  4. Set overlay icon and progress icon in win7 taskbar using VBA
    By optikap in forum Microsoft Windows Help
    Replies: 0
    Last Post: 03-26-2014, 04:39 PM
  5. Changing Excel Icon so that it can be E-mailed with selected icon
    By mssbrgmn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2013, 12:09 PM
  6. Change File Icon and/or Title Bar Icon
    By Casedias in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-17-2011, 07:35 PM
  7. Replies: 1
    Last Post: 01-04-2007, 03:38 AM

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