Help - lost in big formula

hrachao

New Member
Joined
Sep 19, 2018
Messages
16
Hi everyone,

I got lost trying to do a formula... Hope you can help me!
I have 3 worksheets:

WS1WS2WS3
Vendor nameExpiry dateFormula fieldVendor nameVendor name
Alpha31-12-2018 AlphaAlpha
Beta31-12-2016 BetaGama
Delta31-12-2017
GamaN/A
GamaN/A

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Conditions for formula
If vendor in WS1 is not in WS2 nor WS3, then return blank ""
If vendor in WS1 has N/A expiry date, then return blank ""
if vendor in WS1 is in WS2 OR WS3, then return text "request form" ONLY IF the expiry date is < 31/12/2018

Thx!
Helena
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
if vendor in WS1 is in WS2 OR WS3, then return text "request form" ONLY IF the expiry date is < 31/12/2018

What result if the above statement is false, ie. date is >31/12/2018
 
Last edited:
Upvote 0
Assuming Vendor Name is in column A on all the sheets and Expiry Date is in column B on WS1.

=IF(B2="N/A","",IF(B2 < DATE(2018,12,31),IF(OR(NOT(ISERROR(MATCH(A2,'WS2'!A:A,0))),NOT(ISERROR(MATCH(A2,'WS3'!A:A,0)))),"Request Form",""),""))
 
Last edited:
Upvote 0
This worked, thank you!

Assuming Vendor Name is in column A on all the sheets and Expiry Date is in column B on WS1.

=IF(B2="N/A","",IF(B2 < DATE(2018,12,31),IF(OR(NOT(ISERROR(MATCH(A2,'WS2'!A:A,0))),NOT(ISERROR(MATCH(A2,'WS3'!A:A,0)))),"Request Form",""),""))
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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