Excel:如果单元格中的日期比今天少三天,则显示其他单元格中同一行中的其他列

时间:2016-09-28 08:38:52

标签: excel-formula formula xls

我正在尝试使用以下公式,但我认为我错了!

=IF(=A2*'DACH Idents'!B$<=TODAY,'Deletelist'!B1='DACH Idents'!C$,""())

如果来自“DACH Idents”列B的匹配行日期早于3天,我正在尝试使用工作表“DACH Idents”列C中的字符串填充工作表“Deletelist”列B.

2 个答案:

答案 0 :(得分:0)

将其放入C2单元格=IF((TODAY()-'DACH Idents'!B1)>3, 'DACH Idents'!C1, "")

-(void)setNoti {
    UILocalNotification *localNotification = [[UILocalNotification alloc] init];
    localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:60];
    localNotification.alertBody = @"NOTI 1";
    localNotification.timeZone = [NSTimeZone defaultTimeZone];
    localNotification.applicationIconBadgeNumber = [[UIApplication sharedApplication] applicationIconBadgeNumber] + 1;
    localNotification.repeatInterval = kCFCalendarUnitMinute;
    NSDictionary *dict = @{@"nid":@"1"};
    localNotification.userInfo = dict;
    [[UIApplication sharedApplication]scheduleLocalNotification:localNotification];
}

如果日期不超过3天,它将返回一个空字符串。

答案 1 :(得分:0)

也许你可以尝试这样的事情:

=IF('DACH Idents'!B2<DATE(YEAR(TODAY()), MONTH(TODAY()),DAY(TODAY())-3),'DACH Idents'!C2,0)

如果当天不超过3天,则应显示零,并且您可以使用您需要的任何内容进行更改