Achieving No Negative Numbers

Stilts15ak

New Member
Joined
Jun 6, 2015
Messages
4
Hello All,

I’m hoping someone might be able to help adding on to a formula I have working well, but want to improve. I am having trouble with figuring out the syntax.

I currently have a document for keeping track of employees. The biggest thing that I want to do is keep track of the duration of their contracts and when they are starting and ending. See Screen Shot. NOTE: Other information in other columns removed as it is not pertinent to questions below.

Screen Shot 2020-12-07 at 9.57.40 AM.png


This formula for DAYS LEFT in the “L Column”:
Excel Formula:
=IF(G5>TODAY(),K5&"*",IF(AND(G5<>"",I5<>""),I5-TODAY(),"No Date(s)”))
works as such that it calculates the days left of the individuals contract from their start date. However, if their start date is after the start date of the project in E1, it displays the same duration amount of the contract with an asterisk at the end (THIS IS INTENTIONAL). Also if no date is inputted into the CONTRACT START and CONTRACT END, then the DURATION & DAYS LEFT COLUMN display “No Date(s)” (THIS IS INTENTIONAL).

Formula for DURATION column is:
Excel Formula:
=IF(AND(G5<>"",I5<>""),DAYS(I5,G5),"No Date(s)”)
. This works fine. But I am including for full context in regards to the question of this post.

Currently, the DAYS LEFT column reports back negative numbers once the CONTRACT END date is past today’s date (EXCEL DOING BY DESIGN). I don’t want to have negative numbers. I would rather the DAYS LEFT column show “Finished”, indicating that the person’s contract has been complete.

I have tried to insert this
Excel Formula:
=IF(AND(G9<>"",I9<>"),AND(G9<TODAY(),I9<TODAY()"),"Finished")
into the working formula above, but cannot get the syntax right.

I have tried these versions, but they don’t work:
1)
Excel Formula:
=IF(I5<TODAY(),"Finished",IF(G5>TODAY(),K5&"*",IF(AND(G5<>"",I5<>""),I5-TODAY(),"No Date(s)")))

2)
Excel Formula:
=IF(IF(G5>TODAY(),K5&"*",IF(AND(G5<>"",I5<>""),I5-TODAY(),"No Date(s)")), IF(I5<TODAY(),"Finished"),"")

Any assistance anyone can provide would be greatly appreciated.

Thank you!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Perhaps try
Excel Formula:
=IF(G5>TODAY(),K5&"*",IF(OR(G5="",I5=""),"No Date(s)",IF(I5-TODAY()<=0,"Finished",I5-TODAY())))
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top