Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brad
 
Posts: n/a
Default Lookup function (maybe)

On tab A
number amount
123 10000
123 20000
456 30000
789 15000
789 10000

On tab B
number amount phase
123 10000 1
123 20000 2
123 45000 3
456 30000 1
789 15000 1
789 650000 2
789 10000 3

How can I attach the phase number to the correct element on tab A (ie that
the amount and the number match)? Tab A has 13000 lines, Tab B has 44000
lines

I thought about concatenating the number and amount fields together and
doing a lookup based on that, does anyone have a better solution?
  #2   Report Post  
Domenic
 
Posts: n/a
Default Lookup function (maybe)

Assuming that Sheet1 contains the information from Tab A, and Sheet2
contains the information from Tab B, try the following...

C2, copied down:

=INDEX(Sheet2!$C$2:$C$8,MATCH(1,(Sheet2!$A$2:$A$8= Sheet1!A2)*(Sheet2!$B$2
:$B$8=Sheet1!B2),0))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Adjust the
references accordingly.

However, your solution which involves concatenation is more efficient
and you'll probably notice the difference in speed.

Hope this helps!

In article ,
"Brad" wrote:

On tab A
number amount
123 10000
123 20000
456 30000
789 15000
789 10000

On tab B
number amount phase
123 10000 1
123 20000 2
123 45000 3
456 30000 1
789 15000 1
789 650000 2
789 10000 3

How can I attach the phase number to the correct element on tab A (ie that
the amount and the number match)? Tab A has 13000 lines, Tab B has 44000
lines

I thought about concatenating the number and amount fields together and
doing a lookup based on that, does anyone have a better solution?

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 Function help marlea Excel Discussion (Misc queries) 2 August 23rd 05 07:30 PM
Lookup Function Problems FFW Excel Worksheet Functions 2 August 21st 05 04:22 PM
Complicated lookup function chrisrowe_cr Excel Worksheet Functions 4 July 19th 05 05:52 PM
lookup function 1 Colboyfx Excel Worksheet Functions 4 July 15th 05 09:15 AM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM


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