Hey guys,
Just need some help with nesting several IF statements to calculate how much time has passed between two dates. I'm working with data that experienced a shift in how fields were being used in the program, so older data is missing the current field and instead utilizes another date. Here are the fields:
Column A: docs received
Column B: client intent to proceed
Column C: VOE ordered
At this point, I have two different functions that need to somehow be nested in order to utilize just one function for the calculation.
Here's the first function that uses an older field to replace the missing new field: =IF(AND(B2 = "",A2 <> ""),A2,IF(B2 <> "", B2, "")) <-- if "client intent to proceed" is blank and "docs received" is NOT blank, then use date in field "docs received"; otherwise if "client intent to proceed" is NOT blank, use that date, otherwise leave it blank
Here's the second function where calculation between dates occurs: =IF(B2= "" ,"" ,IF(C2-B2 < 0, "" ,(C2-B2))) <--if "client intent" is blank, then leave blank, if "VOE ordered" minus "client intent" is less than zero (client intent should not precede VOE order date), then leave as blank; otherwise, "VOE ordered" minus "client intent to proceed"
So looking to nest the first function within the second - any help appreciated!
Thank so much!
Just need some help with nesting several IF statements to calculate how much time has passed between two dates. I'm working with data that experienced a shift in how fields were being used in the program, so older data is missing the current field and instead utilizes another date. Here are the fields:
Column A: docs received
Column B: client intent to proceed
Column C: VOE ordered
At this point, I have two different functions that need to somehow be nested in order to utilize just one function for the calculation.
Here's the first function that uses an older field to replace the missing new field: =IF(AND(B2 = "",A2 <> ""),A2,IF(B2 <> "", B2, "")) <-- if "client intent to proceed" is blank and "docs received" is NOT blank, then use date in field "docs received"; otherwise if "client intent to proceed" is NOT blank, use that date, otherwise leave it blank
Here's the second function where calculation between dates occurs: =IF(B2= "" ,"" ,IF(C2-B2 < 0, "" ,(C2-B2))) <--if "client intent" is blank, then leave blank, if "VOE ordered" minus "client intent" is less than zero (client intent should not precede VOE order date), then leave as blank; otherwise, "VOE ordered" minus "client intent to proceed"
So looking to nest the first function within the second - any help appreciated!
Thank so much!