Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Vlookup formula with more than one value to lookup.

I'm trying to return a value based on what cell has the 'x' marked:

Heavy Gen Purpose Truck 13k lbs
Land
x Light Duty/Truck Trailer
Leasehold Improvements-15 Yrs
Leasehold Improvements-20 Yrs
Machinery
Office Equipment

Cell A3 has the "X", cell B3 is what I want to use to lookup the value
to return the correct depreciation years.

How can I use the vlookup formula to return column B information based
on where column A's 'x' is located?

Thanks for your knowledge.

William
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default Vlookup formula with more than one value to lookup.

On Mar 13, 7:52 am, William G wrote:
I'm trying to return a value based on what cell has the 'x' marked:

Heavy Gen Purpose Truck 13k lbs
Land
x Light Duty/Truck Trailer
Leasehold Improvements-15 Yrs
Leasehold Improvements-20 Yrs
Machinery
Office Equipment

Cell A3 has the "X", cell B3 is what I want to use to lookup the value
to return the correct depreciation years.

How can I use the vlookup formula to return column B information based
on where column A's 'x' is located?

Thanks for your knowledge.

William


Use nested vlookups. One vlookup looks up the "X" and returns the
item. This vlookup's returned value will need to be the first argument
of the other vlookup which looks up the item and returns its
"depreciation years".

For example, if the above table's address is A1:B7 and the
"depreciation years" column is the 5th column of another table with
address F1:L100 then...

=VLOOKUP(VLOOKUP("X",A1:A7,2,FALSE),F1:L100,5,FALS E)

Ken Johnson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Vlookup formula with more than one value to lookup.

On Mar 12, 3:08*pm, Ken Johnson wrote:
On Mar 13, 7:52 am, William G wrote:





I'm trying to return a value based on what cell has the 'x' marked:


* * *Heavy Gen Purpose Truck 13k lbs
* * *Land
*x *Light Duty/Truck Trailer
* * *Leasehold Improvements-15 Yrs
* * *Leasehold Improvements-20 Yrs
* * *Machinery
* * *Office Equipment


Cell A3 has the "X", cell B3 is what I want to use to lookup the value
to return the correct depreciation years.


How can I use the vlookup formula to return column B information based
on where column A's 'x' is located?


Thanks for your knowledge.


William


Use nested vlookups. One vlookup looks up the "X" and returns the
item. This vlookup's returned value will need to be the first argument
of the other vlookup which looks up the item and returns its
"depreciation years".

For example, if the above table's address is A1:B7 and the
"depreciation years" column is the 5th column of another table with
address F1:L100 then...

=VLOOKUP(VLOOKUP("X",A1:A7,2,FALSE),F1:L100,5,FALS E)

Ken Johnson- Hide quoted text -

- Show quoted text -


Thank you...that was helpful and worked perfect.

Thanks!!!!
William G
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default Vlookup formula with more than one value to lookup.

On Mar 13, 9:26 am, William G wrote:
On Mar 12, 3:08 pm, Ken Johnson wrote:



On Mar 13, 7:52 am, William G wrote:


I'm trying to return a value based on what cell has the 'x' marked:


Heavy Gen Purpose Truck 13k lbs
Land
x Light Duty/Truck Trailer
Leasehold Improvements-15 Yrs
Leasehold Improvements-20 Yrs
Machinery
Office Equipment


Cell A3 has the "X", cell B3 is what I want to use to lookup the value
to return the correct depreciation years.


How can I use the vlookup formula to return column B information based
on where column A's 'x' is located?


Thanks for your knowledge.


William


Use nested vlookups. One vlookup looks up the "X" and returns the
item. This vlookup's returned value will need to be the first argument
of the other vlookup which looks up the item and returns its
"depreciation years".


For example, if the above table's address is A1:B7 and the
"depreciation years" column is the 5th column of another table with
address F1:L100 then...


=VLOOKUP(VLOOKUP("X",A1:A7,2,FALSE),F1:L100,5,FALS E)


Ken Johnson- Hide quoted text -


- Show quoted text -


Thank you...that was helpful and worked perfect.

Thanks!!!!
William G


You're welcome.
Thanks for the feedback.

Ken Johnson
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
using vlookup to lookup a formula john Excel Discussion (Misc queries) 2 August 19th 07 01:45 PM
Help with Lookup(), VLookup phil Excel Worksheet Functions 6 February 8th 07 01:06 AM
LOOKUP or VLOOKUP MichelleS Excel Worksheet Functions 9 October 20th 06 02:11 PM
Formula using IF? Vlookup? Lookup? I'm not sure. CJ Excel Worksheet Functions 3 September 13th 06 05:27 PM
Lookup without VLOOKUP? J New Users to Excel 6 November 17th 05 06:57 AM


All times are GMT +1. The time now is 01:13 PM.

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

About Us

"It's about Microsoft Excel"