Is it possible to use VLOOKUP and have it search for 2 values to find a result?
To explain, I want to be able to have the VLOOKUP formula in G3 look at A3 & B3 and find result in the array on another sheet. And this description sounds muddled to my coffee deprived brain so I'm going to attempt to add to it without making it more confusing.
The following is my array on a secondary worksheet tab. On the primary worksheet I have it set up so we enter the drawing number and the face size and am using VLOOKUP to give me the online code listed in column C here. I realized after the fact that I need it to use BOTH the drawing number AND the face size in order to get the right code. I want it to kick out the message "NEEDS PROGRAM" if there isn't a code. Is there a way to combine that in VLOOKUP?
[TABLE="width: 496"]
<tbody>[TR]
[TD]DRW#
[/TD]
[TD]FACE
[/TD]
[TD]Online Code
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]16
[/TD]
[TD]"ABCD\DWG_1.DOC//FaceX 108 FaceZ 16"
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]24
[/TD]
[TD]"ABCD\DWG_1.DOC//FaceX 108 FaceZ 24"
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]8
[/TD]
[TD]"ABCD\DWG_2.DOC//FaceX 108 FaceZ 8"
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]12
[/TD]
[TD]"ABCD\DWG_2.DOC//FaceX 108 FaceZ 12"
[/TD]
[/TR]
[TR]
[TD]18
[/TD]
[TD]20
[/TD]
[TD]"ABCD\DWG_18.DOC//FaceX 108 FaceZ 20"
[/TD]
[/TR]
[TR]
[TD]18
[/TD]
[TD]16
[/TD]
[TD]"ABCD\DWG_18.DOC//FaceX 108 FaceZ 16"
[/TD]
[/TR]
</tbody>[/TABLE]
To explain, I want to be able to have the VLOOKUP formula in G3 look at A3 & B3 and find result in the array on another sheet. And this description sounds muddled to my coffee deprived brain so I'm going to attempt to add to it without making it more confusing.
The following is my array on a secondary worksheet tab. On the primary worksheet I have it set up so we enter the drawing number and the face size and am using VLOOKUP to give me the online code listed in column C here. I realized after the fact that I need it to use BOTH the drawing number AND the face size in order to get the right code. I want it to kick out the message "NEEDS PROGRAM" if there isn't a code. Is there a way to combine that in VLOOKUP?
[TABLE="width: 496"]
<tbody>[TR]
[TD]DRW#
[/TD]
[TD]FACE
[/TD]
[TD]Online Code
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]16
[/TD]
[TD]"ABCD\DWG_1.DOC//FaceX 108 FaceZ 16"
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]24
[/TD]
[TD]"ABCD\DWG_1.DOC//FaceX 108 FaceZ 24"
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]8
[/TD]
[TD]"ABCD\DWG_2.DOC//FaceX 108 FaceZ 8"
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]12
[/TD]
[TD]"ABCD\DWG_2.DOC//FaceX 108 FaceZ 12"
[/TD]
[/TR]
[TR]
[TD]18
[/TD]
[TD]20
[/TD]
[TD]"ABCD\DWG_18.DOC//FaceX 108 FaceZ 20"
[/TD]
[/TR]
[TR]
[TD]18
[/TD]
[TD]16
[/TD]
[TD]"ABCD\DWG_18.DOC//FaceX 108 FaceZ 16"
[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: