Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CAM CAM is offline
external usenet poster
 
Posts: 65
Default Vlookup - picking from a formula.

Hello,

I am using Excel 2007 I have a long GL account number and I only want to
pick up a certain account number. I use this in my formula (=MID(F4,5,4),
which works fine I get the number (8025), but here is my problem I try to
use VLookup based on the number 8025 (logical_test) it does not work. If I
remove the =MID(F4,5,4) from the cell and replace it with 8025 the Vlookup
works. I want to use my code =MID(F4,5,4), but the VLookup won't work. Is
there a work around solution or different way to code? Any tips will be
appreciated. Thank you in advance.

Cheers

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Vlookup - picking from a formula.

try something like this:

=VLOOKUP(VALUE(D13),F4:H13,2)

--


Gary

"CAM" wrote in message
...
Hello,

I am using Excel 2007 I have a long GL account number and I only want to pick
up a certain account number. I use this in my formula (=MID(F4,5,4), which
works fine I get the number (8025), but here is my problem I try to use
VLookup based on the number 8025 (logical_test) it does not work. If I remove
the =MID(F4,5,4) from the cell and replace it with 8025 the Vlookup works. I
want to use my code =MID(F4,5,4), but the VLookup won't work. Is there a work
around solution or different way to code? Any tips will be appreciated. Thank
you in advance.

Cheers



  #3   Report Post  
Posted to microsoft.public.excel.programming
CAM CAM is offline
external usenet poster
 
Posts: 65
Default Vlookup - picking from a formula.

Thanks Gary,

Works great!


"Gary Keramidas" <GKeramidasAtMsn.com wrote in message
...
try something like this:

=VLOOKUP(VALUE(D13),F4:H13,2)

--


Gary

"CAM" wrote in message
...
Hello,

I am using Excel 2007 I have a long GL account number and I only want to
pick up a certain account number. I use this in my formula
(=MID(F4,5,4), which works fine I get the number (8025), but here is my
problem I try to use VLookup based on the number 8025 (logical_test) it
does not work. If I remove the =MID(F4,5,4) from the cell and replace it
with 8025 the Vlookup works. I want to use my code =MID(F4,5,4), but the
VLookup won't work. Is there a work around solution or different way to
code? Any tips will be appreciated. Thank you in advance.

Cheers




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
Picking up part of a formula from another cell david Excel Worksheet Functions 6 October 2nd 07 07:00 PM
how to put 'SUM' formula in VB after picking up certain names and their bonus [email protected] Excel Discussion (Misc queries) 11 January 31st 07 10:19 AM
Conditional Vlookup - Cherry picking information from the table ar Wannabe Efficient Excel Discussion (Misc queries) 6 January 12th 07 02:41 PM
VLookup Not Picking Up Entire Phrase TerryM Excel Programming 1 September 22nd 04 03:35 PM
Cell formula, picking Text Gunnar Excel Programming 1 July 29th 03 01:07 PM


All times are GMT +1. The time now is 12:37 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"