I want to calculate the number of days between the date in column F and E and G and E, and report the larger number in column H. I want to have column H stay blank if either column F or G is blank. So far, I can't figure out how to add " if column G is blank" to my formula without getting an error code.
E F G H
1 4/15/13 4/25/13 4/30/13 15
2 4/1/13 4/25/13
3 4/15/13 4/20/13
=IF(F1="","", MAX((F1-E1),(G1-E1)))
Thank you Excel wizards for your help!
Bookmarks