A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

comparing two colums ? countif



 
 
Thread Tools Display Modes
  #1  
Old March 20th, 2010, 08:51 PM posted to microsoft.public.excel.worksheet.functions
manfred3
external usenet poster
 
Posts: 5
Default comparing two colums ? countif

Hi,

I have a spreadsheet with "weeks in column A and "Daily Charges" in
column R. [see below]

col A col R

Week 1
Week 1
20
Week 1
week 2
week 2

How do I say calculate how many charges [col R] occur in "week 1"
i.e. no of times there is a value in "col R" for week 1.

What would I use if the no. of rows is 250 or if it varies month on
month.

Thanks


  #2  
Old March 20th, 2010, 09:16 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default comparing two colums ? countif

Maybe something like this...

=SUMPRODUCT(--(A2:A250="Week 1"),--(R2:R250""))

If you're using Excel 2007...

Assumes the cells in column R are either *EMPTY* or contain a visible entry.

=COUNTIFS(A2:A250,"Week 1",R2:R250,"")

--
Biff
Microsoft Excel MVP


"manfred3" wrote in message
...
Hi,

I have a spreadsheet with "weeks in column A and "Daily Charges" in
column R. [see below]

col A col R

Week 1
Week 1
20
Week 1
week 2
week 2

How do I say calculate how many charges [col R] occur in "week 1"
i.e. no of times there is a value in "col R" for week 1.

What would I use if the no. of rows is 250 or if it varies month on
month.

Thanks




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:54 AM.


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