Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Counting 'up' rows instead of down

I have a series of rows that show W's (wins) and L's (Losses) from baseball
tournaments.

Example:
W
W
L
L
W
W
W
L
W
W
L

What formula can I use to count from the bottom up, counting only the most
recent W's near the bottom, ending the count at the first L to show the most
recent winning streak (in this case, it would show "2").

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Counting 'up' rows instead of down

Are you wanting a formula to be copied down, or a single formula?

Copy-down style:
In B2:
=IF(A2="W",B1+1,0)

Single formula:
Start with above style, and we will then hide that column. Single output
formula array* producing last win streak is then:
=INDEX(B:B,MAX(IF(B2:B10<0,ROW(B2:B10))))

Note that this formula must be confirmed using Ctrl+Shift+Enter, not just
Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"lawandgrace" wrote:

I have a series of rows that show W's (wins) and L's (Losses) from baseball
tournaments.

Example:
W
W
L
L
W
W
W
L
W
W
L

What formula can I use to count from the bottom up, counting only the most
recent W's near the bottom, ending the count at the first L to show the most
recent winning streak (in this case, it would show "2").

Thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting rows RobertK Excel Worksheet Functions 4 September 17th 09 01:58 PM
Counting rows??? Lockedhart Excel Discussion (Misc queries) 6 July 30th 08 06:26 PM
Counting characters in multiple rows when rows meet specific criteria news.virginmedia.com Excel Worksheet Functions 3 June 28th 08 09:03 PM
Counting Rows klafert Excel Discussion (Misc queries) 0 September 14th 06 06:37 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM


All times are GMT +1. The time now is 12:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"