Calculating amount between yesterday and the day before.

Joeclupis

Board Regular
Joined
Jun 18, 2016
Messages
63
I have a workbook with several spreadsheets that have a column that we track a physical inventory in a fuel tank. I am trying to come up with a formula that will point to the correct column (Column L), use the number from yesterday and subtract the number from the 'day before yesterday'. I tried using TODAY(). Evidently I was incorrect and looking on the web didnt bring any joy. I am using 'yesterday' and 'day before yesterday' as descriptors for the cell locations.

I have my date column in Column A.

The sheet with the information that the data is on is called DAILY VALUES. And I would like to put the resulting number from the calculation on a sheet called DASHBOARD.

Thank you for your help.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
yesterday = today()-1

that I understand, but how do I get excel to subtract a number in a column that the row is the day before yesterday from a number in the same column where the row is yesterday? I am not trying to subtract dates/days, i am trying subtract numbers cooresponding to the last two days to get a continuously updating sum.
 
Upvote 0

Excel 2010
ABCDEL
1-10
2
325-Oct-17100
426-Oct-1780
527-Oct-1770
628-Oct-1750
7
DAILY VALUES
Cell Formulas
RangeFormula
A1=INDEX('DAILY VALUES'!L:L,MATCH(TODAY(),'DAILY VALUES'!B:B,0)-1)-INDEX('DAILY VALUES'!L:L,MATCH(TODAY(),'DAILY VALUES'!B:B,0)-2)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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