PC Review


Reply
Thread Tools Rate Thread

Absolute reference

 
 
Sandy
Guest
Posts: n/a
 
      28th Jul 2007
How can the following be converted to an absolute reference

FormulaR1C1 =
"=SUMPRODUCT(--(R[5]C[-54]:R[30006]C[-54]=""Ball""),--(R[5]C:R[30006]C=""Hit""))"

TIA
Sandy


 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      28th Jul 2007
It's impossible to convert the cell references to absolute references
without know what cell this formula is going in.

So here's how you can do the conversion:
-In a new worksheet switch to the R1C1 reference style (Tools, Options,
General).
-Copy the formula
("=SUMPRODUCT(--(R[5]C[-54]:R[30006]C[-54]=""Ball""),--(R[5]C:R[30006]C=""Hit""))")
into its intended cell (the one the macro would put it in).
-Convert this to a formula from text by removing the extra quotes (at the
beginning, end and around 'Ball' and 'Hit').
-Switch Excel out of the R1C1 reference style.
-Make all the cell references in the formula absolute by putting "$" before
every column letter and row number (e.g., T17 - > $T$17).
-Switch back to the R1C1 reference style.
-Copy the resulting formula to VB, adding back the extra quotes it needs.
--
Jim
"Sandy" <(E-Mail Removed)> wrote in message
news:OG1B$(E-Mail Removed)...
> How can the following be converted to an absolute reference
>
> FormulaR1C1 =
> "=SUMPRODUCT(--(R[5]C[-54]:R[30006]C[-54]=""Ball""),--(R[5]C:R[30006]C=""Hit""))"
>
> TIA
> Sandy
>



 
Reply With Quote
 
Sandy
Guest
Posts: n/a
 
      28th Jul 2007
Excellent Jim, I understand how it all works much better now
Thank You
Sandy

"Jim Rech" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> It's impossible to convert the cell references to absolute references
> without know what cell this formula is going in.
>
> So here's how you can do the conversion:
> -In a new worksheet switch to the R1C1 reference style (Tools, Options,
> General).
> -Copy the formula
> ("=SUMPRODUCT(--(R[5]C[-54]:R[30006]C[-54]=""Ball""),--(R[5]C:R[30006]C=""Hit""))")
> into its intended cell (the one the macro would put it in).
> -Convert this to a formula from text by removing the extra quotes (at the
> beginning, end and around 'Ball' and 'Hit').
> -Switch Excel out of the R1C1 reference style.
> -Make all the cell references in the formula absolute by putting "$"
> before every column letter and row number (e.g., T17 - > $T$17).
> -Switch back to the R1C1 reference style.
> -Copy the resulting formula to VB, adding back the extra quotes it needs.
> --
> Jim
> "Sandy" <(E-Mail Removed)> wrote in message
> news:OG1B$(E-Mail Removed)...
>> How can the following be converted to an absolute reference
>>
>> FormulaR1C1 =
>> "=SUMPRODUCT(--(R[5]C[-54]:R[30006]C[-54]=""Ball""),--(R[5]C:R[30006]C=""Hit""))"
>>
>> TIA
>> Sandy
>>

>
>



 
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
Absolute cell reference will not remain absolute. Mike K Microsoft Excel Worksheet Functions 1 8th Oct 2008 07:12 PM
How can I do an Absolute Cell Reference but non Absolute Cell Pais =?Utf-8?B?Sm9obg==?= Microsoft Excel Programming 1 22nd Jul 2005 07:28 PM
How can I do an Absolute Cell Reference but non Absolute Cell Pais =?Utf-8?B?Sm9obg==?= Microsoft Excel Programming 0 22nd Jul 2005 06:23 PM
Absolute reference within a formula not really absolute Fred Microsoft Excel Worksheet Functions 3 1st Jul 2004 06:08 PM
Absolute absolute cell reference jon west Microsoft Excel Misc 2 9th Oct 2003 02:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:24 PM.