The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Excel Forum > Worksheet Functions


Worksheet Functions Post questions in this forum if they are related to using Microsoft Excel Worksheet Functions, e.g Forumale or built in functionality etc.

Hey there!

It looks like you're enjoying but haven't created an account yet. Why not take a minute to register for your own free account now? As a member you get free access to all of our forums and posts plus the ability to post your own messages, communicate directly with other members and much more. Register now!

Already a member? Login at the top of this page to stop seeing this message.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 4th July 2009, 04:43 PM
BruceG
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Formula for Range area within VLookup?

------ Register to get rid of these "In Post" ads! ------


Is it possible to use a formula referenced by a cell as the range area within
Vlookup?

I am trying to do the following vlookup -

vlookup(j51,+p51,2)
j51 is a valid receipt number I am trying to look up for an invenotry item.

+p51 is a formula of other vlookup concatenated together to form a range
value -
it looks like AE$4:AH$30 done by the formula
=+"AE$"&+VLOOKUP(C51,B$8:G$22,5)&+":"&+("AH$"&+VLOOKUP(C51,B$8:G$22,6)) This
define the specific area of a particular inventory item and where all the
recepits. Each item has a different area and no set row amount.

For exxample Item ABC will be in rows 4-30 whereas CDE would be in rows
31-91. The receipts nuumber will alwats be in column AE of the receipt table
but the receipt # repeat for different items. Meaning Receipts #123 is in
both ABC & CDE.Which is why I was defining the item area first, then focusing
on receipt number.

2 is the column number in the rea of AE - AH.

The purpose of this lookup is to bring in a receipt # date so I can comppare
it against a sold date to find out how long an item stood arond in stock.

Is this possible or is there a better way to do this?

Thank you in advance for any help.

Bruce



Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #2 (permalink)  
Old 4th July 2009, 05:24 PM
Bernard Liengme
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Re: Formula for Range area within VLookup?

------ Register to get rid of these "In Post" ads! ------


You can use the INDIRECT function

In A1:B 20 have
A 10
B 12
C 14
D 16
E 18
etc.....

In E1:G1 I have
A1:B10 C 14
The formula in G1 is =VLOOKUP(F1,INDIRECT(E1),2)
This is equivalent to =VLOOKUP(F1,A1:B10,2) and returns the value 14

So it looks like you need to use =vlookup(j51,INDIRECT(p51),2)

Please note that none of the plus signs (+) in any of your formulas are
needed.
Did you begin life a Lotus-123 users where + was needed?

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"BruceG" <BruceG@discussions.microsoft.com> wrote in message
news:E05BAA7C-ECFF-4BB3-BF7A-69EF8813E373@microsoft.com...
> Is it possible to use a formula referenced by a cell as the range area
> within
> Vlookup?
>
> I am trying to do the following vlookup -
>
> vlookup(j51,+p51,2)
> j51 is a valid receipt number I am trying to look up for an invenotry
> item.
>
> +p51 is a formula of other vlookup concatenated together to form a range
> value -
> it looks like AE$4:AH$30 done by the formula
> =+"AE$"&+VLOOKUP(C51,B$8:G$22,5)&+":"&+("AH$"&+VLOOKUP(C51,B$8:G$22,6))
> This
> define the specific area of a particular inventory item and where all the
> recepits. Each item has a different area and no set row amount.
>
> For exxample Item ABC will be in rows 4-30 whereas CDE would be in rows
> 31-91. The receipts nuumber will alwats be in column AE of the receipt
> table
> but the receipt # repeat for different items. Meaning Receipts #123 is in
> both ABC & CDE.Which is why I was defining the item area first, then
> focusing
> on receipt number.
>
> 2 is the column number in the rea of AE - AH.
>
> The purpose of this lookup is to bring in a receipt # date so I can
> comppare
> it against a sold date to find out how long an item stood arond in stock.
>
> Is this possible or is there a better way to do this?
>
> Thank you in advance for any help.
>
> Bruce
>
>
>


Reply to this post


Did you find this post helpful? Yes | No
  #3 (permalink)  
Old 4th July 2009, 06:53 PM
BruceG
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Re: Formula for Range area within VLookup?

------ Register to get rid of these "In Post" ads! ------


That dud it.

Thank you, Bernard. And yes, I used to use 123.

Everyone, have a safe 4th.

Bruce

"Bernard Liengme" wrote:

