Constant Value at the Top of a Table

dlybb

New Member
Joined
Jun 1, 2009
Messages
13
Hey,

I have a table as follows:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Activity
[/TD]
[TD]Duration (days)
[/TD]
[TD]Date
[/TD]
[TD]Start Date
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]2
[/TD]
[TD]today()
[/TD]
[TD]today()
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]4
[/TD]
[TD]today()+previous
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]1
[/TD]
[TD]today()+previous
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]7
[/TD]
[TD]today()+previous
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

There are a number of activities that require a set amount of days to complete and a defined start date. I will filter the table so some activities will not be included, and I will rearrange the table so that the top cell is not constant (i.e. perhaps we will do activity B first).

Setting up the table so that each cell referenced the cell before is not a problem, BUT making it so that the top cell in the date column is always defined by a cell elsewhere in the sheet has me stumped.

Any ideas?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
If you mean that you always want a formula to refer to B2 :

=OFFSET(B1,1,0)

Or

=INDIRECT("B2")
 
Upvote 0
The tricky part here is that I always want the first visible cell in the table to refer to cell B2. So if I filter so that the first row is hidden, I would like the next "B" to reference B2.
 
Upvote 0
The tricky part here is that I always want the first visible cell in the table to refer to cell B2. So if I filter so that the first row is hidden, I would like the next "B" to reference B2.

I would like the next "B" to reference B2
​Please explain with sample data/formulas.
 
Upvote 0
I would like the next "B" to reference B2
​Please explain with sample data/formulas.

I guess that was a little confusing.

In the tables below, the "Start Date" is a fixed input value, and the top row "Date" references that input value.

I would like it to work like this:

Table filtered in phase 1:
[TABLE="class: cms_table_grid, width: 500"]
<tbody>[TR]
[TD]Activity
[/TD]
[TD]Duration (days)[/TD]
[TD]Date[/TD]
[TD]Start Date[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2[/TD]
[TD]today()
[/TD]
[TD]today()[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4
[/TD]
[TD]today()+previous[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1
[/TD]
[TD]today()+previous
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]7[/TD]
[TD]today()+previous
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Table filtered in phase 2:
[TABLE="class: cms_table_grid, width: 500"]
<tbody>[TR]
[TD]Activity[/TD]
[TD]Duration (days)[/TD]
[TD]Date[/TD]
[TD]Start Date
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]2[/TD]
[TD]today()
[/TD]
[TD]today()
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]4[/TD]
[TD]today()+previous[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]1[/TD]
[TD]today()+previous[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Basically, no matter how the table is filtered or arranged, the upper most row in the "Date" column references the cell under "Start Date" and each cell below it adds the "Duration Row" on.

This would effectively give a start date for each activity and it would be modified relative to how the table is ordered/filtered.
 
Upvote 0
Sorry, Table 2 should have looked like this:
Table filtered in phase 2:
[TABLE="class: cms_table_cms_table_grid, width: 500"]
<tbody>[TR]
[TD]Activity[/TD]
[TD]Duration (days)[/TD]
[TD]Date[/TD]
[TD]Start Date[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4
[/TD]
[TD]today()[/TD]
[TD]today()[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]7
[/TD]
[TD]today()+previous[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1[/TD]
[TD]today()+previous[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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