VBA or IF problem

jhonatanbenami

Board Regular
Joined
Jun 22, 2016
Messages
56
Here is my data:

ABCDEFG
application numberapplication number start datetask nameIDtask start datetask end dateapplication number End date
625637216/07/2014missing/false documents6329863219/01/201619/01/201626/01/2016
625637216/07/2014cash request6329863203/01/201620/01/201626/01/2016
671507208/01/2015missing/false documents31401938128/10/201521/01/201625/01/2016
686766819/02/2015missing/false documents1653435625/02/201629/02/201601/03/2016
686766819/02/2015waiting for missing documents1653435619/07/201525/08/201501/03/2016
686766819/02/2015missing/false documents1653435612/07/201519/07/201501/03/2016
697645822/03/2015cash request5064939108/02/201609/02/201615/02/2016
716434011/05/2015waiting for missing documents5720834011/05/201526/08/201503/01/2016
725951209/06/2015waiting for missing documents1319567204/01/201621/02/201623/02/2016
742103404/08/2015waiting for missing documents2488863804/08/201502/09/201511/01/2016
748331127/08/2015missing/false documents175462104/01/201605/01/201610/01/2016
750599106/09/2015missing/false documents1727463005/01/201617/03/201612/04/2016

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



i need to find the time it takes to deal with application ,

the conditions are like this:
if (G3-B3)<=90
then application time is the result of : application number End date - application number start date

but if
(G3-B3)>90

then the calculation should be the

application number End date for task name "missing / false documents" or for task name " waiting for missing documents" ( i have to pick one of them according to the latest)

minus


task end date

thank you!

<tbody>
</tbody>

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
697645822/03/2015cash request5064939108/02/201609/02/2016

15/02/2016

<tbody>
</tbody>
how is the application for a cash request 22/3/15 then 8/2/16 and 9/2/16 and 15/2/16
 
Upvote 0
there has been an error while copying :

here is correct line for it:

ABCDEFG
application numberapplication number start datetask nameIDtask start datetaske end dateapplication number End date
697645822/03/2015cash request5064939108/02/201609/02/201615/04/2016


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

an application can have different tasks....
 
Upvote 0
customerdate requestedtask namecustomer IDtask start datetask end dateconfirmed as COMPLETETIME
625637216/07/2014missing/false documents6329863219/01/201619/01/201626/01/20167
625637216/07/2014cash request6329863203/01/201620/01/201626/01/20166
671507208/01/2015missing/false documents31401938128/10/201521/01/201625/01/20164
686766819/02/2015missing/false documents1653435625/02/201629/02/201601/03/20161
686766819/02/2015waiting for missing documents1653435619/07/201525/08/201501/03/2016189
686766819/02/2015missing/false documents1653435612/07/201519/07/201501/03/2016226
697645822/03/2015cash request5064939108/02/201609/02/201615/04/201666
716434011/05/2015waiting for missing documents5720834011/05/201526/08/201503/01/2016130
725951209/06/2015waiting for missing documents1319567204/01/201621/02/201623/02/20162
742103404/08/2015waiting for missing documents2488863804/08/201502/09/201511/01/2016131
748331127/08/2015missing/false documents175462104/01/201605/01/201610/01/20165
750599106/09/2015missing/false documents1727463005/01/201617/03/201612/04/201626
are these the answers you are looking for in the last column

<colgroup><col><col><col><col span="2"><col><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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