Formula for date calculation based on certain criteria

nikhil0311

Board Regular
Joined
May 3, 2013
Messages
197
Office Version
  1. 2013
Platform
  1. Windows

Excel 2007
ABCDEFG
1Reporting Dt --->3/15/2016
2Deal StageDeal Stage DtCreated DtFinal TaggingDeal StageLogic (refer column A)
3Lost-LostIf Column A is "Lost" then Column D should be "-"
4Lost/Cancelled2/25/2014-Lost/CancelledIf Column A is "Lost/Cancelled" then Column D should be "-"
5Dead-DeadIf Column A is "Dead" then Column D should be "-"
6Closed-ClosedIf Column A is "Closed" then Column D should be "-"
7Cancelled3/10/20162/16/2015-CancelledIf Column A is "Cancelled" then Column D should be "-"
8Mandate9/19/2014(543)MandateColumn D = Deal stage Dt - Reporting dt (Column B - Column D1). If Column B is blank then Column D should be "-"
9Bid9/30/2015(167)BidColumn D = Created Dt - Reporting dt (Column C - Column D1). If Column C is blank then Column D should be "-"
10Non-Qualified opportunity5/6/20155/6/2015(314)Non-Qualified opportunityColumn D = Created Dt - Reporting dt (Column C - Column D1). If Column C is blank then Column D should be "-"
11Opportunity-OpportunityColumn D = Created Dt - Reporting dt (Column C - Column D1). If Column C is blank then Column D should be "-"
Sheet2




based on deal stage i.e. column A I want to do the final tagging in Column D. refer column F & G for the Logic
 

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.
Maybe
Code:
=IF(AND(A3="Mandate",ISNUMBER(B3)),B3-$D$1,IF(AND(ISNUMBER(MATCH(A3,{"Bid","Non-Qualified opportunity","Opportunity"},0)),ISNUMBER(C3)),C3-$D$1,"-"))
 
Upvote 0
Hi Marcel. Thanks for the help. It means a lot. The formula is working fine for me. Hope you have a good day :)
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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