LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Ted Metro
 
Posts: n/a
Default Vlookup and Date

I have one table of balance information and I track the balance daily.

Then I have a summary table that pulls growth numbers from that table for 1
week, 1 month, and 3 months.

The formula in my summary table for 1 month is -

=(VLOOKUP(TODAY()-1,Performance!$A$4:$E$10000,2,FALSE)-(VLOOKUP(DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY()-1)),Performance!$A$4:$E$10000,2,FALSE)))/((VLOOKUP(DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY()-1)),Performance!$A$4:$E$10000,2,FALSE)))


Here's my problem -

I only enter these numbers during the week. So on December 13th my table
looks back 1 month and errors out because Nomveber 13th was a Saturday and I
didn't enter a number. In this case I need the formula to go to the last
balance entered which would have been November 12th's Friday balance. Is
there a way to modify my formula so that if the date doesn't exist in the
table then it will go to the most recent previous entry -- If one month ago
(or three months ago) is a Saturday or Sunday it calculates off of the Friday
balance?

I guess I could always enter weekend days in my table and just copy and
paste over the data from Friday, but I hope there's an easier way so that I
don't have to add meaningless records to my table.

Ted
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost on Vlookup, match, etc.... [email protected] New Users to Excel 3 January 22nd 05 03:24 PM
How do I add a date formula to a cell but hide the contents with . Emzy Wemzy Excel Discussion (Misc queries) 2 December 12th 04 01:48 PM
Vlookup Question Jeff Excel Discussion (Misc queries) 2 December 2nd 04 02:40 PM
Nested vlookup? astronautika Excel Worksheet Functions 1 November 19th 04 06:12 PM
Date VLookup Court Excel Worksheet Functions 1 November 11th 04 04:01 PM


All times are GMT +1. The time now is 09:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"