AutoPhase Values

awalsh80

New Member
Joined
Jun 23, 2011
Messages
17
I am trying to automatically spread (phase) values linearly through a specefic date range.

Cell A1 contains the value (100);
Cell B1 contains the Start Date (Jul 11)
Cell C1 contains the finish date (Oct 11)
Cells D1 thru O1 will be where the formula is entered and will be the date range. (Jan 11 - Dec 11)

I would expect to see the following:

Jan11 Feb11 Mar11 Apr11 May11 Jun11 Jul11 Aug11 Sep11 Oct11
0 0 0 0 0 0 25 25 25 25

Is this possible??

Thanks.
 
I was able to get it to work for the first activity, but when I try to copy down or use the format painter on the rest of the activities it doesn't work.
 
Upvote 0

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.
You didn't mention other activities in the first question, can you elaborate? Are they in A3-E3, A4-E4, etc?
 
Upvote 0
It would make more sense if you could see the file I'm working on. I will try to explain better:

Cell A2 =Activity 1
Cell A3 =Activity 2
etc

Cell B2 =Start Date for Activity 1
Cell C2 =Range Start date for Activity 1
Cell D2 =Range Finish date for Activity 1
Cell E2 =Finish Date for Activity 1

Cells G1 - BQ1 =The Weekly Range at the top of the sheet (7/22/11-8/13/12)

I need the CF inside the range starting on G2 through BQ135.

Hope this makes better sense. I can send you the file if you would like to see it.
 
Upvote 0
So then, you want the dates B3, C3, D3, E3 to be highlighted in the range G2-BQ2? If that's the case, just take out the $ sign in the conditional formats from the first row, like so

C1=$B$6 becomes C1=$B6

or, in your example, if you have for Rule 1

G1=$B$2 becomes G1=$B2

then you'll be able to use format painter to propagate that rule.
 
Upvote 0
Also, Is it possible to make the green and red formatting not = to but between the range? The range at the top is week ending dates, but the start/stop dates might not equal those exact dates.

In example, the start date of an activity could be 8/13/11 but there is not 8/13/11 at the top, there is an 8/19/11 that I would want to be green.

Hope that makes sense.
 
Upvote 0
You basically need to find the first date that's greater than or equal to your end date, so same principle as we did in the first few examples:


Excel Workbook
ABCDEFGHIJKLMN
17/22/117/23/117/24/117/25/117/26/117/27/117/28/117/29/117/30/117/31/118/5/118/15/11
2Activity 17/23/117/25/117/29/118/1/11
3Activity 2
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C11. / Formula is =(C1=INDEX($C$1:$N$1, MATCH(TRUE, $C1:$N1>=$E2, 0)))Abc
C12. / Formula is =AND(C1>=$C$2, C1<=$D$2)Abc
C13. / Formula is =C1=$B$2Abc
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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