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
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try row 16 =IFERROR(D16-D15,"") and =IFERROR(D16-$D$15,"")
 
Upvote 0
Hi, Cyrildrd,

i can still find the number reflecting in cell F21. Please find attached for your reference.


Recruitment Dashboard - Ali - 3 - Live V0.01.xlsm
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-20193333
18RPLY RCVD FRM BSNESS19-Sep-201922
19 TEL INT BY BSNESS25-Sep-201966
20FEEDBCK FRM BSNESS27-Sep-201922
21F2F INT BY BSNESS -43735-43735
22FEEDBCK FRM BSNESS 00
23HIRE/REJECTED DT 00
24OFFER SENT TO CANDT 00
25OFFER ACPT BY CANDT 00
26VISA INITITATE DT 00
Report
 
Upvote 0
Actually, i want the result to be blank if one or both cells are blank
 
Upvote 0
try
E15: =IF(OR(D14="",D15=""),"",D15-D14)
F16: =IF(OR(D15="",D16=""),"",D16-$D$15)

Book4
CDEF
13ProcessDatesDaysDays from App rcvd
14ERF RECEIVED DATE05-Aug-19
15APPLICATION RCVD DT12-Aug-197
16PHONE INT BY HR15-Aug-1933
17FWD TO BUSINESS17-Sep-193336
18RPLY RCVD FRM BSNESS19-Sep-19238
19TEL INT BY BSNESS25-Sep-19644
20FEEDBCK FRM BSNESS27-Sep-19246
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   
Sheet1
Cell Formulas
RangeFormula
E15:E29E15=IF(OR(D14="",D15=""),"",D15-D14)
F16:F29F16=IF(OR(D15="",D16=""),"",D16-$D$15)
D21D21=IFERROR(IF(ROWS(D$21:D21)>$B$1,"",INDEX(DataEntry!$W$4:$W$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$W$4:$W$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$21:D21)))),"")
D22D22=IFERROR(IF(ROWS(D$22:D22)>$B$1,"",INDEX(DataEntry!$X$4:$X$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$X$4:$X$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$22:D22)))),"")
D23D23=IFERROR(IF(ROWS(D$23:D23)>$B$1,"",INDEX(DataEntry!$Z$4:$Z$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$Z$4:$Z$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$23:D23)))),"")
D24D24=IFERROR(IF(ROWS(D$24:D24)>$B$1,"",INDEX(DataEntry!$AC$4:$AC$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$AC$4:$AC$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$24:D24)))),"")
D25D25=IFERROR(IF(ROWS(D$25:D25)>$B$1,"",INDEX(DataEntry!$AE$4:$AE$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$AE$4:$AE$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$25:D25)))),"")
D26D26=IFERROR(IF(ROWS(D$26:D26)>$B$1,"",INDEX(DataEntry!$AG$4:$AG$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$AG$4:$AG$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$26:D26)))),"")
D27D27=IFERROR(IF(ROWS(D$27:D27)>$B$1,"",INDEX(DataEntry!$AH$4:$AH$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$AH$4:$AH$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$27:D27)))),"")
D28D28=IFERROR(IF(ROWS(D$28:D28)>$B$1,"",INDEX(DataEntry!$AI$4:$AI$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$AI$4:$AI$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$28:D28)))),"")
D29D29=IFERROR(IF(ROWS(D$29:D29)>$B$1,"",INDEX(DataEntry!$AK$4:$AK$5000,SMALL(IF((DataEntry!$H$4:$H$5000=$D$5),ROW(DataEntry!$AK$4:$AK$5000)-ROW(DataEntry!$H$4)+1),ROWS(D$29:D29)))),"")
 
Upvote 0
You did not answer post #4. (Is the result TRUE or FALSE ?)

Do you have column D formatted to not show zeros?
 
Upvote 0
I am still getting the result. Please see below for your reference.

Recruitment Dashboard - Ali - 3 - Live V0.01.xlsm
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
30TKT SENT TO CANDT 0-43689
31DEP DATE 0-43689
32ARR DATE 0-43689
33FINGER PRNT DT 0-43689
34QID ISSUANCE DT 0-43689
Report
 
Upvote 0
You did not answer post #4. (Is the result TRUE or FALSE ?)

Do you have column D formatted to not show zeros?


Below is the formatting i did in column D

format cells...-->Custom --> Type --> dd-mmm-yyyy;;
 
Upvote 0
I am still getting the result. Please see below for your reference.
I don't know what are you doing there
copy table from post #6
cpy.png

and paste into the proper place (probably C13)
I did nothing more than these two formulas and drag down

E15: =IF(OR(D14="",D15=""),"",D15-D14)
F16: =IF(OR(D15="",D16=""),"",D16-$D$15)
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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