ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VLookup (https://www.excelbanter.com/excel-programming/295160-vlookup.html)

fabalicious[_2_]

VLookup
 
Can anyone tell me what's wrong with this expression?


ActiveCell.FormulaR1C1 = VLookup("G-Factor:", R1C1:R100C6, 6, False)

There seems to be a problem with the lookup range ( R1C1:R100C6)
probably the syntax. The string "G-Factor:" is within the lookup rang
and correct, there's a value on the same row in column 6 and I reall
can't see what else could cause failure....

Thanks a lo

--
Message posted from http://www.ExcelForum.com


Rob Bovey

VLookup
 
This works for me:

ActiveCell.FormulaR1C1 = "=VLookup(""G-Factor:"", R1C1:R100C6, 6, False)"

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"fabalicious " wrote in message
...
Can anyone tell me what's wrong with this expression?


ActiveCell.FormulaR1C1 = VLookup("G-Factor:", R1C1:R100C6, 6, False)

There seems to be a problem with the lookup range ( R1C1:R100C6),
probably the syntax. The string "G-Factor:" is within the lookup range
and correct, there's a value on the same row in column 6 and I really
can't see what else could cause failure....

Thanks a lot


---
Message posted from http://www.ExcelForum.com/




Bob Phillips[_6_]

VLookup
 
Try this

ActiveCell.FormulaR1C1 = "=VLookup(""G-Factor:"", R1C1:R100C6, 6, False)"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"fabalicious " wrote in message
...
Can anyone tell me what's wrong with this expression?


ActiveCell.FormulaR1C1 = VLookup("G-Factor:", R1C1:R100C6, 6, False)

There seems to be a problem with the lookup range ( R1C1:R100C6),
probably the syntax. The string "G-Factor:" is within the lookup range
and correct, there's a value on the same row in column 6 and I really
can't see what else could cause failure....

Thanks a lot


---
Message posted from http://www.ExcelForum.com/




fabalicious[_3_]

VLookup
 
...so it does for me

Cheers
fabalciou

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 12:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com