Cell reference function

millhouse123

Active Member
Joined
Aug 22, 2006
Messages
335
I have a formula =COUNTIFS($HA:$HA,HM7,$HB:$HB,HM8,$C:$C,1)

I want the second to last argument $C:$C to by dynamic. In other words I would like to reference a another cell which has the value C in it. By doing this I can simply drag the formulas across 1000 columns instead of manually updating it.


Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Why don't you just take the absolute reference off?

=COUNTIFS($HA:$HA,HM7,$HB:$HB,HM8,C:C,1)

Copy across.
 
Upvote 0
I am sorry, I was very in clear what I am trying to do. I am looking for a formula like the one below, where Cell HM1 has a 3 in it, In my prior post I said it was a "C". I appreciate your assistance but this issue is beyond absolute vs relative formula reference.

The formula below gives me a #value error. When just looking at the Indirect portion it returns a 0.


Code:
=COUNTIFS($HA:$HA,HM7,$HB:$HB,HM8,INDIRECT(ADDRESS(1,HM1)&":"&ADDRESS(100000,HM1)),1)
 
Upvote 0

Forum statistics

Threads
1,215,268
Messages
6,123,972
Members
449,137
Latest member
yeti1016

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