Count if formula by two sheets

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
Hello,
Good Day,
My main datas are located on Sheet1 Columns A to AH all the way down.
Column A has name of the months.Column D is the target datas.

I want to put a formula on the Sheet3 cell A6 which will lookup on the same Sheet to cell B1 which has the name of the mounth,
will check column D on Sheet1 and will count enuqie datas(example Apple) related with same month.
Many Thanks
 

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.
In A6 of Sheet3 control+shift+enter, not just enter:
Rich (BB code):
=SUM(IF(FREQUENCY(IF(1-(Sheet1!$D$2:$D$200=""),IF(Sheet1!$A$2:$A$200=B$1,MATCH(Sheet1!$D$2:$D$200,Sheet1!$D$2:$D$200,0))),
    ROW(Sheet1!$D$2:$D$200)-ROW(Sheet1!$D$2)+1),1))
 
Upvote 0
Hi Aladin,
Thanks for helping me out,
Could you please check the tables given below what if I'm going to count the duplicates in order linked cells.


SHEET 1 columnA

January
January
January
January
January
January
January
January
February
February
February
February
February
February
February
March
March
March
March
March
March
March

<tbody>
</tbody>


Column D

16
6
24
14
22
6
16
8
18
8
14
14
14
20
24
24
6
14
22
20
22
18

<tbody>
</tbody>

Sheet 3

Cell B1 = Month
Cell C1 = 6(Sheet1 column D values)
Cell A6 = Formula needed!(Counting the duplicates base on b1 & c1 values which matches on column Sheet1 column A&D, if B1 vale is January and C1 value is 6 then A6 result will be as "2" )

Many Thanks,
 
Last edited:
Upvote 0
Which month do we have in B1?

Sorry, I missed your B1 = January specification.

The question is not a unique count issue as I thought it was, it's rather just a conditional count. Thus:

In A6 of Sheet3 just enter:

=COUNTIFS(Sheet1!D:D,$C1,Sheet1!A:A,$B1)

This will return 2 as result.
 
Upvote 0

Forum statistics

Threads
1,215,137
Messages
6,123,253
Members
449,093
Latest member
Vincent Khandagale

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