Can I use COUNTIF for 2 values?

ICT-Craig

New Member
Joined
Nov 29, 2005
Messages
5
Hi,

I'm trying to gather info from a raw data sheet (sheet B), to create a summary sheet (sheet A).

Sheet B contains data in a 7 column/250 row array which is auto filtered.

So far I've managed to use COUNTIF in sheet A where the criteria is one column is sheet B.
But what I would like to do is use COUNTIF with criteria in 2 columns on sheet B?

Thanks in advance,

Craig (xl 2k)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
For 2 criteria you need to use sumproduct - which will count the matching entries.
 
Upvote 0
thanks for the reply :)

how would i impliment that against my current formula:
=COUNTIF('Sheet B'!C2:C250,B6)
[B6 is matching criteria on sheet A]

thanks
 
Upvote 0
Could you post some sample data and what criteria you wish to filter on
 
Upvote 0
sheeta2dc.jpg


sheetb2hk.jpg


linkage corrected :oops: :)
 
Upvote 0
i would like sheetA 'reserved' column to display the sum of username=reserved + unit=xxxxx

does that make sense? :confused: :)
 
Upvote 0
Basically, they change the trues and falses returned into 1 and 0's that can then be added.
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top