How stop counting if met requirements

Kemark16

New Member
Joined
Nov 7, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Dear all,
Could you please advice how in a quick way put correct formula, I am novice and struggling already a lot of time without result :(
A4 start date
B4 stop date
C4 days - here I would like to have number of days (so B4 - A4), but if I will fill the "stop date", so B4 - it should stop counting and be marked as green - automatically.
Can you please help?
 

Attachments

  • Zrzut ekranu 2023-11-07 211059.jpg
    Zrzut ekranu 2023-11-07 211059.jpg
    22.9 KB · Views: 8

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I think you made a mistake.

If A4 is filled with a start date and C4 contains a formula (B4-A4), then how can B4 be empty at all?

Could you revise your data please.
 
Upvote 0
I think you made a mistake.

If A4 is filled with a start date and C4 contains a formula (B4-A4), then how can B4 be empty at all?

Could you revise your data please.
I assume that we need to combine these two visible formulas on the picture uploaded.
I would like to have first formula (red C4) to be blocked when I put formula to (B4) cell.
Any ideas? :)
 

Attachments

  • Zrzut ekranu 2023-11-07 221408.jpg
    Zrzut ekranu 2023-11-07 221408.jpg
    44 KB · Views: 10
Upvote 0
There's a problem with your formula, the formula uses it's own cell as reference:

So B4 = DAYS(B4; A4) is a recursion and therefore not working.

Could you please check your formula again.
 
Upvote 0
There's a problem with your formula, the formula uses it's own cell as reference:

So B4 = DAYS(B4; A4) is a recursion and therefore not working.

Could you please check your formula again.
formula = DAYS(B4; A4) is correct "no date (data) in cell B4"
My thought is:
Two formulas in one cell, so that the formula =days(today();A4) works until the date is entered in B4
That is:
=days(today(),A4) =days(B4,A4) these two formulas are supposed to run in cell C4
 
Upvote 0
formula = DAYS(B4; A4) is correct "no date (data) in cell B4"
My thought is:
Two formulas in one cell, so that the formula =days(today();A4) works until the date is entered in B4
That is:
=days(today(),A4) =days(B4,A4) these two formulas are supposed to run in cell C4
Well, two formulas at the same time in a single cell, that is not possible.

You should overthink your calculations and decide which formula you want to run in cell C4. Until then, I'm afraid I can't help.
 
Upvote 0
Like @PeteWright I'm a bit confused about your intention, but is this what you meant?
Book1
ABC
3Data StartData stopDays
401.11.202312
Sheet1
Cell Formulas
RangeFormula
C4C4=IF(B4="",TODAY()-A4,B4-A4)


Book1
ABC
3Data StartData stopDays
401.11.202310.11.20239
Sheet1
Cell Formulas
RangeFormula
C4C4=IF(B4="",TODAY()-A4,B4-A4)
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,031
Members
449,092
Latest member
ikke

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