timeline

jasman

Board Regular
Joined
Oct 30, 2010
Messages
141
Hi. I have found and tried the folowing code in which i add a date to c4 and then drag this formula along row 4. It works but it mises a column between the dates? any reason why?

=IF(MOD(COLUMN(),2)=0,"",IF(MONTH($C4+INT(COLUMN()/2))=MONTH($C4),C4+1,""))
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Since
MOD(COLUMN(),2)=0
is TRUE for alternate columns, alternate columns wil show "".

What are you trying to do?
 
Upvote 0
Im basically creating a timeline in where it looks at the date entered by user in d4 and enters the next day into e4 and the rest of the cells in row 4
 
Upvote 0
in that case, in E4:
=D4+1
Enter, then drag to the right (autofill).
Make sure that the results are formatted as dates (this will probably happen automatically).
 
Upvote 0

Forum statistics

Threads
1,224,579
Messages
6,179,656
Members
452,934
Latest member
mm1t1

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