PC Review


Reply
Thread Tools Rate Thread

How do I assign a partial cell address using data?

 
 
YGSBill
Guest
Posts: n/a
 
      16th Jun 2009
I am new to Excel programming and have run into a problem.
I will try to describe as best as I can:

Cell A23 has text "ABC"
Cell B12 has formula which results in the number 23

What I would like to do in cell A99 is "=A23" where "A" is fixed and the
"23" comes from cell B12. In other words it would look something like this:
=A(B12)

The above does not work...even if I convert 23 to text.

Any suggestions?
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      16th Jun 2009
Maybe this:
=LEFT(A23,1)&B12

A simple recorded macro yields this:
Range("A99").Select
ActiveCell.FormulaR1C1 = "=LEFT(R[-76]C,1)&R[-87]C[1]"

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"YGSBill" wrote:

> I am new to Excel programming and have run into a problem.
> I will try to describe as best as I can:
>
> Cell A23 has text "ABC"
> Cell B12 has formula which results in the number 23
>
> What I would like to do in cell A99 is "=A23" where "A" is fixed and the
> "23" comes from cell B12. In other words it would look something like this:
> =A(B12)
>
> The above does not work...even if I convert 23 to text.
>
> Any suggestions?

 
Reply With Quote
 
YGSBill
Guest
Posts: n/a
 
      16th Jun 2009
Hi ryguy7272

Sorry...I do not understand...will the result be "ABC" as that is what I am
looking for?

Maybe I was not very clear in what I am trying to do. I am trying to come
up with a formula that will show the data from cell A23 in cell A99 using a
reference to cell A23 with "A" as fixed and "23" as the variable found in
cell B12.

Thank you

"ryguy7272" wrote:

> Maybe this:
> =LEFT(A23,1)&B12
>
> A simple recorded macro yields this:
> Range("A99").Select
> ActiveCell.FormulaR1C1 = "=LEFT(R[-76]C,1)&R[-87]C[1]"
>
> HTH,
> Ryan---
>
> --
> Ryan---
> If this information was helpful, please indicate this by clicking ''Yes''.
>
>
> "YGSBill" wrote:
>
> > I am new to Excel programming and have run into a problem.
> > I will try to describe as best as I can:
> >
> > Cell A23 has text "ABC"
> > Cell B12 has formula which results in the number 23
> >
> > What I would like to do in cell A99 is "=A23" where "A" is fixed and the
> > "23" comes from cell B12. In other words it would look something like this:
> > =A(B12)
> >
> > The above does not work...even if I convert 23 to text.
> >
> > Any suggestions?

 
Reply With Quote
 
RyGuy
Guest
Posts: n/a
 
      16th Jun 2009
You: Will the result be "ABC"?
Me: I don't understand what you mean. Please provide another example, or
restate you initial example.

You: I am trying to come up with a formula that will show the data from cell
A23 in cell A99 using a reference to cell A23 with "A" as fixed and "23" as
the variable found in cell B12.
Me: I think this is what I did, right. Did you try it?

Well, here is another idea. Put the name of your sheet in cell A1.
Assuming the sheet is named 'Sheet1', use this function anywhere (except A23
or B12):
=LEFT(A23,1)&INDIRECT("'" & A1 &"'!B12")

Good luck,
Ryan---

"YGSBill" wrote:

> Hi ryguy7272
>
> Sorry...I do not understand...will the result be "ABC" as that is what I am
> looking for?
>
> Maybe I was not very clear in what I am trying to do. I am trying to come
> up with a formula that will show the data from cell A23 in cell A99 using a
> reference to cell A23 with "A" as fixed and "23" as the variable found in
> cell B12.
>
> Thank you
>
> "ryguy7272" wrote:
>
> > Maybe this:
> > =LEFT(A23,1)&B12
> >
> > A simple recorded macro yields this:
> > Range("A99").Select
> > ActiveCell.FormulaR1C1 = "=LEFT(R[-76]C,1)&R[-87]C[1]"
> >
> > HTH,
> > Ryan---
> >
> > --
> > Ryan---
> > If this information was helpful, please indicate this by clicking ''Yes''.
> >
> >
> > "YGSBill" wrote:
> >
> > > I am new to Excel programming and have run into a problem.
> > > I will try to describe as best as I can:
> > >
> > > Cell A23 has text "ABC"
> > > Cell B12 has formula which results in the number 23
> > >
> > > What I would like to do in cell A99 is "=A23" where "A" is fixed and the
> > > "23" comes from cell B12. In other words it would look something like this:
> > > =A(B12)
> > >
> > > The above does not work...even if I convert 23 to text.
> > >
> > > Any suggestions?

 
Reply With Quote
 
YGSBill
Guest
Posts: n/a
 
      17th Jun 2009
Hi RyGuy

The result that I get is "A23" but the result that I want is "ABC".
I will try to explain differently...

I need to make a command that will display the contents of A23 in cell 99 by
using the known column "A" and getting the "23" from cell B12...in other
words, I need to be able to make the equivalent of "=A23" by using a variable
from B12. If B12 contained 25, I would like the equivalent of "=A25", etc.

That is why the result should read "ABC" as that is what is stored in A23.

"RyGuy" wrote:

