If Formula

Ev1lZer0

New Member
Joined
Sep 26, 2022
Messages
38
Office Version
  1. 365
Platform
  1. Windows
I have an If formula looking at a date in column J and comparing it to today's date so that I can get the total days between entered in column I

I am hoping to modify this a little bit to account for a different scenario

In column C I have another date called "outcome date."

If there is a dater in the column, I would like the formula to use this date instead of today's date.

please ignore Cell I2 and J2 - I am missing information that I need to manually enter. This formula is working fine - minus the change I'm asking for help on.
2022 Color Coded Watch List Copy.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZ
1Date of TrialTriage DateTSO Date Case NumberFirst NameLast NameNFCIn CustodyIn Custody DatePlea & SentenceCompetency Hearing Pre-TrialReadiness/StatusContinuancesOmnibusOther Hearing Dates OfferTime Frame Attorneys NOTESOrder on Competency Evaluation OutcomeOutcome DateColor CodeTrailing
209/26/2208/16/229/16/202222-1-00775-39 22-1-00285-39 Rusty Garcia#VALUE!Fill09/16/224 DaysGill / WestContinued 9/26 - Witness/Victim avilabilityDismissed W/Prej9/22/2022
310/03/2208/22/2216-1-02306-39 20-1-00183-39 Richard Smith10162/4/202010/10/22Barrett / Smith *Needs Triage set at statusPlea11/1/2022Red
2022 Trial Calendar
Cell Formulas
RangeFormula
I2:I3I2=IF($J2="","",DAYS($J2,TODAY())*-1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:C10000Expression=ISEVEN(MATCH($B2,UNIQUE(FILTER($B$2:$B$10000,$A$2:$A$10000=1)),0))textNO
B2:C10000Expression=ISODD(MATCH($B2,UNIQUE(FILTER($B$2:$B$10000,$A$2:$A$10000=1)),0))textNO
D2:Z10000Expression=$Y2="Pink"textNO
D2:Z10000Expression=$Y2="Yellow"textNO
D2:Z10000Expression=$Y2="Red"textNO
Cells with Data Validation
CellAllowCriteria
Y2:Y3List='Data Validation'!$A$2:$A$4
R2:R3List='Data Validation'!$C$2:$C$4
W2:W3List='Data Validation'!$B$2:$B$11
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
try this
Excel Formula:
=IF($J2="","",DAYS($J2,IF(C2="",TODAY(),C2))*-1)
 
Upvote 0
Solution

Forum statistics

Threads
1,222,902
Messages
6,168,938
Members
452,227
Latest member
sam1121

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