#1   Report Post  
Esrei
 
Posts: n/a
Default Lookup formulas

I have 2 spread sheets:

Weeknr Code amount
4 2001 80.00
4 2002 90.00
5 2001 100.00
5 2003 10.00

2ndt sheet
A B C
1. Week nr 2001 2002
2. 4
3. 4
4. 4

I want to insert a formula in B2:C4 the amount in spreadsheet 1 if code is
equal to B1and C1 and week nr is equal to A2-A4.

Thanks

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=INDEX(Sheet1!$C$1:$C$5,MATCH($A2&B$1,Sheet1!$A$1: $A$5&Sheet1!$B$1:$B$5,0))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Esrei" wrote in message
...
I have 2 spread sheets:

Weeknr Code amount
4 2001 80.00
4 2002 90.00
5 2001 100.00
5 2003 10.00

2ndt sheet
A B C
1. Week nr 2001 2002
2. 4
3. 4
4. 4

I want to insert a formula in B2:C4 the amount in spreadsheet 1 if code is
equal to B1and C1 and week nr is equal to A2-A4.

Thanks



  #3   Report Post  
Esrei
 
Posts: n/a
Default

This is my actual formula it returns #value
=+INDEX(Sheet2!D1:D255,MATCH(K1&I2,Sheet2!B1:B255& Sheet2!C1:C255,0))

thanks

"Bob Phillips" wrote:

=INDEX(Sheet1!$C$1:$C$5,MATCH($A2&B$1,Sheet1!$A$1: $A$5&Sheet1!$B$1:$B$5,0))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Esrei" wrote in message
...
I have 2 spread sheets:

Weeknr Code amount
4 2001 80.00
4 2002 90.00
5 2001 100.00
5 2003 10.00

2ndt sheet
A B C
1. Week nr 2001 2002
2. 4
3. 4
4. 4

I want to insert a formula in B2:C4 the amount in spreadsheet 1 if code is
equal to B1and C1 and week nr is equal to A2-A4.

Thanks




  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Did you hit ctrl-shift-enter instead of just enter?

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.)

ps. You don't need that first + either.
=INDEX(Sheet2!D1:D255,MATCH(K1&I2,Sheet2!B1:B255&S heet2!C1:C255,0))
(ctrl-shift-enter)

works fine.


Esrei wrote:

This is my actual formula it returns #value
=+INDEX(Sheet2!D1:D255,MATCH(K1&I2,Sheet2!B1:B255& Sheet2!C1:C255,0))

thanks

"Bob Phillips" wrote:

=INDEX(Sheet1!$C$1:$C$5,MATCH($A2&B$1,Sheet1!$A$1: $A$5&Sheet1!$B$1:$B$5,0))

as an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Esrei" wrote in message
...
I have 2 spread sheets:

Weeknr Code amount
4 2001 80.00
4 2002 90.00
5 2001 100.00
5 2003 10.00

2ndt sheet
A B C
1. Week nr 2001 2002
2. 4
3. 4
4. 4

I want to insert a formula in B2:C4 the amount in spreadsheet 1 if code is
equal to B1and C1 and week nr is equal to A2-A4.

Thanks





--

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
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Using SumIF formulas with multiple lookup values Chris Freeman Excel Worksheet Functions 3 April 13th 05 01:40 AM
How do I highlight all lookup formulas in a worksheet in one shot. JT Excel Discussion (Misc queries) 7 March 4th 05 10:35 PM
Lookup last in column formulas L. Howard Kittle Excel Discussion (Misc queries) 6 January 15th 05 05:38 AM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 06:13 AM.

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"