blank cell minus date

aliaslamy2k

Active Member
Joined
Sep 15, 2009
Messages
416
Office Version
  1. 2019
Platform
  1. Windows
Hello,

How Can I avoid this number “-43735, -43689 “, I am subtracting date from date. If any cell is blank then the result should come as blank.

Thank you


Recruitment Dashboard - Ali - 3 - Live V0.01.xlsx
CDEF
13ProcessDatesDaysDays from App rcvd
14ERF RECEIVED DATE05-Aug-2019
15APPLICATION RCVD DT12-Aug-20197
16PHONE INT BY HR15-Aug-201933
17FWD TO BUSINESS17-Sep-20193336
18RPLY RCVD FRM BSNESS19-Sep-2019238
19 TEL INT BY BSNESS25-Sep-2019644
20FEEDBCK FRM BSNESS27-Sep-2019246
21F2F INT BY BSNESS -43735-43689
22FEEDBCK FRM BSNESS 0-43689
23HIRE/REJECTED DT 0-43689
24OFFER SENT TO CANDT 0-43689
25OFFER ACPT BY CANDT 0-43689
26VISA INITITATE DT 0-43689
27VISA ISSUE DATE 0-43689
28SENT TO CANDT 0-43689
29TKT ISSUE DT 0-43689
Report
 
Hi, Cyrildrd,

i can still find the number reflecting in cell F21. Please find attached for your reference.
Copied down...
In your example you placed the formula until row 21 only. Row 22 is still your old formula...
mrxcel2020.xlsx
CDEF
13ProcessDatesDaysDays from App rcvd
14ERF RECEIVED DATE08/05/2019 
15APPLICATION RCVD DT08/12/20197
16PHONE INT BY HR08/15/201933
17FWD TO BUSINESS09/17/20193336
18RPLY RCVD FRM BSNESS09/19/2019238
19TEL INT BY BSNESS09/25/2019644
20FEEDBCK FRM BSNESS09/27/2019246
21F2F INT BY BSNESS   
aliaslamy2k
Cell Formulas
RangeFormula
E14:E21E14=IFERROR(D14-D13,"")
F16:F21F16=IFERROR(D16-$D$15,"")
D21D21=IFERROR(IF(ROWS(D$20:D20)>$B$1,"",INDEX(DataEntry!$U$4:$U$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$U$4:$U$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$20:D20)))),"")
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Below is the formatting i did in column D

format cells...-->Custom --> Type --> dd-mmm-yyyy;;
OK. The formula in column D can evaluate to 0, and if so the 0 is not shown because of the formatting.
Try this :
=IF(OR(D20="",D20=0,D21="",D21=0),"",D21-D20)
 
Upvote 0
btw. formatting is the LAST thing what you should do, after checking everything is working properly
 
Upvote 0
OK. The formula in column D can evaluate to 0, and if so the 0 is not shown because of the formatting.
Try this :
=IF(OR(D20="",D20=0,D21="",D21=0),"",D21-D20)


Hi Footoo,

This formula works absolutely fine. Below is the results

Thank you so much :)

Recruitment Dashboard - Ali - 3 - Live V0.01.xlsm
CDEF
13ProcessDatesDaysDays from App rcvd
14ERF RECEIVED DATE05-Jul-2019
15APPLICATION RCVD DT10-Jul-20195
16PHONE INT BY HR13-Jul-201933
17FWD TO BUSINESS15-Jun-2019-28-25
18RPLY RCVD FRM BSNESS17-Jun-20192-23
19 TEL INT BY BSNESS22-Jul-20193512
20FEEDBCK FRM BSNESS23-Jul-2019113
21F2F INT BY BSNESS   
22FEEDBCK FRM BSNESS   
23HIRE/REJECTED DT   
24OFFER SENT TO CANDT   
25OFFER ACPT BY CANDT   
26VISA INITITATE DT   
27VISA ISSUE DATE   
28SENT TO CANDT   
29TKT ISSUE DT   
30TKT SENT TO CANDT   
31DEP DATE   
32ARR DATE   
33FINGER PRNT DT   
34QID ISSUANCE DT   
Report
 
Upvote 0

Forum statistics

Threads
1,215,049
Messages
6,122,864
Members
449,097
Latest member
dbomb1414

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