Updating cell from table

marquez313

New Member
Joined
Mar 10, 2009
Messages
18
I'm using Excel 2007 to keep a database of daily settlements for financial futures as well as a variety of studies for these daily values. I want to have one page that I can print every morning with the relevent information for the day. So what i'm trying to figure out is how to make the cell on my "Settlements" page always read the last cell of my data column or find the average of the last five cells, for example.
 
I may have gotten your columns mixed up. After testing I also realized that "-5" would give the last 5 days AND the current date. Since you wanted a total of 5 days, including the current date, that has to be "-4"

I think A had the dates and B had the values, right? If so then the formula i posted earlier is correct. Also, I just remembered its not the full column, because you were reserving the first row for your totals, so:

=average(if(a2:a10000 > = today()-4,b2:b10000))

If it is the other way around, then

=average(if(b2:b10000 > = today()-4,a2:a10000))

Remember that it must be entered with Ctrl-Shift-Enter
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
so close! here's what i have entered:

=AVERAGE(IF('TUA Data'!G:G>=TODAY()-4,'TUA Data'!H:H))

but when i go to the page and just do an average of the last 5 days, the numbers don't jive.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,854
Members
449,051
Latest member
excelquestion515

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