If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Combing Relative and Direct Referencing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-04, 11:12
ontheDB ontheDB is offline
Registered User
 
Join Date: Sep 2003
Posts: 80
Combing Relative and Direct Referencing

Is it possible to combine both relative and direct referencing in a formula ?

for example, i am trying to do:

ActiveCell.FormulaR1C1 = _
"=VLOOKUP(RC[-1],$H$1:$K$10,2,False)"


the first value (RC[-1]) is relative, but the second ($H$1:$K$10) is not.
This is giving me an error
How else can i do this ?

thanks,
C
Reply With Quote
  #2 (permalink)  
Old 12-29-04, 11:30
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Quote:
Originally Posted by ontheDB
Is it possible to combine both relative and direct referencing in a formula ?

for example, i am trying to do:

ActiveCell.FormulaR1C1 = _
"=VLOOKUP(RC[-1],$H$1:$K$10,2,False)"


the first value (RC[-1]) is relative, but the second ($H$1:$K$10) is not.
This is giving me an error
How else can i do this ?
No, once you go to R1C1 notation, then the whole thing has to be the same R1C1 format.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 12-30-04, 08:16
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
you could reference the cells directly i.e.

=VLOOKUP(RC[-1],R1C8:R10C11,1,FALSE)

This should do the job you want
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

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