> You can use the INDIRECT function
>
> In A1:B 20 have
> A 10
> B 12
> C 14
> D 16
> E 18
> etc.....
>
> In E1:G1 I have
> A1:B10 C 14
> The formula in G1 is =VLOOKUP(F1,INDIRECT(E1),2)
> This is equivalent to =VLOOKUP(F1,A1:B10,2) and returns the value 14
>
> So it looks like you need to use =vlookup(j51,INDIRECT(p51),2)
>
> Please note that none of the plus signs (+) in any of your formulas are
> needed.
> Did you begin life a Lotus-123 users where + was needed?
>
> best wishes
> --
> Bernard Liengme
> Microsoft Excel MVP
> http://people.stfx.ca/bliengme
>
> "BruceG" <BruceG@discussions.microsoft.com> wrote in message
> news:E05BAA7C-ECFF-4BB3-BF7A-69EF8813E373@microsoft.com...
> > Is it possible to use a formula referenced by a cell as the range area
> > within
> > Vlookup?
> >
> > I am trying to do the following vlookup -
> >
> > vlookup(j51,+p51,2)
> > j51 is a valid receipt number I am trying to look up for an invenotry
> > item.
> >
> > +p51 is a formula of other vlookup concatenated together to form a range
> > value -
> > it looks like AE$4:AH$30 done by the formula
> > =+"AE$"&+VLOOKUP(C51,B$8:G$22,5)&+":"&+("AH$"&+VLOOKUP(C51,B$8:G$22,6))
> > This
> > define the specific area of a particular inventory item and where all the
> > recepits. Each item has a different area and no set row amount.
> >
> > For exxample Item ABC will be in rows 4-30 whereas CDE would be in rows
> > 31-91. The receipts nuumber will alwats be in column AE of the receipt
> > table
> > but the receipt # repeat for different items. Meaning Receipts #123 is in
> > both ABC & CDE.Which is why I was defining the item area first, then
> > focusing
> > on receipt number.
> >
> > 2 is the column number in the rea of AE - AH.
> >
> > The purpose of this lookup is to bring in a receipt # date so I can
> > comppare
> > it against a sold date to find out how long an item stood arond in stock.
> >
> > Is this possible or is there a better way to do this?
> >
> > Thank you in advance for any help.
> >
> > Bruce
> >
> >
> >

>
>

Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #4 (permalink)  
Old 4th July 2009, 06:59 PM
Bernard Liengme
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Re: Formula for Range area within VLookup?

------ Register to get rid of these "In Post" ads! ------


Thanks for the feedback
I had a safe 1st as I'm a Canadian
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"BruceG" <BruceG@discussions.microsoft.com> wrote in message
news:892E07FE-A911-4E8D-A9BD-536982C38D0B@microsoft.com...
> That dud it.
>
> Thank you, Bernard. And yes, I used to use 123.
>
> Everyone, have a safe 4th.
>
> Bruce
>
> "Bernard Liengme" wrote:
>
>> You can use the INDIRECT function
>>
>> In A1:B 20 have
>> A 10
>> B 12
>> C 14
>> D 16
>> E 18
>> etc.....
>>
>> In E1:G1 I have
>> A1:B10 C 14
>> The formula in G1 is =VLOOKUP(F1,INDIRECT(E1),2)
>> This is equivalent to =VLOOKUP(F1,A1:B10,2) and returns the value 14
>>
>> So it looks like you need to use =vlookup(j51,INDIRECT(p51),2)
>>
>> Please note that none of the plus signs (+) in any of your formulas are
>> needed.
>> Did you begin life a Lotus-123 users where + was needed?
>>
>> best wishes
>> --
>> Bernard Liengme
>> Microsoft Excel MVP
>> http://people.stfx.ca/bliengme
>>
>> "BruceG" <BruceG@discussions.microsoft.com> wrote in message
>> news:E05BAA7C-ECFF-4BB3-BF7A-69EF8813E373@microsoft.com...
>> > Is it possible to use a formula referenced by a cell as the range area
>> > within
>> > Vlookup?
>> >
>> > I am trying to do the following vlookup -
>> >
>> > vlookup(j51,+p51,2)
>> > j51 is a valid receipt number I am trying to look up for an invenotry
>> > item.
>> >
>> > +p51 is a formula of other vlookup concatenated together to form a
>> > range
>> > value -
>> > it looks like AE$4:AH$30 done by the formula
>> > =+"AE$"&+VLOOKUP(C51,B$8:G$22,5)&+":"&+("AH$"&+VLOOKUP(C51,B$8:G$22,6))
>> > This
>> > define the specific area of a particular inventory item and where all
>> > the
>> > recepits. Each item has a different area and no set row amount.
>> >
>> > For exxample Item ABC will be in rows 4-30 whereas CDE would be in rows
>> > 31-91. The receipts nuumber will alwats be in column AE of the receipt
>> > table
>> > but the receipt # repeat for different items. Meaning Receipts #123 is
>> > in
>> > both ABC & CDE.Which is why I was defining the item area first, then
>> > focusing
>> > on receipt number.
>> >
>> > 2 is the column number in the rea of AE - AH.
>> >
>> > The purpose of this lookup is to bring in a receipt # date so I can
>> > comppare
>> > it against a sold date to find out how long an item stood arond in
>> > stock.
>> >
>> > Is this possible or is there a better way to do this?
>> >
>> > Thank you in advance for any help.
>> >
>> > Bruce
>> >
>> >
>> >

>>
>>


Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
area, formula, range, vlookup

New topics in Worksheet Functions


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 12:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent