Adding value to last cell in table column

GazNicki

Board Regular
Joined
Nov 30, 2010
Messages
78
Hello.

I’m creating a spreadsheet to calculate working time, and need to ensure I’m using the correct reference period. I have a sheet that works, using a table, that requires I manually enter a number in the last cell of the last column.

The table expands daily when new figures are added manually, such as the date and times.

However, the very last cell in the last column is what I need to be a set number (119 in this instance). The cells in that column prior need to be the final cell -1.

Is there an IF statement that detects the final cell and can place the number 119 in it, and if it isn’t take the value of the cell below it and subtract 1?

Bearing in mind that the table expands from the bottom?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Use a formula (in row 2, as am assuming headers are in row 1), in the column which references an entire column of data (excluding header) to test if last row, like:
=IF((ROW()-1)=ROWS([Dept]),119,C3-1)
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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