Error in function

Powellexcel

New Member
Joined
Dec 2, 2016
Messages
28
=IF(C139(SEARCH(Open,C139)), (NOW(B139*24)), CELL("contents", C4))

Can anybody suggest why this contains an error, or where it is?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,431
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
What is this supposed to mean:
C139(SEARCH(Open,C139))
 
Last edited:
Upvote 0

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)
 
Upvote 0

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
IF statement contains 3 parts...

1. condition to test for
2. what to do if test is TRUE
3. else what to do if test is FALSE

What exactly are you trying to do here?
 
Upvote 0

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.
 
Upvote 0

Powellexcel

New Member
Joined
Dec 2, 2016
Messages
28
Is there a way to convert that to display the hours the task has been open though?
And when it =closed, how to I stop the function from counting up?
 
Upvote 0

Forum statistics

Threads
1,191,607
Messages
5,987,637
Members
440,104
Latest member
thigarette

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
Top