Microsoft Office Forums


Reply
Thread Tools Display Modes

Using cell value in range reference

 
 
Sandy
Guest
Posts: n/a

 
      02-17-2008, 03:26 PM
I have a value of 20 in cell A1, how can I use this value in a formula.

E.g. COUNTA("D11" & A1) - (I feel it should be similar to this )

Sandy
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a

 
      02-17-2008, 03:44 PM
=COUNTA(INDIRECT("D11"&a1))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Sandy" <(E-Mail Removed)> wrote in message
news:4011B2E9-7F93-44E8-A3DF-(E-Mail Removed)...
>I have a value of 20 in cell A1, how can I use this value in a formula.
>
> E.g. COUNTA("D11" & A1) - (I feel it should be similar to this )
>
> Sandy


 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a

 
      02-17-2008, 04:21 PM
Hi Sandy

One way
=COUNTA(D11:INDEX(D,A1))

--
Regards
Roger Govier

"Sandy" <(E-Mail Removed)> wrote in message
news:4011B2E9-7F93-44E8-A3DF-(E-Mail Removed)...
> I have a value of 20 in cell A1, how can I use this value in a formula.
>
> E.g. COUNTA("D11" & A1) - (I feel it should be similar to this )
>
> Sandy


 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a

 
      02-17-2008, 04:38 PM
another
=COUNTA(D11:OFFSET(D11,0,0,a1))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Roger Govier" <roger@technology4unospamdotcodotuk> wrote in message
news:7BE87F0D-ED99-4090-B087-(E-Mail Removed)...
> Hi Sandy
>
> One way
> =COUNTA(D11:INDEX(D,A1))
>
> --
> Regards
> Roger Govier
>
> "Sandy" <(E-Mail Removed)> wrote in message
> news:4011B2E9-7F93-44E8-A3DF-(E-Mail Removed)...
>> I have a value of 20 in cell A1, how can I use this value in a formula.
>>
>> E.g. COUNTA("D11" & A1) - (I feel it should be similar to this )
>>
>> Sandy

>


 
Reply With Quote
 
Sandy
Guest
Posts: n/a

 
      02-17-2008, 06:14 PM
Don, Roger,

Thank you once again; as usual there is never just one way to do these
things, which always makes it very interesting to see the variety of the
solutions.

Sandy

"Sandy" <(E-Mail Removed)> wrote in message
news:4011B2E9-7F93-44E8-A3DF-(E-Mail Removed)...
> I have a value of 20 in cell A1, how can I use this value in a formula.
>
> E.g. COUNTA("D11" & A1) - (I feel it should be similar to this )
>
> Sandy


 
Reply With Quote
 
Sandy
Guest
Posts: n/a

 
      02-17-2008, 06:49 PM
Don

This one seems to count from D1130, whereas I was looking to count from
D1120.
I think it may be offsetting from the 11th row by the value of A1; 20 in my
case.

Sandy

"Don Guillett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> another
> =COUNTA(D11:OFFSET(D11,0,0,a1))
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Roger Govier" <roger@technology4unospamdotcodotuk> wrote in message
> news:7BE87F0D-ED99-4090-B087-(E-Mail Removed)...
>> Hi Sandy
>>
>> One way
>> =COUNTA(D11:INDEX(D,A1))
>>
>> --
>> Regards
>> Roger Govier
>>
>> "Sandy" <(E-Mail Removed)> wrote in message
>> news:4011B2E9-7F93-44E8-A3DF-(E-Mail Removed)...
>>> I have a value of 20 in cell A1, how can I use this value in a formula.
>>>
>>> E.g. COUNTA("D11" & A1) - (I feel it should be similar to this )
>>>
>>> Sandy

>>

>

 
Reply With Quote
 
Jeffri Huang
Guest
Posts: n/a

 
      02-19-2008, 06:59 AM
Try COUNTA("D11" & $A$1)

Sandy wrote:
> I have a value of 20 in cell A1, how can I use this value in a formula.
>
> E.g. COUNTA("D11" & A1) - (I feel it should be similar to this )
>
> Sandy

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
reference a range based on a cell value william kossack Excel Newsgroup 2 03-29-2007 02:16 PM
How do I reference a RANGE inside a Cell Formula? JimP Excel Newsgroup 1 09-25-2006 02:36 AM
use cell reference for named range elf21 Excel Newsgroup 5 02-20-2006 12:32 AM
Absolute Cell Reference Across A Range SamuelT Excel Newsgroup 5 11-08-2005 02:37 PM
More than 1 cell reference/range in formula 0-0 Wai Wai ^-^ Excel Newsgroup 2 09-07-2005 08:32 AM



All times are GMT. The time now is 02:09 PM.