Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Horizontal and Vertical lookup

Hello, I was wondering if someone could help me complete the following.

I need to look up a values of A2 & B2 in sheet 2 and return the value in sheet 1 D2


Sheet 1 - Column B and C are data validation dropdown list.

A B C D
Date From To # Miles
Burr Holland Hill #N/A

Sheet 2
A B C
Burr Burr 0
Burr Dwight 2.8
Burr Holland Hill 5
Burr Jennings 4.4

Example

A B C D
Date From To # Miles
Burr Holland Hill 5

I tried =INDEX(Sheet2!C1:C4,MATCH(1,IF(Sheet2!A1:A4=C15,IF (Sheet2!B1:B4=F15,1)),0)) using control, shift enter and I end up with N/A in Sheet 1 D2.

Thank you/
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Horizontal and Vertical lookup

Hello Lisa,

Am Mon, 30 Apr 2012 13:45:03 +0000 schrieb Lisa M:

Example

A B C D
Date From To # Miles
Burr Holland Hill 5


try:
=INDEX(Sheet2!C1:C100,MATCH(B2&C2,Sheet2!A1:A100&S heet2!B1:B100,0))
Array formula to enter with CTRL+Shift+Enter


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Posts: 2
Default

Thank you very much for your help! I will give this a try.
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
Need an Excell function that can lookup vertical AND horizontal Piet vd Berg Excel Worksheet Functions 4 April 3rd 23 10:56 AM
Vertical to Horizontal Terry Excel Discussion (Misc queries) 3 November 25th 07 04:11 AM
Need lookup of data both vertical and horizontal rmargh Excel Discussion (Misc queries) 2 November 21st 07 05:10 PM
Vertical into Horizontal dthmtlgod Excel Programming 1 February 22nd 06 04:34 PM
Vertical to horizontal swchee Excel Discussion (Misc queries) 5 June 20th 05 04:25 AM


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