We help IT Professionals succeed at work.
Get Started

Multiple IF's

swjtx99
swjtx99 asked
on
62 Views
Last Modified: 2015-12-30
Hi,

I have a formula: =IF(INT(G139)=INT(TODAY()),0,NETWORKDAYS(G139,TODAY(),Holidays))

This does not work for me. If the date is yesterday, it says 2 if it's tomorrow, it returns -2.

What I need is:
If the date is today = 0
If the date is yesterday = 1
if the date is the day before yesterday = 2
ect.
if the date is tomorrow = -1
if the date is the day after tomorrow = -2
Ect.

Thanks in advance,

swjtx99
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2015
Commented:
This problem has been solved!
Unlock 1 Answer and 20 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE