Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default consecutive cells

This is about Sundays attendance for our members. This is what I want to
accomplish. If a member is absent for 3 sundays consecutively (e.g on
C5=absent, D5=absent and E5=absent, then it will tell me on B5 as "Needs
Follow up". The same thing goes on other columns up to 300. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default consecutive cells

formula for B5 - then copy formula down the column

= if(countif(C5:E5, "absent")=3,"Needs Follow up","")

"Boogie" wrote:

This is about Sundays attendance for our members. This is what I want to
accomplish. If a member is absent for 3 sundays consecutively (e.g on
C5=absent, D5=absent and E5=absent, then it will tell me on B5 as "Needs
Follow up". The same thing goes on other columns up to 300. Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default consecutive cells

how about if the 3 consecutive happened on x=100 y=100 z=100 or
f=20,g=20,h=20. I need something dynamic as long as the absences happened on
3 consecutive cells. Thanks

"Vacation's Over" wrote:

formula for B5 - then copy formula down the column

= if(countif(C5:E5, "absent")=3,"Needs Follow up","")

"Boogie" wrote:

This is about Sundays attendance for our members. This is what I want to
accomplish. If a member is absent for 3 sundays consecutively (e.g on
C5=absent, D5=absent and E5=absent, then it will tell me on B5 as "Needs
Follow up". The same thing goes on other columns up to 300. Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default consecutive cells

be specific:
1)are you saying not to look for the word "absent"
2)or are you saying to search a row and see if the word "absent" is ever in
3 consecutive columns
3) or are you looking tosearch a row and see if any value is every in 3
consecutive rows?

"Boogie" wrote:

This is about Sundays attendance for our members. This is what I want to
accomplish. If a member is absent for 3 sundays consecutively (e.g on
C5=absent, D5=absent and E5=absent, then it will tell me on B5 as "Needs
Follow up". The same thing goes on other columns up to 300. Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default consecutive cells

Example:
A B C D E F G
H I J .......
1 Names Status
2 Charles A A A
3 Peter
4 Sam
A A A
5 George A A A

On the above example, I B2 should be "Absent" since Charles has 3
consecutive absent. I also want B4 be "Absent" since Sam has 3 consecutive
absent. Of course not for George since his absences are not consecutive.
Please assume that I have 300 members. Thanks and I hope this is clear now.
God bless.


"Vacation's Over" wrote:

be specific:
1)are you saying not to look for the word "absent"
2)or are you saying to search a row and see if the word "absent" is ever in
3 consecutive columns
3) or are you looking tosearch a row and see if any value is every in 3
consecutive rows?

"Boogie" wrote:

This is about Sundays attendance for our members. This is what I want to
accomplish. If a member is absent for 3 sundays consecutively (e.g on
C5=absent, D5=absent and E5=absent, then it will tell me on B5 as "Needs
Follow up". The same thing goes on other columns up to 300. Thanks



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default consecutive cells

Oops. sorry, the actual posting went garbled. Letter are column Letters and
numbers are Row numbers.

"Vacation's Over" wrote:

be specific:
1)are you saying not to look for the word "absent"
2)or are you saying to search a row and see if the word "absent" is ever in
3 consecutive columns
3) or are you looking tosearch a row and see if any value is every in 3
consecutive rows?

"Boogie" wrote:

This is about Sundays attendance for our members. This is what I want to
accomplish. If a member is absent for 3 sundays consecutively (e.g on
C5=absent, D5=absent and E5=absent, then it will tell me on B5 as "Needs
Follow up". The same thing goes on other columns up to 300. Thanks

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default consecutive cells

this could be done with macros / VBA but you seem more comfortable with
formulas so let's try :

You can get the third consecutive absence to format red background
for cell E4 (first cell with 2 columns of potential absences to left
using"A" for absence as in your post

Select E4 through last row used and last column used then:

formatConditional Fromat
Formula is
=And(E4+"A",D4="A",C4="A")

formatpatterns red background


This is fast and easy and you may be able to adapt for other things

"Boogie" wrote:

Oops. sorry, the actual posting went garbled. Letter are column Letters and
numbers are Row numbers.

"Vacation's Over" wrote:

be specific:
1)are you saying not to look for the word "absent"
2)or are you saying to search a row and see if the word "absent" is ever in
3 consecutive columns
3) or are you looking tosearch a row and see if any value is every in 3
consecutive rows?

"Boogie" wrote:

This is about Sundays attendance for our members. This is what I want to
accomplish. If a member is absent for 3 sundays consecutively (e.g on
C5=absent, D5=absent and E5=absent, then it will tell me on B5 as "Needs
Follow up". The same thing goes on other columns up to 300. 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
consecutive blank cells old coach Excel Worksheet Functions 2 March 3rd 11 11:09 AM
Consecutive cells pulling data from non-consective cells seed Excel Discussion (Misc queries) 2 March 6th 08 01:07 PM
Consecutive Cells Stat Guy via OfficeKB.com Excel Worksheet Functions 1 May 26th 05 05:57 AM
Consecutive cells Trapper via OfficeKB.com Excel Worksheet Functions 4 May 23rd 05 10:28 PM
CSV String to consecutive cells RzB Excel Programming 2 November 21st 03 01:45 AM


All times are GMT +1. The time now is 09:44 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"