> You: Will the result be "ABC"?
> Me: I don't understand what you mean. Please provide another example, or
> restate you initial example.
>
> You: I am trying to come up with a formula that will show the data from cell
> A23 in cell A99 using a reference to cell A23 with "A" as fixed and "23" as
> the variable found in cell B12.
> Me: I think this is what I did, right. Did you try it?
>
> Well, here is another idea. Put the name of your sheet in cell A1.
> Assuming the sheet is named 'Sheet1', use this function anywhere (except A23
> or B12):
> =LEFT(A23,1)&INDIRECT("'" & A1 &"'!B12")
>
> Good luck,
> Ryan---
>
> "YGSBill" wrote:
>
> > Hi ryguy7272
> >
> > Sorry...I do not understand...will the result be "ABC" as that is what I am
> > looking for?
> >
> > Maybe I was not very clear in what I am trying to do. I am trying to come
> > up with a formula that will show the data from cell A23 in cell A99 using a
> > reference to cell A23 with "A" as fixed and "23" as the variable found in
> > cell B12.
> >
> > Thank you
> >
> > "ryguy7272" wrote:
> >
> > > Maybe this:
> > > =LEFT(A23,1)&B12
> > >
> > > A simple recorded macro yields this:
> > > Range("A99").Select
> > > ActiveCell.FormulaR1C1 = "=LEFT(R[-76]C,1)&R[-87]C[1]"
> > >
> > > HTH,
> > > Ryan---
> > >
> > > --
> > > Ryan---
> > > If this information was helpful, please indicate this by clicking ''Yes''.
> > >
> > >
> > > "YGSBill" wrote:
> > >
> > > > I am new to Excel programming and have run into a problem.
> > > > I will try to describe as best as I can:
> > > >
> > > > Cell A23 has text "ABC"
> > > > Cell B12 has formula which results in the number 23
> > > >
> > > > What I would like to do in cell A99 is "=A23" where "A" is fixed and the
> > > > "23" comes from cell B12. In other words it would look something like this:
> > > > =A(B12)
> > > >
> > > > The above does not work...even if I convert 23 to text.
> > > >
> > > > Any suggestions?

 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      18th Jun 2009
In A99:

=INDIRECT("A" & B12)

Tim


On Jun 16, 1:49*pm, YGSBill <YGSB...@discussions.microsoft.com> wrote:
> I am new to Excel programming and have run into a problem.
> I will try to describe as best as I can:
>
> Cell A23 has text "ABC"
> Cell B12 has formula which results in the number 23
>
> What I would like to do in cell A99 is "=A23" where "A" is fixed and the
> "23" comes from cell B12. *In other words it would look something like this:
> =A(B12)
>
> The above does not work...even if I convert 23 to text.
>
> Any suggestions?


 
Reply With Quote
 
YGSBill
Guest
Posts: n/a
 
      18th Jun 2009
Thank you soooooo very much. Sometimes its the simple things that seem to
trip me up and you have helped me tremendously.

While on the subject, would you know how I would add the following to the
formula...assume that cell A23 is in Sheet2 and I am working in Sheet1...

If I put the text "Sheet2" in an empty cell on Sheet1 or reference Sheet2
directly, what would be the syntaxii used?

Again

Thank you

"Tim Williams" wrote:

> In A99:
>
> =INDIRECT("A" & B12)
>
> Tim
>
>
> On Jun 16, 1:49 pm, YGSBill <YGSB...@discussions.microsoft.com> wrote:
> > I am new to Excel programming and have run into a problem.
> > I will try to describe as best as I can:
> >
> > Cell A23 has text "ABC"
> > Cell B12 has formula which results in the number 23
> >
> > What I would like to do in cell A99 is "=A23" where "A" is fixed and the
> > "23" comes from cell B12. In other words it would look something like this:
> > =A(B12)
> >
> > The above does not work...even if I convert 23 to text.
> >
> > Any suggestions?

>
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      18th Jun 2009
=INDIRECT(F1&"!A"&B12)

With Sheet2 in F1 and 23 in B12





On Thu, 18 Jun 2009 01:15:01 -0700, YGSBill
<(E-Mail Removed)> wrote:

>Thank you soooooo very much. Sometimes its the simple things that seem to
>trip me up and you have helped me tremendously.
>
>While on the subject, would you know how I would add the following to the
>formula...assume that cell A23 is in Sheet2 and I am working in Sheet1...
>
>If I put the text "Sheet2" in an empty cell on Sheet1 or reference Sheet2
>directly, what would be the syntaxii used?
>
>Again
>
>Thank you
>
>"Tim Williams" wrote:
>
>> In A99:
>>
>> =INDIRECT("A" & B12)
>>
>> Tim
>>
>>
>> On Jun 16, 1:49 pm, YGSBill <YGSB...@discussions.microsoft.com> wrote:
>> > I am new to Excel programming and have run into a problem.
>> > I will try to describe as best as I can:
>> >
>> > Cell A23 has text "ABC"
>> > Cell B12 has formula which results in the number 23
>> >
>> > What I would like to do in cell A99 is "=A23" where "A" is fixed and the
>> > "23" comes from cell B12. In other words it would look something like this:
>> > =A(B12)
>> >
>> > The above does not work...even if I convert 23 to text.
>> >
>> > Any suggestions?

>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation of partial data in a cell. Chris Microsoft Excel Misc 2 8th Aug 2008 06:49 PM
Text Being Seen as Partial Cell Address =?Utf-8?B?TWlrZSBTLg==?= Microsoft Excel Misc 4 12th Mar 2007 08:12 PM
Assign the cell address with a function =?Utf-8?B?VC5NYWQ=?= Microsoft Excel Worksheet Functions 5 9th Feb 2007 03:21 AM
Bringing partial data from one cell into another Jack Taylor Microsoft Excel Worksheet Functions 2 5th Apr 2005 06:43 PM
Extract Partial Cell Data pjw23 Microsoft Excel Misc 7 21st Apr 2004 01:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 AM.