using dates (dd/mm/yyyy eg 23/03/1973) as column headers

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,053
Office Version
  1. 365
Platform
  1. Windows
I have built a model containing a list of projects and the different stages of these. we use the data from the list to determine resourcing levels. have been doing it in excel previously. its like a big gant chart. in excel we have week ending dates running across the top as column headers. to display progress we compare the start date plus the completion status against these column headers. Very simply, if start date (in the body of the data table) is greater than the first column header (its in date format) and end date is less than the second column header (also in date format), show complete under those dates.

Procurement Forward Plan (Live) Jan 24 (copy).xlsb
ASATAUAV
4401 Apr 2308 Apr 2315 Apr 2322 Apr 23
45 nnn
46    
47    
Forward Plan
Cell Formulas
RangeFormula
AT44:AV44AT44=AS44+7
AS45:AV47AS45=IF(ISERROR($AC45),"",IF(AND($AE45>AR$44,$AE45<=AS$44,$AI45=100),$BA$2,IF(AND($AE45>AR$44,$AE45<=AS$44),$AH$2,IF($AE45<AS$44,"",IF(AND(AS$44>=$AK45,AS$44<=$AE45),$AH$3,IF(AND(AS$44>=$AC45,AS$44<=$AK45),$BA$2,""))))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AS44:EN44Cell Value<$AG$2textNO
BA2,EP45:EP2437,AS45:EN2437Cell Value="b"textNO
BA2,EP45:EP2437,AS45:EN2437Cell Value=$BA$3textNO
BA2,EP45:EP2437,AS45:EN2437Cell Value=$AZ$2textNO
BA2,EP45:EP2437,AS45:EN2437Cell Value=$AH$3textNO
BA2,EP45:EP2437,AS45:EN2437Cell Value=$AH$2textNO


Columns AC and AE contain the start date and end date for each project, column AI is the completion %, BA2, AH2 and AH3 contain characters that represent different stages of the project. not important for this question.

I have created columns in power bi that replicate the Date column headers. they are text headers. how do i write a function that will do the comparison above? that is, how do i compare the start date with the column headers?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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