Countif? Count? If?

Mark4295

New Member
Joined
Apr 20, 2012
Messages
5
This is making me crazy…:confused:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
Page 1 <o:p></o:p>
(cell “A1” contains the number 1,2,3 or 4)<o:p></o:p>
(column “D” contains various names validated in a pull down list found on page 2)<o:p></o:p>
<o:p></o:p>
Page 2<o:p></o:p>
(column “A” is the original named list being used on page 1 as a pull down feature)<o:p></o:p>
(column “B” next to each name (found in page 1’s pull down) is counting how many times that name appears in Page 1 column “D”<o:p></o:p>
<o:p></o:p>
Question:<o:p></o:p>
I need a formula for page 2 column “C,D,E,F” that counts how many times each name appears in page 1 column “D” if cell “A1” says either 1 or 2 or 3 or 4.<o:p></o:p>
There will be thirty pages in the end, and I want to count them in relation to that cell “A1” criteria first.<o:p></o:p>
<o:p></o:p>
If cell “A1” says 1 (how many names in page 1, column “D” match a name in page 2, “B1”) formula on page 2, cell “C1”<o:p></o:p>
If cell “A1” says 2 (how many names in page 1, column “D” match a name in page 2, “B1”) formula on page 2, cell “D1”<o:p></o:p>
If cell “A1” says 3 (how many names in page 1, column “D” match a name in page 2, “B1”) formula on page 2, cell “E1”<o:p></o:p>
If cell “A1” says 4 (how many names in page 1, column “D” match a name in page 2, “B1”) formula on page 2, cell “F1”<o:p></o:p>
<o:p></o:p>
One formula will get me started, as I’ll just change the criteria for the 1,2,3, or 4.<o:p></o:p>
<o:p></o:p>
Thank you,<o:p></o:p>
Mark <o:p></o:p>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
You could probably use either SUMPRODUCT or COUNTIFS but this is going to depend on the version of Excel you are using.
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,904
Members
449,194
Latest member
JayEggleton

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