The hard part is to get yesterdays' date. Can you make the date in Microsoft
time format rather than a text string?
You can use format Mar-03
=VLOOKUP(TODAY()-1,A1:D10,2,FALSE)
where today(1)-1 is yesterday
> I have two worksheets
>
[quoted text clipped - 20 lines]
>
> How about yesterdays value for (ColB-ColC) (from worksheet2)?
bran100 - 14 Mar 2007 20:45 GMT
Thanks for the direction. I had never used Vlookup before.
That actually worked perfect.
=VLOOKUP((TODAY( ))-1,Sheet1!$A$1:$R$367,11,FALSE)
Having fun with it now...
Here's an average of the "last 3 days"
=((VLOOKUP((TODAY( ))-1,Sheet1!$A$1:$R$367,11,FALSE))+
(VLOOKUP((TODAY( ))-2,Sheet1!$A$1:$R$367,11,FALSE))+
(VLOOKUP((TODAY( ))-3,Sheet1!$A$1:$R$367,11,FALSE)))/3
There may be an easier way to do that average, but it works fine for
me.
:)
Thank you.