Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Turn off or not include lines in a calculation

I have a spread sheet that has a formula at the bottom to count all cells
that have the work day. This calculation =COUNTIF(B7:O170,"DAY"). This
counts all cells that have the word day. I want to exclude Lines 7, 10, 13,
16, 19 and so forth, only have the calculation for say every 3rd line. Is
there a way to exclude certain lines in my calculation.

Thanks for any help.
--
DLAYMANS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Turn off or not include lines in a calculation

maybe (not tested)

=sumproduct(--(B7:O170="DAY"),--(mod(row(B7:O170)-7,3)=0))

"DLAYMANS" wrote:

I have a spread sheet that has a formula at the bottom to count all cells
that have the work day. This calculation =COUNTIF(B7:O170,"DAY"). This
counts all cells that have the word day. I want to exclude Lines 7, 10, 13,
16, 19 and so forth, only have the calculation for say every 3rd line. Is
there a way to exclude certain lines in my calculation.

Thanks for any help.
--
DLAYMANS

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Turn off or not include lines in a calculation

oops, should be <

=sumproduct(--(B7:O170="DAY"),--(mod(row(B7:O170)-7,3)<0))


"Duke Carey" wrote:

maybe (not tested)

=sumproduct(--(B7:O170="DAY"),--(mod(row(B7:O170)-7,3)=0))

"DLAYMANS" wrote:

I have a spread sheet that has a formula at the bottom to count all cells
that have the work day. This calculation =COUNTIF(B7:O170,"DAY"). This
counts all cells that have the word day. I want to exclude Lines 7, 10, 13,
16, 19 and so forth, only have the calculation for say every 3rd line. Is
there a way to exclude certain lines in my calculation.

Thanks for any help.
--
DLAYMANS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Turn off or not include lines in a calculation

Duke,, appreciate your help,, when I put the formula in, I get #value! in the
cell where I have the formula. Can you lead me a little further. What I
have is a Spread sheet where we track fellows work record. We have several
items that we show the man when he works or is off,, Rest, Off With
Permission, Off Sick, ect. At the bottom of the sheet we have it total the
items with the same data,, such as sick. Any help would be greatly
appreciated.

D
--
DLAYMANS


"Duke Carey" wrote:

oops, should be <

=sumproduct(--(B7:O170="DAY"),--(mod(row(B7:O170)-7,3)<0))


"Duke Carey" wrote:

maybe (not tested)

=sumproduct(--(B7:O170="DAY"),--(mod(row(B7:O170)-7,3)=0))

"DLAYMANS" wrote:

I have a spread sheet that has a formula at the bottom to count all cells
that have the work day. This calculation =COUNTIF(B7:O170,"DAY"). This
counts all cells that have the word day. I want to exclude Lines 7, 10, 13,
16, 19 and so forth, only have the calculation for say every 3rd line. Is
there a way to exclude certain lines in my calculation.

Thanks for any help.
--
DLAYMANS

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
how do i turn off calculation of cells blabla Excel Discussion (Misc queries) 1 May 26th 08 04:48 PM
Inserting Lines or Copying lines with formulas but without data wnfisba Excel Discussion (Misc queries) 2 August 18th 06 04:41 PM
Time Calculation For A Timesheet To Include Lunch poddys Excel Worksheet Functions 2 March 3rd 06 08:05 PM
Vertical Lines on the Lines on 2 Axes Chart [email protected] Charts and Charting in Excel 3 March 3rd 06 04:14 AM
Deleting unused lines between used lines? Stevel Setting up and Configuration of Excel 1 November 25th 05 12:58 AM


All times are GMT +1. The time now is 01:10 AM.

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

About Us

"It's about Microsoft Excel"