Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default vlookup error

I have two different cells containing two data say C1=1,D1=2, I also have a
table containing data say F1:K5 where data in column F is a combination of C1
& D1 with "." inbetween exp 1.2, I use vlookup(C1&"."&D1,F1:K5,3) in cell A1
to display the result of relative cell data in column K, somtimes it works
but somtimes it doesn't and says "moving or deleting cells caused an invalid
cell reference, or function is returning reference error".

Besides, I wrote a macro like ---Range("A1").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(C1&"".""&D1,F1:K5,3)"
It also shows the same error message, how can I solve this problem please?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default vlookup error

Try this

ActiveCell.Formula = "=VLOOKUP(C1&D1 ,F1:K5,3)"

Mike

"Seeker" wrote:

I have two different cells containing two data say C1=1,D1=2, I also have a
table containing data say F1:K5 where data in column F is a combination of C1
& D1 with "." inbetween exp 1.2, I use vlookup(C1&"."&D1,F1:K5,3) in cell A1
to display the result of relative cell data in column K, somtimes it works
but somtimes it doesn't and says "moving or deleting cells caused an invalid
cell reference, or function is returning reference error".

Besides, I wrote a macro like ---Range("A1").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(C1&"".""&D1,F1:K5,3)"
It also shows the same error message, how can I solve this problem please?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default vlookup error

In addition Mike's suggestion, are you copying the formula down to other
cells? If so, then the table array in the formula should be absolute with the
dollar signs like this:-

=VLOOKUP(C1&"."&D1,$F$1:$H$5,3)

--
Regards,

OssieMac


"Seeker" wrote:

I have two different cells containing two data say C1=1,D1=2, I also have a
table containing data say F1:K5 where data in column F is a combination of C1
& D1 with "." inbetween exp 1.2, I use vlookup(C1&"."&D1,F1:K5,3) in cell A1
to display the result of relative cell data in column K, somtimes it works
but somtimes it doesn't and says "moving or deleting cells caused an invalid
cell reference, or function is returning reference error".

Besides, I wrote a macro like ---Range("A1").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(C1&"".""&D1,F1:K5,3)"
It also shows the same error message, how can I solve this problem please?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default vlookup error

Hi Mike,
It works, tks

"Mike H" wrote:

Try this

ActiveCell.Formula = "=VLOOKUP(C1&D1 ,F1:K5,3)"

Mike

"Seeker" wrote:

I have two different cells containing two data say C1=1,D1=2, I also have a
table containing data say F1:K5 where data in column F is a combination of C1
& D1 with "." inbetween exp 1.2, I use vlookup(C1&"."&D1,F1:K5,3) in cell A1
to display the result of relative cell data in column K, somtimes it works
but somtimes it doesn't and says "moving or deleting cells caused an invalid
cell reference, or function is returning reference error".

Besides, I wrote a macro like ---Range("A1").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(C1&"".""&D1,F1:K5,3)"
It also shows the same error message, how can I solve this problem please?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP #N/A Error NM Excel Worksheet Functions 7 November 13th 08 09:41 PM
VLOOKUP error in VBA [email protected] Excel Discussion (Misc queries) 1 September 20th 06 03:57 PM
vlookup error Micayla Bergen Excel Discussion (Misc queries) 2 May 27th 05 02:35 AM
vlookup error na# Leigh Ann Excel Worksheet Functions 1 May 23rd 05 10:50 PM
vlookup error!! Samantha Excel Worksheet Functions 1 April 11th 05 11:02 AM


All times are GMT +1. The time now is 01:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"