Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Coutn specific cell with specific value

Dear All

I have a worksheet where all the values produced by list and all the cells
have either yes or no.
In the columns i have scenario by person, so imagine in columns C,E,G, I, K
i have the scanrio Budget and in columns D, F,H,J,L i have the scenario
Actual.

Who can i count all the yes for scenario budget (C,E,G, I, K) and all the
yes for the scenario actual (D, F,H,J,L) ?

I tried the count if but it doesn't accept seperatly cells. I need a dynamic
way.

Thanks in advance for your help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Coutn specific cell with specific value

=SUMPRODUCT((MOD(COLUMN(C2:L20),2)=1)*(C2:L20="yes "))

--
__________________________________
HTH

Bob

"Manos" wrote in message
...
Dear All

I have a worksheet where all the values produced by list and all the cells
have either yes or no.
In the columns i have scenario by person, so imagine in columns C,E,G, I,
K
i have the scanrio Budget and in columns D, F,H,J,L i have the scenario
Actual.

Who can i count all the yes for scenario budget (C,E,G, I, K) and all the
yes for the scenario actual (D, F,H,J,L) ?

I tried the count if but it doesn't accept seperatly cells. I need a
dynamic
way.

Thanks in advance for your help



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Coutn specific cell with specific value

Dear Bob, thank you for you help, but the results is not correct.
Imagine a line where i want to add column by column (budget) and the rest of
the columns (actual) seperatly. All the columns have the same values, yes or
no, depending of the scenario.


"Bob Phillips" wrote:

=SUMPRODUCT((MOD(COLUMN(C2:L20),2)=1)*(C2:L20="yes "))

--
__________________________________
HTH

Bob

"Manos" wrote in message
...
Dear All

I have a worksheet where all the values produced by list and all the cells
have either yes or no.
In the columns i have scenario by person, so imagine in columns C,E,G, I,
K
i have the scanrio Budget and in columns D, F,H,J,L i have the scenario
Actual.

Who can i count all the yes for scenario budget (C,E,G, I, K) and all the
yes for the scenario actual (D, F,H,J,L) ?

I tried the count if but it doesn't accept seperatly cells. I need a
dynamic
way.

Thanks in advance for your help




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Coutn specific cell with specific value

Bob's suggestion relies on the data (Yes) being in an odd numbered column. If
you insert a single column, you may not get the results you want.

If I had to worry about counting yes's for certain columns (and I could
insert/delete columns whenever I wanted), then I'd use a dedicated row (row 1?)
and put an indicator in those cells. (I'd hide that row, too.)

=sumproduct(--($1:$1="Manos"),--(2:2="yes"))

This'll count the number of Yes's in row two that have Manos in row 1.

If you insert/delete a column, remember to fix row one (if you have to).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Manos wrote:

Dear Bob, thank you for you help, but the results is not correct.
Imagine a line where i want to add column by column (budget) and the rest of
the columns (actual) seperatly. All the columns have the same values, yes or
no, depending of the scenario.

"Bob Phillips" wrote:

=SUMPRODUCT((MOD(COLUMN(C2:L20),2)=1)*(C2:L20="yes "))

--
__________________________________
HTH

Bob

"Manos" wrote in message
...
Dear All

I have a worksheet where all the values produced by list and all the cells
have either yes or no.
In the columns i have scenario by person, so imagine in columns C,E,G, I,
K
i have the scanrio Budget and in columns D, F,H,J,L i have the scenario
Actual.

Who can i count all the yes for scenario budget (C,E,G, I, K) and all the
yes for the scenario actual (D, F,H,J,L) ?

I tried the count if but it doesn't accept seperatly cells. I need a
dynamic
way.

Thanks in advance for your help





--

Dave Peterson
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
Not allowing to continu unless a specific cell has specific answer madubois9 Excel Discussion (Misc queries) 3 October 25th 07 12:45 AM
Link to specific cell in specific Excel file JeroenM Excel Discussion (Misc queries) 3 July 6th 07 10:08 AM
Link from a specific Cell in Excel to a specific para. in Word CathyK Excel Worksheet Functions 0 August 10th 06 04:40 PM
Highlight a row if a specific cell is specific numbers/words sea0221 Excel Worksheet Functions 2 March 9th 05 12:06 AM
How do I make a cell date specific to input a value on a specific. ebuzz13 Excel Discussion (Misc queries) 1 January 18th 05 05:53 PM


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