简体   繁体   中英

Excel formula to compare delivery date and target date with empty cells

Working on a project tracker right now and have hit the migraine jackpot on my last formula. Column F has target date, Column G has delivery date, Cell B1 has the reporting date. I am trying to get to a formula that tells me if delivery date is lower than target date, the project is "on target" or if not is "late". This is the bit I can manage... for some of my projects (not finished) Column G is empty, I would therefore only consider them "late" if the target date (say was due on the 30/01/2017) is in the past compared to the the reporting date (30/02/2017), the others will be left blank. This is where I got to:

=IF(AND(G5="",F5<$B$1),"late",IF(G5="","",IF(G5<F5,"on target","late")))

Thank you

这是否符合您的想法?

=IF(AND(G5<F5,G5<>""),"on target",IF(G5="",IF(F5<$B$1,"late",""),"late"))

I used the base formula in the initial post here and made a modification that worked for me.

=IF(AND(ISBLANK(R2),"",R2),OR,IF(R2<M2,"Yes","NO"))

in my data R was received date, M is the target date and this formula was pasted in cell V . I did received a #name? error when R was left blank

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM