Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count two columns when criteria is met 1

Status
Not open for further replies.

Bill4tektips

Technical User
Aug 5, 2005
175
GB
I'm sure I have done this before but it was a long time ago. I need to count the data in two columns of a spreadsheet so that if the data in column D is a specific letter, say "P" and if the data in column I is "Sep-07" then show 1 for each entry where criteria matches.
What I have so far is:
=IF('Change History'!$D$2:$D$500="P",IF('Change History'!$I$2:$I$500="Sep-07",1,0))
but I am probably totally wrong as it's years since I did this. Can anyone put me right?
 
search forum for SUMPRODUCT

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top