Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
Solved

# I need an excel formula

Posted on 2011-09-26
Medium Priority
189 Views
1 Endorsement
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
Question by:wrt1mea
• 2
• 2
• 2

LVL 50

Accepted Solution

barry houdini earned 1000 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

jan24 earned 1000 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

ID: 36601918
Snap!  We both came up with the same solution at the same time!!
0

LVL 50

Expert Comment

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

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

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

## Featured Post

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
###### Suggested Courses
Course of the Month10 days, 13 hours left to enroll