Stop a formula if a cell has a certain text and show the last count where it stopped

Alishk

New Member
Joined
Jan 28, 2021
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
Hello experts,
So i am stuck here.

B = has a past date "01/10/21"
F = has a shipment date (if shipped)
G = has either "Shipped" "Processing" or "Canceled"
H = is counting days =TODAY()-$B2

what I want either
if F has a date
H should stop counting days further and show counted days (the difference between B date and F Date)

OR
if G is either "Shipped" or "Cancelled"
H should stop counting days further and show counted days till G value is shipped or canceled.


i also attached my sheets picture
 

Attachments

  • 12sd.jpg
    12sd.jpg
    98 KB · Views: 93
=if(And(f2="",B2=""),"",if(b2="","",IF(F2="",TODAY()-B2,F2-B2)))

Try!
No there is another problem. your formula works and showing black cell it is ok.
problem is now with my conditional formatting.
my conditional formating says if the value of H is >=10 highlights the whole row with red color. now when formula is applied on a black row which will be populated by a form it is highlighting it with re for no reason.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try This! Conditional formula
Assume you start from Row No.2

=AND($H2>=10,$H2<>"")
 
Upvote 0
Try This! Conditional formula
Assume you start from Row No.2

=AND($H2>=10,$H2<>"")
i can use this formula because it will collide with my other conditional formatting which is for example
=AND($H2>=10, $G2<>"Shipped")
 
Upvote 0
If you have many rules . For eg. 3 Rules .
you can set priority on conditional formating And Stop at any level you want.Tick on ( Stop if true!) in conditional formating window.
 
Upvote 0
If you have many rules . For eg. 3 Rules .
you can set priority on conditional formating And Stop at any level you want.Tick on ( Stop if true!) in conditional formating window.
Thank you for your great help. I appreciate it.
i solve my las problem by overriding a conditional formatting by create a rule on top to recolor aal rows whos value is more than 1000
 
  • Like
Reactions: alz
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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