I need help to accomplish something with a VLOOKUP command. I have a feeling it involves using some kind of array but am just struggling trying to find a solution. Obviously I am NOT an Excel power user. So if you have an answer for me, please help me understand it with easy explanations.
I want to look up a value in a range based on a lookup value, but I need to filter other columns in the range I'm using before returning the value in the designated column. Let me show you an example of the data in the target range:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]PAYMENT[/TD]
[TD]PBM[/TD]
[TD]Account[/TD]
[TD]Product[/TD]
[TD]Measure[/TD]
[TD]2/9/2017[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Commercial[/TD]
[TD]*Total[/TD]
[TD]*Total[/TD]
[TD]Advair[/TD]
[TD]NBRx Shr[/TD]
[TD]32.67%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Commercial[/TD]
[TD]Aetna[/TD]
[TD]Coventry[/TD]
[TD]Advair[/TD]
[TD]NBRx Shr[/TD]
[TD]34.89%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Commercial[/TD]
[TD]Aetna[/TD]
[TD]Aetna[/TD]
[TD]Symbicort[/TD]
[TD]NBRx Shr[/TD]
[TD]40.28%[/TD]
[/TR]
</tbody>[/TABLE]
So this is what I'm trying to do. I'm trying to use the value in A2 below as my lookup value. Then reference the range above and return ONLY the value in cell F2 (32.67%). So I want to match the lookup value "Commercial" with the PAYMENT column but filter the rest of the columns so that I'm only selecting the "Commercial" value that has a value of "*Total" in column B, "*Total" in column C, "Advair" in column D, and "NBRx Shr" in column E. What kind of combination of functions do I need to do that?
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]PAYMENT[/TD]
[TD]NBRx Share[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Commercial[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance to anyone who can help me!
I want to look up a value in a range based on a lookup value, but I need to filter other columns in the range I'm using before returning the value in the designated column. Let me show you an example of the data in the target range:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]PAYMENT[/TD]
[TD]PBM[/TD]
[TD]Account[/TD]
[TD]Product[/TD]
[TD]Measure[/TD]
[TD]2/9/2017[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Commercial[/TD]
[TD]*Total[/TD]
[TD]*Total[/TD]
[TD]Advair[/TD]
[TD]NBRx Shr[/TD]
[TD]32.67%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Commercial[/TD]
[TD]Aetna[/TD]
[TD]Coventry[/TD]
[TD]Advair[/TD]
[TD]NBRx Shr[/TD]
[TD]34.89%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Commercial[/TD]
[TD]Aetna[/TD]
[TD]Aetna[/TD]
[TD]Symbicort[/TD]
[TD]NBRx Shr[/TD]
[TD]40.28%[/TD]
[/TR]
</tbody>[/TABLE]
So this is what I'm trying to do. I'm trying to use the value in A2 below as my lookup value. Then reference the range above and return ONLY the value in cell F2 (32.67%). So I want to match the lookup value "Commercial" with the PAYMENT column but filter the rest of the columns so that I'm only selecting the "Commercial" value that has a value of "*Total" in column B, "*Total" in column C, "Advair" in column D, and "NBRx Shr" in column E. What kind of combination of functions do I need to do that?
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]PAYMENT[/TD]
[TD]NBRx Share[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Commercial[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance to anyone who can help me!