Complex Lookup Function

seguin85

Active Member
Joined
Mar 17, 2015
Messages
278
Office Version
  1. 365
Platform
  1. Windows
Hi,

I was wondering if there was a way without using array to lookup values from the following table
ABCDEFGH
1MedMedMedHighHighHigh
2Cust1OtherCust1Other
3Newx1y1a1b1
4Newx2y2a2b2
5Newx3y3a3b3
6
7Majorx4y4a4b4
8Majorx5y5a5b5
9Majorx6y6a6b6
10
11Mid Cyclex7y7a7b7
12Mid Cyclex8y8a8b8
13Mid Cyclex9y9a9b9

<tbody>
</tbody>


So the user selects a customer, if that customer is cust1 it will grab info from column C or G, if it is not it will grab from D or H.
Next they select Med or High, if Med it will grab from C or D, if High from G or H.
Finally they select New, Major or mid cycle.

Is there a formula that can be applied to grab this information. I do have controls over headers in the data table if that makes things easier to do.

Thanks!!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
1. What determine if C or H is used?
2. which of the 3 (new/Major/Mid) do you want? Or all 3?
 
Upvote 0

seguin85

Active Member
Joined
Mar 17, 2015
Messages
278
Office Version
  1. 365
Platform
  1. Windows
Search here for values, sorry I missed a vital column... Columns C and F are just used for calculations and will not return anything to the other sheet.

ABCDEFGH
1MedMedMedHighHighHigh
2Cust1OtherCust1Other
3NewBox1
4NewBox2
5NewBox3
6
7MajorBox1
8MajorBox2
9MajorBox3
10
11Mid CycleBox1
12Mid CycleBox2
13Mid CycleBox3

<tbody>
</tbody>

And on another sheet will be formatted as follows:

ABCDEFG
1CustomerSpeedTypeBox1Box2Box3
2Cust1HighNewG3G4G5
3JoesMedMid CycleE11E12E13
4SamHighMajorH7H8H9

<tbody>
</tbody>

The values in bold are the values I want returned based on columns A,B and C and matching the header in D, E and F. Column A cannot be changed, but columns B and C can be changed accordingly.

Hope this clears things up a bit
 
Upvote 0

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
ADVERTISEMENT
Still does not explain how to chose either column D or column G?
 
Upvote 0

seguin85

Active Member
Joined
Mar 17, 2015
Messages
278
Office Version
  1. 365
Platform
  1. Windows
Still does not explain how to chose either column D or column G?

Column D if Med and Cust1. Column E if Med and other customer.
Column G if High and Cust1. Column H if Med and other customer.
 
Upvote 0

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
Try this, copied down and cross...
=INDEX($D$3:$H$13,MATCH($M2&N$1,INDEX($A$3:$A$13&$B$3:$B$13,0),0),MATCH($L2,$C$1:$H$1,0)+MATCH($K$2,$D$2:$E$2,0)-1)
 
Upvote 0

Forum statistics

Threads
1,195,848
Messages
6,011,949
Members
441,657
Latest member
Diupsy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top