Countif formula

amwilber

Board Regular
Joined
May 15, 2008
Messages
162
Hello,
I have been messing around with a countif formula for a while now, I can't get it to do what I want it to do, please help.


The formula I am using is below.

=COUNTIF(Page2!B2:B200,Page1!B1)

What I want to change is the changing of the first part of the formula when I drag the formula down into other lines. For example...

Line 1 I want this =COUNTIF(Page2!B2:B200,Page1!B1)
Line 2 I want this =COUNTIF(Page2!B2:B200,Page1!B2)
Line 3 I want this =COUNTIF(Page2!B2:B200,Page1!B3)

The way the formula is currently working it is changing it like this
=COUNTIF(Page2!B3:B201,Page1!B2) when I drag the formula down to another line.

Thank you in advance for the help!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
:) Worked great! I knew I was missing something easy, will have to remember that for the next time. Thanks a lot for the help!
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

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