|  

» Calculating a Required Date According to Two Criteria

Problem:

Columns B & C contain test dates and paper deadlines for each of the subjects listed in column A.
A test requires 3 days of preparation and a paper requires 5 days.
For each subject, we want to calculate the earliest date required to start preparing for either a test or a paper.

Solution:

Use the MIN and IF functions as shown in the following formula:
=MIN(IF(B2<>"",B2-3,C2-5),IF(C2<>"",C2-5,B2-3))

Rate This Tip
12 34 5
Rating: 4.33     Views: 23135
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments