Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default how to lookup the values from multiple columns?

I want to take the amount of my expense head 5121 from Worksheet ''Jan09",but
in the same file 5121 is coming with different departments such as
5121-100,5121-120,5121-140 i want to retreive the amount of 5121-281 both are
in two different columns, can anyone solve my problem please
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default how to lookup the values from multiple columns?

you can concatenate the two cells together to form a single lookup reference:

Example:
=VLOOKUP(A2&"-"&A3,Jan09!A2:D200,2,FALSE)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Faiz" wrote:

I want to take the amount of my expense head 5121 from Worksheet ''Jan09",but
in the same file 5121 is coming with different departments such as
5121-100,5121-120,5121-140 i want to retreive the amount of 5121-281 both are
in two different columns, can anyone solve my problem please

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default how to lookup the values from multiple columns?

Thanks Luke,

I would try to make my query,more clear to you

Monthly Exp.xlsx

Cloumn 1 Col2 Col3
Expense Heads Dept Amount
5121 100 Formula(Need the data here)
5122 100 Formula(Need the data here)
5123 100 Formula(Need the data here)



Jan09.xlsx

Expense Heads Dept Amount
5121 100 6500.00
5122 100 1215.00
5123 100 200.00
5121 120 3500.00
5122 120 1215.00
5123 120 3250.00
5121 140 2500.00
5122 140 1215.00
5123 140 3150.00

I need in worksheet 1 i.e Monthly exp in column 3 to look(bring) the amount
from sheet Jan09, amount of 5121 where the dept is 100.

It is clearly visible that 5121 head is present with dept 100,120,140 in my
example

Could you please help me on this?

Hope that is clear to you







"Luke M" wrote:

you can concatenate the two cells together to form a single lookup reference:

Example:
=VLOOKUP(A2&"-"&A3,Jan09!A2:D200,2,FALSE)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Faiz" wrote:

I want to take the amount of my expense head 5121 from Worksheet ''Jan09",but
in the same file 5121 is coming with different departments such as
5121-100,5121-120,5121-140 i want to retreive the amount of 5121-281 both are
in two different columns, can anyone solve my 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
Lookup across multiple columns within multiple sheets Garnet Excel Discussion (Misc queries) 2 June 25th 08 11:46 PM
Multiple lookup values and adding multiple rates across together ssolomon Excel Worksheet Functions 5 November 16th 07 09:02 PM
Lookup all values within multiple columns and copy to new column Tommy[_4_] Excel Discussion (Misc queries) 3 August 17th 07 01:44 AM
can vlookup be used to if the lookup values are in two columns? Hobbes2006 Excel Worksheet Functions 0 December 1st 06 12:23 AM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM


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