Need HELP FORMULA for dates

Louise_douglass

New Member
Joined
Mar 10, 2014
Messages
24
Hi there,

I am looking for a formula that will tell me the start and end date in excel based off whether the cells are populated.

so in row 1 I have the dates
Below I have filled in 1's where there will be work for that week.

I want to know when the 1's start and when the 1's finish based off the dates that are in ROW 1.

Need help urgently!! Many thanks
 
If your values always increase as the date increases....

=TEXT(INDEX(1:2,1,MATCH(1,2:2,0)),"mm/DD/YYYY")&" - "&TEXT(INDEX(1:2,1,MATCH(LARGE(2:2,1),2:2,0)),"MM/DD/YYYY")
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
A slight change to my formulas for numbers other than 1:


Excel 2010
ABCDEFGHIJKLMNO
130-Dec-1306-Jan-1413-Jan-1420-Jan-1427-Jan-1403-Feb-1410-Feb-1417-Feb-1424-Feb-1403-Mar-1410-Mar-1417-Mar-1424-Mar-1431-Mar-1407-Apr-14
2156165167176182189196205209
3Start06-Jan-14
4End03-Mar-14
Sheet1
Cell Formulas
RangeFormula
B3=INDEX(A1:O1,MATCH(1,INDEX(--(A2:O2<>""),),FALSE))
B4=LOOKUP(2,1/A2:O2,A1:O1)
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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