Date formulas

Powellexcel

New Member
Joined
Dec 2, 2016
Messages
28
I have a date in column A1 which is the start of a task.

In column B1 I have and option 2 phrases, stating whether the task is 'open' or 'closed', obviously there is only one of those phrases that goes into column B.

In column C I want to have the time that the task took to complete displayed in hours if the case is open in column B. If the case becomes closed in column B, then the time will stop to be whatever time that is was currently at, and for it to stop continuing the hours count.

I currently have this formula, can someone help develop this situation for me please
=IF(C139(SEARCH(Open,C139)), (NOW(B139*24), (Value if false)
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
=IF(C139(SEARCH(Open,C139)), (NOW(B139*24)), CELL("contents", C4))

I've just thought I'd try the formula above, apparently contains and error though?
 
Upvote 0
A few things.

You are using the NOW() function incorrectly. It does not have any arguments (see: https://support.office.com/en-us/article/NOW-function-3337fd29-145a-4347-b2e6-20c904739c46).

What you want to do requires VBA. Native Excel formulas cannot give you want you want. If you search on "Excel VBA Timestamp", you will find many threads which will show you how to do something like this. Here are a few:
http://www.mrexcel.com/forum/excel-questions/710270-timestamp-visual-basic-applications.html
http://www.mrexcel.com/forum/excel-questions/793145-visual-basic-applications-time-stamp.html
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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