(No VBA) Count of a Text Value in a Table Column, Running Total of Occurrences by Rows in a Separate Column

DaddyO

New Member
Joined
Apr 2, 2010
Messages
37
In a table with structured reference:

One column with rows containing multiple text values.

In another column, a running total by row of the number of occurrences in the column one of those text values.



WorL, Running Total Wins
W, 1
W, 2
L, 2
L, 2
W, 3
L, 3
L, 3
L, 3
W, 4

The rows in a third column contain unique incrementing GameID numbers.

I'd like to base the running total in each row comparing the [GameID] value in each row to the value in the current row like this: "<=[@[GameID]]" . But my attempts to create a formula that works have not worked so far.

I do not want to employ VBA, only Excel functions.

Any help is appreciated.
 
Last edited:
In that case, instead of just uploading the image of the problem, can you share a copy of an actual file (with any sensitive data removed/disguised) so that we can try to identify the problem with the formula?
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Sorry, just realized that I had confused Custom Formatting with Conditional Formatting. Same answer though, no.
 
Upvote 0
Sent you a private message with a link to the file.
In future, please make sure any shared sample data is suitable for all forum members to access and provide any link publicly in the forum as we like to ensure all readers have access to all the information if possible. It is sort of what #4 of the Forum Rules is trying to cover. :)

In any case, if I copy the formula directly from post 7 and paste into cell S1 of sheet 'V_GmResults' of your sample file, I get identical results to what was already in column S with the formula you were using (at least down as far as the data goes).

If I use a similar structure to what you already have in that column ..

=IF(ROW()>Tm_NoGms+1,"",COUNTIF(INDEX([Dec],1):[@Dec],"W"))

.. then I get identical results all the way down the column.

The only way I can see that you would get a column of FALSE results is if you left out the red part of the formula above (but that would contradict your earlier statement: "I just copied and pasted your formula.")
 
Last edited:
Upvote 0
Re: Forum Rule #4 , duly noted. Sorry for breaking protocol.

I'll be tomorrow morning checking why things are looking different on my end, user error or some other reason.
 
Upvote 0
OK, hope it will be resolved but post back if you are still having problems.
 
Upvote 0
In any case, if I copy the formula directly from post 7 and paste into cell S1 of sheet 'V_GmResults' of your sample file, I get identical results to what was already in column S with the formula you were using (at least down as far as the data goes).

If I use a similar structure to what you already have in that column ..

=IF(ROW()>Tm_NoGms+1,"",COUNTIF(INDEX([Dec],1):[@Dec],"W"))

.. then I get identical results all the way down the column.

The only way I can see that you would get a column of FALSE results is if you left out the red part of the formula above (but that would contradict your earlier statement: "I just copied and pasted your formula.")

Copied and pasted your original formula in this thread and it worked fine. I had indeed copied and pasted it before, so I must have failed to copy it completely, or correctly, or who knows what.

Again, thanks for your help, and I will post a public form of the spreadsheet shortly.
 
Last edited:
Upvote 0
Copied and pasted your original formula in this thread and it worked fine. I had indeed copied and pasted it before, so I must have failed to copy it completely, or correctly, or who knows what.

Again, thanks for your help, and I will post a public form of the spreadsheet shortly.
You're welcome. Glad you got it sorted. :)


Here's a link to the full workbook ..
Since you have things working I don't think we actually need to see the workbook now but note that the link does not allow access to the file for me: "Sorry, we can't open your workbook in Excel Online because it exceeds the 5 MB limit."
 
Upvote 0
Since you have things working I don't think we actually need to see the workbook now but note that the link does not allow access to the file for me: "Sorry, we can't open your workbook in Excel Online because it exceeds the 5 MB limit."

Ah, got it.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top