Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kikkoman
 
Posts: n/a
Default HELP!! Lookup multiple criteria

I need to compare differences in prices(Col D) between this year (sheet1) and
last year (sheet2) if they are the same Type of vehicle (Col A), Same colour
(Col B), and same type of transmission (Col C)

eg, Auto, Red Car will be $1,100 cheaper, because it is in last year the
same car costs $2100 compare to this year's $1,000
likewise, a blue AWD with Semi-auto would be $1,200 dearer compared to last
year.

in Sheet 1,[this year]
A B C D
1 Car Red Auto 1000
2 AWD Blue Semi 4500
3 Truck Yellow Auto 4500

In Sheet 2 [last year]
A B C D
1 Truck Green Auto 5000
2 Ute Yellow Man 3500
3 Car Red Auto 2100
4 AWD Blue Semi 3100

I tried using this formula but keep getting too many arguments.

=sheet1!$d1-INDEX(sheet2!$d$1:$d$4,MATCH(1,(--sheet1!$A1=sheet2!$a$1:$a$4),(--sheet1!$B1=sheet2!$b$1:$b$4),(--sheet1!$C1=sheet2!$c$1:$c$4)),0)

Any help will be much appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default HELP!! Lookup multiple criteria

=Sheet1!D1-INDEX(Sheet2!D1:D4,MATCH(1,(Sheet1!A1=Sheet2!A1:A4 )*(Sheet1!B1=Sh
eet2!B1:B4)*(Sheet1!C1=Sheet2!C1:C4),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Kikkoman" wrote in message
...
I need to compare differences in prices(Col D) between this year (sheet1)

and
last year (sheet2) if they are the same Type of vehicle (Col A), Same

colour
(Col B), and same type of transmission (Col C)

eg, Auto, Red Car will be $1,100 cheaper, because it is in last year the
same car costs $2100 compare to this year's $1,000
likewise, a blue AWD with Semi-auto would be $1,200 dearer compared to

last
year.

in Sheet 1,[this year]
A B C D
1 Car Red Auto 1000
2 AWD Blue Semi 4500
3 Truck Yellow Auto 4500

In Sheet 2 [last year]
A B C D
1 Truck Green Auto 5000
2 Ute Yellow Man 3500
3 Car Red Auto 2100
4 AWD Blue Semi 3100

I tried using this formula but keep getting too many arguments.


=sheet1!$d1-INDEX(sheet2!$d$1:$d$4,MATCH(1,(--sheet1!$A1=sheet2!$a$1:$a$4),(
--sheet1!$B1=sheet2!$b$1:$b$4),(--sheet1!$C1=sheet2!$c$1:$c$4)),0)

Any help will be much appreciated.



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
Get cell value with multiple criteria lookup James Hobart Excel Worksheet Functions 1 October 28th 05 07:51 PM
Multiple Criteria in SumProduct, N/A Result dcd123 Excel Worksheet Functions 7 October 7th 05 01:26 PM
Counting by multiple criteria Risky Dave Excel Worksheet Functions 4 September 28th 05 01:29 PM
Dynamic range names, multiple criteria, sumproduct [email protected] Excel Discussion (Misc queries) 1 September 20th 05 02:58 AM
COUNTIF or SUM function (Multiple criteria) HELP!! Australia Excel Worksheet Functions 3 September 19th 05 07:39 AM


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