Multiple references for Drop Down formula equation

RodneyC

Active Member
Joined
Nov 4, 2021
Messages
278
Office Version
  1. 2016
Platform
  1. Windows
I have this formula in cell E6

=IFNA(VLOOKUP($D$3,'Revenue Analysis'!$B$2:$Q$1201,4,FALSE),"")
  1. This looks for the value shown at $D$3 in the Revenue Analysis tab somewhere between $B$2:$Q$1201. In reality, all of the data that could be shown in $D$3 is in column B.
  2. I need a second criteria added to the formula. I need it to look at $D$6 and try to find it in the Revenue Analysis tab in $C$2:$Q$1201.
  3. If the search finds BOTH the value in $D$3 and $D$6, it should report the value in that row for column D.
$D$3 pulls a value from a drop down menu.
$D$6 is a static value that shows up multiple places in column C on the Revenue Analysis tab.

Thank you in advance
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
maybe try, I think column 4 in your vlookup should be Column E on the Revenue tab;

Excel Formula:
=IFNA(INDEX('Revenue Analysis'!$E$2:$E$1201,MATCH($D$3&$D$6,INDEX('Revenue Analysis'!$B$2:$B$1201&'Revenue Analysis'!$C$2:$C$1201,),0)),"")
 
Upvote 0
I think column 4 in your vlookup should be Column E on the Revenue tab;
I agree with that. My suggestion is

Excel Formula:
=INDEX(FILTER('Revenue Analysis'!$E$2:$E$1201,('Revenue Analysis'!$B$2:$B$1201=$D$3)*('Revenue Analysis'!$C$2:$C$1201=$D$6),""),1)
 
Upvote 0
.. or a bit shorter like this

Excel Formula:
=LET(r,'Revenue Analysis'!$B$2:$E$1201,INDEX(FILTER(r,(INDEX(r,0,1)=$D$3)*(INDEX(r,0,2)=$D$6),{1,1,1,""}),1,4))
 
Upvote 0
The solution offered by RasGuhl was the first in line. I tried it and it worked. THANK YOU both for offering help.
 
Upvote 0

Forum statistics

Threads
1,215,730
Messages
6,126,528
Members
449,316
Latest member
sravya

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
Back
Top