Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Index/Match - Lookup based on multiple column criteria

I have a 4 column spreadsheet:
A B C D
Customer Type Class
00001 0 General
00001 1 Premium
00001 6 Full Service
00001 9 Retail
00234 0 General
00234 6 Full Service
00234 9 Retail
12345 1 Premium
12345 6 Full Service

I would like to be able to lookup Customer numbers in Column A with a Type
"1" and return a "Premium" Class for all Types.

The intended results in column D would be:

A B C D
Customer Type Class
00001 0 General Premium
00001 1 Premium Premium
00001 6 Full Service Premium
00001 9 Retail Premium
00234 0 General General
00234 6 Full Service Full Service
00234 9 Retail Retail
12345 1 Premium Premium
12345 6 Full Service Premium

Thank you in advance for your help.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Index/Match - Lookup based on multiple column criteria

Enter with Ctrl+Shift+Enter:

=IF(ISNA(INDEX($C$2:$C$10,MATCH(1,(A2=$A$2:$A$10)* ($B$2:$B$10=1),0))),INDIRECT("C"&ROW()),INDEX($C$2 :$C$10,MATCH(1,(A2=$A$2:$A$10)*($B$2:$B$10=1),0)))

HTH

"Slider" wrote:

I have a 4 column spreadsheet:
A B C D
Customer Type Class
00001 0 General
00001 1 Premium
00001 6 Full Service
00001 9 Retail
00234 0 General
00234 6 Full Service
00234 9 Retail
12345 1 Premium
12345 6 Full Service

I would like to be able to lookup Customer numbers in Column A with a Type
"1" and return a "Premium" Class for all Types.

The intended results in column D would be:

A B C D
Customer Type Class
00001 0 General Premium
00001 1 Premium Premium
00001 6 Full Service Premium
00001 9 Retail Premium
00234 0 General General
00234 6 Full Service Full Service
00234 9 Retail Retail
12345 1 Premium Premium
12345 6 Full Service Premium

Thank you in advance for your help.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Index/Match - Lookup based on multiple column criteria

Here's another one:

=IF(SUMPRODUCT(--(A$2:A$10=A2),--(B$2:B$10=1)),"Premium",C2)

Copied down

Biff

"Slider" wrote in message
...
I have a 4 column spreadsheet:
A B C D
Customer Type Class
00001 0 General
00001 1 Premium
00001 6 Full Service
00001 9 Retail
00234 0 General
00234 6 Full Service
00234 9 Retail
12345 1 Premium
12345 6 Full Service

I would like to be able to lookup Customer numbers in Column A with a Type
"1" and return a "Premium" Class for all Types.

The intended results in column D would be:

A B C D
Customer Type Class
00001 0 General Premium
00001 1 Premium Premium
00001 6 Full Service Premium
00001 9 Retail Premium
00234 0 General General
00234 6 Full Service Full Service
00234 9 Retail Retail
12345 1 Premium Premium
12345 6 Full Service Premium

Thank you in advance for your help.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Index/Match - Lookup based on multiple column criteria

So much better than mine ... but another lesson learned!
"T. Valko" wrote:

Here's another one:

=IF(SUMPRODUCT(--(A$2:A$10=A2),--(B$2:B$10=1)),"Premium",C2)

Copied down

Biff

"Slider" wrote in message
...
I have a 4 column spreadsheet:
A B C D
Customer Type Class
00001 0 General
00001 1 Premium
00001 6 Full Service
00001 9 Retail
00234 0 General
00234 6 Full Service
00234 9 Retail
12345 1 Premium
12345 6 Full Service

I would like to be able to lookup Customer numbers in Column A with a Type
"1" and return a "Premium" Class for all Types.

The intended results in column D would be:

A B C D
Customer Type Class
00001 0 General Premium
00001 1 Premium Premium
00001 6 Full Service Premium
00001 9 Retail Premium
00234 0 General General
00234 6 Full Service Full Service
00234 9 Retail Retail
12345 1 Premium Premium
12345 6 Full Service Premium

Thank you in advance for your help.





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
Sum column information based on multiple criteria GHawkins Excel Worksheet Functions 8 August 24th 06 01:57 PM
Lookup/match/index Jules Excel Discussion (Misc queries) 1 July 5th 06 05:02 PM
Add a criteria to an Index and Match formula Tomkat743 Excel Discussion (Misc queries) 2 March 31st 06 05:28 PM
Index/Match Multiple Criteria EstherJ Excel Discussion (Misc queries) 2 March 31st 06 12:54 PM
index / match /lookup ? help andrewm Excel Worksheet Functions 8 July 21st 05 02:55 PM


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