View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Provide a match from 2 cells to give a result from another

One way ..

In Sheet1,
Put in C2's formula bar, then array-enter the formula by pressing
CTRL+SHIFT+ENTER (instead of just pressing ENTER):
=IF(OR(A2="",B2=""),"",INDEX(Sheet2!$C$2:$C$100,MA TCH(1,(Sheet2!$A$2:$A$100=A2)*(Sheet2!$B$2:$B$100= B2),0)))
Copy C2 down as far as required.

Adapt the ranges to suit the actual extent of data in Sheet2 before copying
C2 down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"leefarrell" wrote:
Hi I hope you can help with this is should be simple but I can not get it to
work.

I have a worksheet set out like this...
Sheet 1 layout

A - B - C -
1 Fixture - Mode - DMX Chan - (colum headings)
2 Robe - Mode 1 - "Value"
3 Robe - Mode 2 - "Value"
4 Robe - Mode 4 - "Value"
5 Vari - Mode 3 - "Value"

Colums A & B are both drop down menus using text validation. The source is in
sheet 3.

We have 40 fixture types each with between 2 and 5 mode settings, I want the
user to be able to select a fixture and what mode setting they want it to be
used in and it will then return a value from sheet 2.

Sheet 2 - Layout
A - B - C -
1 Fixture - Mode - DMX Chan - (colum headings)
2 Robe - Mode 1 - 20
3 Robe - Mode 2 - 22
4 Robe - Mode 3 - 33
5 Robe - Mode 4 - 45
2 Robe - Mode 5 - 54
3 Vari - Mode 1 - 24
4 Vari - Mode 2 - 28
5 Vari - Mode 3 - 36 Etc....

I have this speadsheet doing many other tasks but I can make the rest work,I
just can not get excel to see if cells A and B match and return a value from
sheet 2.

I would also like to have all of the rows blank unless data is in colum A, so
that i do not have pages of formular errors. idealy if a copy row above to
next free row feature is avalible it would be perfect as I will not have to
copy the formulars throughout the sheet.

I hope that this makes sense.

Many thanks in advance.

Lee