Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
LIANA
 
Posts: n/a
Default COUNTING CELLS GIVEN OTHER CELLS?

HOW WOULD COUNT THE CELLS IN COLUMN A, GIVEN WHAT LAYS BESIDE IT IN COLUMN B?
FOR EXAMPLE, ONLY COUNT THE CELLS CONTAINING "1" IN A, GIVEN THE CELL NEXT
TO IT IN B CONTAINS A "2"

I HAVE SPENT AN ENTIRE DAY ON THIS AND CAN'T SEEM TO FIGURE IT OUT?
LIANA
  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default COUNTING CELLS GIVEN OTHER CELLS?

Hi!

Please turn off your caps lock!

Try this:

=SUMPRODUCT(--(A1:A100=1),--(B1:B100=2))

Or, if the values really are text:

=SUMPRODUCT(--(A1:A100="1"),--(B1:B100="2"))

Biff

"LIANA" wrote in message
...
HOW WOULD COUNT THE CELLS IN COLUMN A, GIVEN WHAT LAYS BESIDE IT IN COLUMN
B?
FOR EXAMPLE, ONLY COUNT THE CELLS CONTAINING "1" IN A, GIVEN THE CELL NEXT
TO IT IN B CONTAINS A "2"

I HAVE SPENT AN ENTIRE DAY ON THIS AND CAN'T SEEM TO FIGURE IT OUT?
LIANA



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
Counting Cells dave Excel Discussion (Misc queries) 5 October 13th 05 04:13 PM
Counting shaded cells demon42 Excel Worksheet Functions 2 September 21st 05 08:56 PM
Counting filled cells in excel Alex Wilson Excel Worksheet Functions 5 September 19th 05 11:01 PM
Counting the number of cells meeting conditional formating criteria Jeff Excel Worksheet Functions 4 July 9th 05 01:18 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM


All times are GMT +1. The time now is 04:29 PM.

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"