Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
George
 
Posts: n/a
Default Complicated counting of cells (based on other cells contents)

Hi,

I'm looking to count the number of cells in a column based on the content in
that cell and the content of another cell.

Column 1 has three possible values (GGF, CGF, SGF) as text.
Column 2 has two possible values (Yes, No) as text.
Column 3 has two possible values (Pass, Fail) as text.

I need to be able to make several counts based on the first column,
referencing the other two columns. I'm going to use three different cells to
display each count to simplify the formulas and to ease reading.

Could someone please help me work the formula out to count the number of
cells in column 1 with the value "GGF" when the value of column 2 is "No".
I'd also like some pointers on how to work out how many cells have "GGF" and
"Pass"/"Fail".

The problem I'm hitting at the moment (I think) is that I need to be
flexible (I don't know how many rows are in the column) and using $C:$C (for
instance) seems to be messing up the count.

I've tried:

=COUNT(IF(($C:$C="GGF") & ($G:$G="No), 1, 0))

but that doesn't seem to cut the mustard so to speak.

Any pointers would be a great help to someone in need of some brain soothing
after trying to make Excel do this :-)

Thanks
George

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default Complicated counting of cells (based on other cells contents)

modify as needed to get all your permutations

=SUMPRODUCT(--(A1:A1000="GGF"),--(B1:B1000="No"))

or, for all 3 columns

=SUMPRODUCT(--(A1:A1000="GGF"),--(B1:B1000="No"), --(C1:c1000="Pass"))


"George" wrote:

Hi,

I'm looking to count the number of cells in a column based on the content in
that cell and the content of another cell.

Column 1 has three possible values (GGF, CGF, SGF) as text.
Column 2 has two possible values (Yes, No) as text.
Column 3 has two possible values (Pass, Fail) as text.

I need to be able to make several counts based on the first column,
referencing the other two columns. I'm going to use three different cells to
display each count to simplify the formulas and to ease reading.

Could someone please help me work the formula out to count the number of
cells in column 1 with the value "GGF" when the value of column 2 is "No".
I'd also like some pointers on how to work out how many cells have "GGF" and
"Pass"/"Fail".

The problem I'm hitting at the moment (I think) is that I need to be
flexible (I don't know how many rows are in the column) and using $C:$C (for
instance) seems to be messing up the count.

I've tried:

=COUNT(IF(($C:$C="GGF") & ($G:$G="No), 1, 0))

but that doesn't seem to cut the mustard so to speak.

Any pointers would be a great help to someone in need of some brain soothing
after trying to make Excel do this :-)

Thanks
George

  #3   Report Post  
ConstructionGuy
 
Posts: n/a
Default Complicated counting of cells (based on other cells contents)

was does the --- represent? I think this solves my prioblem also!

"Duke Carey" wrote:

modify as needed to get all your permutations

=SUMPRODUCT(--(A1:A1000="GGF"),--(B1:B1000="No"))

or, for all 3 columns

=SUMPRODUCT(--(A1:A1000="GGF"),--(B1:B1000="No"), --(C1:c1000="Pass"))


"George" wrote:

Hi,

I'm looking to count the number of cells in a column based on the content in
that cell and the content of another cell.

Column 1 has three possible values (GGF, CGF, SGF) as text.
Column 2 has two possible values (Yes, No) as text.
Column 3 has two possible values (Pass, Fail) as text.

I need to be able to make several counts based on the first column,
referencing the other two columns. I'm going to use three different cells to
display each count to simplify the formulas and to ease reading.

Could someone please help me work the formula out to count the number of
cells in column 1 with the value "GGF" when the value of column 2 is "No".
I'd also like some pointers on how to work out how many cells have "GGF" and
"Pass"/"Fail".

The problem I'm hitting at the moment (I think) is that I need to be
flexible (I don't know how many rows are in the column) and using $C:$C (for
instance) seems to be messing up the count.

I've tried:

=COUNT(IF(($C:$C="GGF") & ($G:$G="No), 1, 0))

but that doesn't seem to cut the mustard so to speak.

Any pointers would be a great help to someone in need of some brain soothing
after trying to make Excel do this :-)

Thanks
George

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default Complicated counting of cells (based on other cells contents)

See http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ConstructionGuy" wrote in
message ...
was does the --- represent? I think this solves my prioblem also!

"Duke Carey" wrote:

modify as needed to get all your permutations

=SUMPRODUCT(--(A1:A1000="GGF"),--(B1:B1000="No"))

or, for all 3 columns

=SUMPRODUCT(--(A1:A1000="GGF"),--(B1:B1000="No"), --(C1:c1000="Pass"))


"George" wrote:

Hi,

I'm looking to count the number of cells in a column based on the

content in
that cell and the content of another cell.

Column 1 has three possible values (GGF, CGF, SGF) as text.
Column 2 has two possible values (Yes, No) as text.
Column 3 has two possible values (Pass, Fail) as text.

I need to be able to make several counts based on the first column,
referencing the other two columns. I'm going to use three different

cells to
display each count to simplify the formulas and to ease reading.

Could someone please help me work the formula out to count the number

of
cells in column 1 with the value "GGF" when the value of column 2 is

"No".
I'd also like some pointers on how to work out how many cells have

"GGF" and
"Pass"/"Fail".

The problem I'm hitting at the moment (I think) is that I need to be
flexible (I don't know how many rows are in the column) and using

$C:$C (for
instance) seems to be messing up the count.

I've tried:

=COUNT(IF(($C:$C="GGF") & ($G:$G="No), 1, 0))

but that doesn't seem to cut the mustard so to speak.

Any pointers would be a great help to someone in need of some brain

soothing
after trying to make Excel do this :-)

Thanks
George



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
Clearing the Contents of Merged Cells prizm1 New Users to Excel 2 September 10th 05 04:42 AM
Excel should have the option to merge contents when merging cells. Ceiling Tile 01 Excel Discussion (Misc queries) 2 August 31st 05 11:03 PM
moving cells based certain value Rose Davis New Users to Excel 1 August 29th 05 09:53 PM
how to delete contents of cells having specific data steve Excel Discussion (Misc queries) 2 July 20th 05 10:42 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


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