cancel
Showing results for
Did you mean:
Helper II

## Multiple if statement if results are the same

Hi,

I have created a new column with the following formula, however it is not returning the results I require:

Over 10 minutes =
IF ( ISBLANK( [Actual Start Time] ), BLANK(), If(ABS([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (ABS([Planned Duration Minutes] - [Actual Duration Minutes]) > (10/60)/24, "not", "ok")))

I need the formula to show:
• where the planned duration minutes - actual duration minutes is over 10 minutes then enter "not" otherwise "enter "ok".
• Where the planned duration minutes - actual duration minutes is the same then enter "ok".

1 ACCEPTED SOLUTION
Super User IV

@pardeepd84 , if this is a numeric column this should work. Not sure why are you diving

IF ( ISBLANK( [Actual Start Time] ), BLANK(),
If(ABS([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (ABS([Planned Duration Minutes] - [Actual Duration Minutes]) > 10 , "not", "ok")))

if it time - time then you have take minutes from that

example

IF ( ISBLANK( [Actual Start Time] ), BLANK(),
If( minute([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (minute([Planned Duration Minutes] - [Actual Duration Minutes]) > 10 , "not", "ok")))

Proud to be a Super User!

Super User IV

@pardeepd84 , if this is a numeric column this should work. Not sure why are you diving

IF ( ISBLANK( [Actual Start Time] ), BLANK(),
If(ABS([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (ABS([Planned Duration Minutes] - [Actual Duration Minutes]) > 10 , "not", "ok")))

if it time - time then you have take minutes from that

example

IF ( ISBLANK( [Actual Start Time] ), BLANK(),
If( minute([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (minute([Planned Duration Minutes] - [Actual Duration Minutes]) > 10 , "not", "ok")))

Proud to be a Super User!

Announcements

#### Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks