Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Lookup on two criteria


Dear all

I would like to create a lookup or index that finds a particular entry by
column and row. This is my data

part number month1 month2 month3 month4
123 10 20 30 40
456 50 60 70 80


On another sheet I have two selection cells, I have selected part number 123
and month 2, in another cell I want to see the result 20.

I hope this makes sense.

I really appreciate any help as I am relatively new to excel

Kathryn

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default Lookup on two criteria

http://www.contextures.com/xlFunctio...ml#IndexMatch2


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Kathryn" wrote in message
...

Dear all

I would like to create a lookup or index that finds a particular entry by
column and row. This is my data

part number month1 month2 month3 month4
123 10 20 30 40
456 50 60 70 80


On another sheet I have two selection cells, I have selected part number
123
and month 2, in another cell I want to see the result 20.

I hope this makes sense.

I really appreciate any help as I am relatively new to excel

Kathryn



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default Lookup on two criteria

Now this is slightly tricky Kathryn and without knowing what your other sheet
like it's hard for me to write the formula for you.

However I can tell you I'd be using an =INDIRECT(ADDRESS()) as my start
point. I'd then use a MATCH to get the row and another MATCH to get the
column numbers.

If you look these 3 functions up in Help you should get pretty close to
being able to do it yourself.

Sorry I can't be of more help, but here's how I guess it'd look...

=INDIRECT(ADDRESS(MATCH({PART NO CELL}, A1:A100, 0), MATCH({MONTH NO CELL},
A1:Z1, 0)))

Hope this helps.

"Kathryn" wrote:


Dear all

I would like to create a lookup or index that finds a particular entry by
column and row. This is my data

part number month1 month2 month3 month4
123 10 20 30 40
456 50 60 70 80


On another sheet I have two selection cells, I have selected part number 123
and month 2, in another cell I want to see the result 20.

I hope this makes sense.

I really appreciate any help as I am relatively new to excel

Kathryn

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 195
Default Lookup on two criteria

hi Kathryn,

You will get lots of functions over this query.
Say you will enter "123" at A6 and "month2" at cell B6. Now -

1. INDEX & MATCH

=INDEX(A1:E3,MATCH(A6,A1:A3,0),MATCH(B6,A1:E1,0))

You need to Array Enter this <CTRL<SHIFT<ENTER


2. SUMPRODUCT

=SUMPRODUCT((A2:A3=A6)*(B1:E1=B6)*(B2:E3))

You need to Array Enter this <CTRL<SHIFT<ENTER


3. OFFSET & MATCH

=OFFSET(A1,MATCH(A6,A2:A3,0),MATCH(B6,B1:E1,0))

You need to Array Enter this <CTRL<SHIFT<ENTER

4. SUM & IF

=SUM(IF(A2:A3=A6,IF(B1:E1=B6,B2:E3)))

You need to Array Enter this <CTRL<SHIFT<ENTER


5. And lastly but not the least, it is the most interesting and easy
answer for the query you have asked here.

You need to ENABLE "Accept labels in forulas" first. Click
ToolsOptionsCalculationWorkbook Options - check the "accept labels
in formulas" checkbox.

Now when you enter at any cell this way -

=123 month2

you will get 20.

Isn't this interesting.


Thanks,

Shail


Kathryn wrote:
Dear all

I would like to create a lookup or index that finds a particular entry by
column and row. This is my data

part number month1 month2 month3 month4
123 10 20 30 40
456 50 60 70 80


On another sheet I have two selection cells, I have selected part number 123
and month 2, in another cell I want to see the result 20.

I hope this makes sense.

I really appreciate any help as I am relatively new to excel

Kathryn


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Lookup on two criteria

ctrlshiftenter ???. Just hit Enter it will do the job.

"shail" wrote:

hi Kathryn,

You will get lots of functions over this query.
Say you will enter "123" at A6 and "month2" at cell B6. Now -

1. INDEX & MATCH

=INDEX(A1:E3,MATCH(A6,A1:A3,0),MATCH(B6,A1:E1,0))

You need to Array Enter this <CTRL<SHIFT<ENTER


2. SUMPRODUCT

=SUMPRODUCT((A2:A3=A6)*(B1:E1=B6)*(B2:E3))

You need to Array Enter this <CTRL<SHIFT<ENTER


3. OFFSET & MATCH

=OFFSET(A1,MATCH(A6,A2:A3,0),MATCH(B6,B1:E1,0))

You need to Array Enter this <CTRL<SHIFT<ENTER

4. SUM & IF

=SUM(IF(A2:A3=A6,IF(B1:E1=B6,B2:E3)))

You need to Array Enter this <CTRL<SHIFT<ENTER


5. And lastly but not the least, it is the most interesting and easy
answer for the query you have asked here.

You need to ENABLE "Accept labels in forulas" first. Click
ToolsOptionsCalculationWorkbook Options - check the "accept labels
in formulas" checkbox.

Now when you enter at any cell this way -

=123 month2

you will get 20.

Isn't this interesting.


Thanks,

Shail


Kathryn wrote:
Dear all

I would like to create a lookup or index that finds a particular entry by
column and row. This is my data

part number month1 month2 month3 month4
123 10 20 30 40
456 50 60 70 80


On another sheet I have two selection cells, I have selected part number 123
and month 2, in another cell I want to see the result 20.

I hope this makes sense.

I really appreciate any help as I am relatively new to excel

Kathryn





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 Multiple Criteria return One answer cbanks Excel Worksheet Functions 3 January 26th 06 08:00 PM
Lookup with Multiple Criteria cbanks Excel Discussion (Misc queries) 1 January 26th 06 07:31 PM
Multiple criteria LOOKUP Leon Excel Worksheet Functions 2 December 22nd 05 01:13 PM
Lookup: 2 criteria maca Excel Discussion (Misc queries) 1 August 2nd 05 04:55 PM
Conditional Lookup on Multiple Criteria TBarker Excel Worksheet Functions 1 June 22nd 05 12:28 AM


All times are GMT +1. The time now is 07:03 AM.

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"