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
Solved

I need an excel formula

Posted on 2011-09-26
6
171 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
  • 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

856 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