+ Reply to Thread
Results 1 to 4 of 4

winning streak....

  1. #1
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    winning streak....

    Looking to insert vba code to update winning / no wins streak

    sheet1 A78 if it >1 then that means win if=0 that means no win

    sheet2 c7="Win" or "no win" is just text
    Sheet2 c8 is a number of wins or losses

    Trying to figure best way to incorporate code to look at sheet1 , see if value in a78 is greater / or equals 0 and then update the sheet2 c7:c8 accordingly. Trying to create a streak tally. But I also need it to adjust accordingly For example 3 wins in row, and then loss - means sheet2 c7="no win" and sheet2 c8 =1

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: winning streak....

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: winning streak....

    Nevermind I solved it with this from info I have picked up from here. This is what I did:

    If ws1.Cells("73", "I") = "Y" And ws1.Cells("78", "A") > 0 And ws3.Cells("7", "K") = "No Win(s)" Then
    ws3.Cells("8", "K").Value = 0
    ws3.Cells("7", "K").Value = "Win(s)"
    End If
    If ws1.Cells("73", "I") = "Y" And ws1.Cells("78", "A") = 0 And ws3.Cells("7", "K") = "Win(s)" Then
    ws3.Cells("8", "K").Value = 0
    ws3.Cells("7", "K").Value = "No Win(s)"
    End If
    ws3.Cells("8", "K").Value = ws3.Cells("8", "K").Value + 1

    I have learned quite a bit from just reading through the forums. I really appreciate all that contribute.
    You guys rock!

  4. #4
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: winning streak....

    My original thread stated that I needed cells c7 and c8 updated. This sheet is being updating from 2 different sheets. So yes instead of k - it should be c , according to original post. I was just trying to figure out the routine, but figured it out by reading from other questions.

    Thanks again!

+ 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. winning/losing streak without dates in order
    By chemmiah in forum Excel General
    Replies: 3
    Last Post: 01-28-2011, 11:57 PM
  2. Calulating Winning Streak by Month
    By Lewis Koh in forum Excel General
    Replies: 2
    Last Post: 08-22-2010, 02:25 AM
  3. Replies: 4
    Last Post: 08-21-2010, 09:09 PM
  4. Calculating Longest winning and losing streak.
    By Lewis Koh in forum Excel General
    Replies: 2
    Last Post: 07-27-2009, 08:43 AM
  5. identify greatest winning and losing streak
    By atlus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2009, 01:06 AM
  6. Winning Streak by Month...
    By erickguz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2008, 07:37 PM
  7. Requiring help calculating longest winning streak
    By kamran in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 12-06-2006, 02:51 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