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
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Example:


Excel 2010
ABCDEFGHIJ
101/06/201402/06/201403/06/201404/06/201405/06/201406/06/201407/06/201408/06/201409/06/201410/06/2014
2111
3Start03/06/2014
4End05/06/2014
Sheet1
Cell Formulas
RangeFormula
B3=INDEX(A1:J1,MATCH(1,A2:J2,FALSE))
B4=LOOKUP(2,1/(A2:J2=1),A1:J1)
 
Upvote 0
you can use sorting to sort the data/time field. i am not sure if that is what you need
 
Upvote 0
Another solution if you want it in one cell as a date range:

=TEXT(INDEX(1:2,1,MATCH(1,2:2,0)),"MM/DD/YYYY")&" - "&TEXT(INDEX(1:2,1,MATCH(2,2:2,1)),"MM/DD/YYYY")
 
Upvote 0
Thank you! think this is almost there. not all of the cells are populated with 1 - sorry that was a bad example - they are totals, so I need the formula to allow for any number but to recognise that its populated i.e. return date.
 
Last edited:
Upvote 0
my table looks like the following:
30-dec 6 Jan 13 Jan 20 Jan 27 Jan 3 Feb 10 Feb
0 34 40 150 134 120 212



Imagine that there are more rows with similar totals just at different dates...So what I need is a formula that is saying the project starts 6-Jan and ends 10 feb ...The end date can shift...

Does this help for finding the right formula?

Thanks for all of your help!!
 
Upvote 0
30-Dec-136-Jan-1413-Jan-1420-Jan-1427-Jan-143-Feb-1410-Feb-1417-Feb-1424-Feb-143-Mar-1410-Mar-1417-Mar-1424-Mar-1431-Mar-147-Apr-14
156165167176182189196205209

<colgroup><col style="mso-width-source:userset;mso-width-alt:4022; width:83pt" span="3" width="110"> <col style="mso-width-source:userset;mso-width-alt:2560; width:53pt" span="7" width="70"> <col style="width:48pt" span="5" width="64"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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