If statement using v-lookup

eramirez148

Board Regular
Joined
Aug 17, 2022
Messages
66
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
  6. 2011
  7. 2010
Platform
  1. Windows
  2. MacOS
Is there a way to add a formula in column D that will result in one of the outcomes in column G if it matches the date between column B and column F only if column C is "active" and column A higher than 20% otherwise the results should be an empty cell.

ABCDEFG
pos_dateStatusResults
1.00%​
1/1/2021inactiveLook up list
2.00%​
1/2/2021inactivepos_datelist
3.00%​
1/3/2021inactive1/1/2021A
4.00%​
1/4/2021inactive1/2/2021B
5.00%​
1/5/2021inactive1/3/2021C
-1.00%​
1/6/2021inactive1/4/2021D
-2.00%​
1/7/2021​
inactive1/5/2021E
-3.00%​
1/8/2021​
inactive1/6/2021F
20.00%​
1/9/2021​
inactive
40.00%​
1/10/2021​
inactive
50.00%​
1/11/2021​
inactive
10.00%​
1/12/2021​
active
15.00%​
1/13/2021​
active
80.00%​
1/14/2021​
active
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
This worked for me! Let me know if this works for you!

=IFERROR(IF(AND(C2="Active",A2>20%),VLOOKUP(B2,$F$4:$G$9,2,FALSE),""),"")
 
Upvote 0
If I want to adjust the formula to read everything below -20% do I just add a negative sign in front of the 20% and change the sign to <?
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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