#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default vlookup

Hi I have a table of data contaning
department name op number production


AA1 AA2 AA3
press op 10 40
wash op 10 90

A5 = press
b5 = op 10

i want to return the value of the identified op in b5 from the
identified department in a5
i am trying to use vlookup to achieve this


any suggestion on the best way forward


thanks


kevin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup

If you have the department name and want to return the op number, then maybe:

=vlookup(a5,aa1:ac3,2,false)

Debra Dalgleish has lots of notes:
http://www.contextures.com/xlFunctions02.html (for =vlookup())
and
http://contextures.com/xlFunctions02.html#Trouble

kevcar40 wrote:

Hi I have a table of data contaning
department name op number production

AA1 AA2 AA3
press op 10 40
wash op 10 90

A5 = press
b5 = op 10

i want to return the value of the identified op in b5 from the
identified department in a5
i am trying to use vlookup to achieve this

any suggestion on the best way forward

thanks

kevin


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default vlookup

thanks for reply dave

i want to check both department and op then return the value


On 1 Oct, 13:48, Dave Peterson wrote:
If you have the department name and want to return the op number, then maybe:

=vlookup(a5,aa1:ac3,2,false)

Debra Dalgleish has lots of notes:http://www.contextures.com/xlFunctions02.html*(for =vlookup())
andhttp://contextures.com/xlFunctions02.html#Trouble





kevcar40 wrote:

Hi I have a table of data contaning
department name * * * * * *op number * * * *production


AA1 * * * * * * * * * *AA2 * * * * * * * * * *AA3
press * * * * * * * * * op 10 * * * * * * * * *40
wash * * * * * * * * * op 10 * * * * * * * * * 90


A5 = press
b5 = op 10


i want to return the value of the identified op in b5 from the
identified department in a5
i am trying to use vlookup to achieve this


any suggestion on the best way forward


thanks


kevin


--

Dave Peterson- Hide quoted text -

- Show quoted text -




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup

=index($ac$1:$ac$3,match(1,(a5=$aa$1:$aa$3)*(b5=$a b$1:$ab$3),0))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.



kevcar40 wrote:

thanks for reply dave

i want to check both department and op then return the value

On 1 Oct, 13:48, Dave Peterson wrote:
If you have the department name and want to return the op number, then maybe:

=vlookup(a5,aa1:ac3,2,false)

Debra Dalgleish has lots of notes:http://www.contextures.com/xlFunctions02.html (for =vlookup())
andhttp://contextures.com/xlFunctions02.html#Trouble





kevcar40 wrote:

Hi I have a table of data contaning
department name op number production


AA1 AA2 AA3
press op 10 40
wash op 10 90


A5 = press
b5 = op 10


i want to return the value of the identified op in b5 from the
identified department in a5
i am trying to use vlookup to achieve this


any suggestion on the best way forward


thanks


kevin


--

Dave Peterson- Hide quoted text -

- Show quoted text -


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default vlookup

Dave
THankyou very much the array works a treat
thanks again

kevin

Dave Peterson wrote:

=index($ac$1:$ac$3,match(1,(a5=$aa$1:$aa$3)*(b5=$a b$1:$ab$3),0))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.



kevcar40 wrote:

thanks for reply dave

i want to check both department and op then return the value

On 1 Oct, 13:48, Dave Peterson wrote:
If you have the department name and want to return the op number, then maybe:

=vlookup(a5,aa1:ac3,2,false)

Debra Dalgleish has lots of notes:http://www.contextures.com/xlFunctions02.html (for =vlookup())
andhttp://contextures.com/xlFunctions02.html#Trouble





kevcar40 wrote:

Hi I have a table of data contaning
department name op number production

AA1 AA2 AA3
press op 10 40
wash op 10 90

A5 = press
b5 = op 10

i want to return the value of the identified op in b5 from the
identified department in a5
i am trying to use vlookup to achieve this

any suggestion on the best way forward

thanks

kevin

--

Dave Peterson- Hide quoted text -

- Show quoted text -


--

Dave Peterson

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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 08:51 PM.

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"