PC Review


Reply
Thread Tools Rate Thread

counting absentees

 
 
Dwayne Gunnels
Guest
Posts: n/a
 
      26th Jul 2011
name wk1 wk2 wk3 wk4 wk5 wk6 counting backwards, wks missed
a x x x x x A 1
b x x A A x x 0
c x x x x x A 1
d x x x x x x 0
e x x x A A A 3
f x x x x x x 0
g A A A A x x 0
h x x x x A x 0
i x x x x x x 0
j x x A A A x 0
k x x x x x x 0
l x x x A x x 0
m x x x x A A 2

Sorry the spreadsheet didn't copy well!
The answer is in the last column.
This will be a 52 week chart, renewable each year.
Question I'm trying to answer: How many weeks beginning with this
week, has the person missed consecutively? Once an X is reached the
count stops.
Counting from wk6 toward wk 1.
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      26th Jul 2011
On Jul 25, 9:46*pm, Dwayne Gunnels <dwayne.gunn...@gmail.com> wrote:
> name wk1 wk2 wk3 wk4 wk5 wk6 counting backwards, wks missed
> a x x x x x A 1
> b x x A A x x 0
> c x x x x x A 1
> d x x x x x x 0
> e x x x A A A 3
> f x x x x x x 0
> g A A A A x x 0
> h x x x x A x 0
> i x x x x x x 0
> j x x A A A x 0
> k x x x x x x 0
> l x x x A x x 0
> m x x x x A A 2
>
> Sorry the spreadsheet didn't copy well!
> The answer is in the last column.
> This will be a 52 week chart, renewable each year.
> Question I'm trying to answer: How many weeks beginning with this
> week, has the person missed consecutively? Once an X is reached the
> count stops.
> Counting from wk6 toward wk 1.


One way

Sub countemupinrev()
For i = 1 To 13
For ii = 6 To 1 Step -1
If Cells(i, ii) = "x" Then
MsgBox i
Cells(i, "H") = 6 - ii
Exit For
End If
Next ii
Next i
End Sub
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting function but not double counting duplicates =?Utf-8?B?SlJE?= Microsoft Excel Worksheet Functions 2 7th Nov 2007 06:43 PM
finding out absentees =?Utf-8?B?QW5hbmQgVmFpZHlh?= Microsoft Access Forms 2 24th Apr 2006 03:39 PM
Counting Rows Then Counting Values in Columns Michael via OfficeKB.com Microsoft Excel Programming 1 1st Jun 2005 04:10 PM
12,000 and counting - dead, 1 Million and counting - homeless David Candy Windows XP General 34 1st Jan 2005 10:27 PM
Detecting absentees =?Utf-8?B?Z3JhY2VnaWZ0?= Microsoft Excel Misc 7 27th Dec 2004 11:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:05 PM.