Solved

I need an excel formula

Posted on 2011-09-26
6
172 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
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.

685 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