Dynamically Lookup values based on 2 conditions and then a range between (specified in 2 columns)

murtuzamalak

New Member
Joined
Nov 25, 2019
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am stuck with an excel issue, where I need to look values based on

Image 1.png
Image 2.png
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi,
create a column in your db after column D with this formula:
= B2&C2
and then drag it down

and then in your performance type sheet you can use this formula for needed data:
Code:
= VLOOKUP(A3&B3,db!$E:$H, 2,0)


db is your DB sheet name
 
Upvote 0
Hi,
I guess I did not explain it in a better way. It also has to look at a logical condition. Posting Images again.

Image 1.png
Image 3.png
 
Upvote 0
I got it.
use this formula in array mode for performance type column:

Code:
=INDEX(db!E:E,MAX(ROW(db!E:E)*(db!B:B=A3)*(db!C:C<=B3)*(db!D:D>=B3)))
 
Upvote 0
Thanks Sir, It actually worked with the Index & Match combination in Array type
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,847
Members
449,194
Latest member
HellScout

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