Cell Reference as a variable?

placeholder

New Member
Joined
Dec 20, 2005
Messages
3
I've searched about quite a bit for the answer to this, however if there is a post about this here, then I am sorry and please link me over :)

I am working in Excel doing some Software Validation *yawn*. Having to prove each stage of someone elses software for auditing purposes.

What I want to know is;

Say I had 3 columns:

In A is a long list of numbers,
In B is the formula '=Count(A1:A5)'
and in C1 + C2 are variable numbers.

What I want to happen is this, the numbers in row C change the row number in the equation in B. So if C1 = 75 and C2=85 then B1= '=count(A75:85)', if C1=23 and C2=145 then B1= 'Count(A23:A145)'.

Please tell me this is possible :)

Thanks in advance
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hello, placeholder
Welcome to the Board !!!!!
take a look at the function INDIRECT

B1= Count(INDIRECT("A" & C1 & ":A" & C2))

kind regards,
Erik
 
Upvote 0
Address

What about:

=COUNT(ADDRESS(C1,1):ADDRESS(C2,1))

Where C1 & C2 are your variables? and 1 is col no 1 i.e. "A"

See if this helps you any??

:biggrin:
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

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