Solved

I need an excel formula

Posted on 2011-09-26
6
175 Views
1 Endorsement
Last Modified: 2012-05-12
I need an excel formula that will look at an Assigned Date column and Option Signed column and dermine the Total Number of Days between the dates. Here's the catch, If the Option Signed date is blank, I dont need excel to return a large negative number like I am getting when I simply subtract the two, I need it to calculate the difference in today's day (9/26/11 for example) and the Assigned Date. If you could get it working on the network days too, that would be helpful.

See attached.
9-26-11.xlsx
1
Comment
Question by:wrt1mea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 250 total points
ID: 36601906
Try this formula for C2 copied down

=IF(B2="",TODAY(),B2)-A2

and for D2

=NETWORKDAYS(A2,IF(B2="",TODAY(),B2))

see attached

regards, barry
27328698.xlsx
0
 
LVL 2

Assisted Solution

by:jan24
jan24 earned 250 total points
ID: 36601912
Try the attached.  Let me know if that does what you are wanting.
9-26-11.xlsx
0
 
LVL 2

Expert Comment

by:jan24
ID: 36601918
Snap!  We both came up with the same solution at the same time!!
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 50

Expert Comment

by:barry houdini
ID: 36601925
Nice one jan24....!

....and further amendments to make the formula return a blank if both dates are blank......

=IF(A2="","",IF(B2="",TODAY(),B2)-A2)

and

=IF(A2="","",NETWORKDAYS(A2,IF(B2="",TODAY(),B2)))

regards, barry
0
 
LVL 1

Author Closing Comment

by:wrt1mea
ID: 36601934
Same answers only seconds apart so I think its only fair to split...

Thanks again guys...barry as always I appreciate the support.
0
 
LVL 1

Author Comment

by:wrt1mea
ID: 36601943
Barry is showing off again...
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question