Dates in IF Functions

Kearnsy

New Member
Joined
Jul 8, 2008
Messages
12
I am trying to create a construction programme and havig a few problems.

I have two columns one called Start Date and another called End Date.

The formula in the cells under Start is as follows:

=IF(F12>=1, $F$9, IF(G12>=1, $F$9+1, IF(H12>=1, $F$9+2, IF(I12>=1, $F$9+3, IF(J12>=1, $F$9+4)))))

Forluma in the cells under End Date is:

=IF(F12>=2, F9, IF(G12>=2, F9+1, IF(H12>=2, F9+2, IF(I12>=2, F9+3, IF(J12>=2, F9+4)))))

The cell F9 is a date and is the first day of a week i.e 16/6/2008.

F12 to J12 has been formatted using coditional formatting so that if a 1 or 2 is inputed into the cell it changes colour and highlights the days when construction work is being carried out on. The idea is 1 is the start date all the other days are 1 as well but the last day that work is carried out on i would input 2 and that would go straight into the end date cell.

This only works for one week. I have a 36 week programme. I have tried the formlua.....IF(F12:Z12>=1, F9) but that doesn't work.

Any ideas?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,215,480
Messages
6,125,048
Members
449,206
Latest member
Healthydogs

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