LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Adding sales from a non working day to the previous working day

Hi

I have a spreadsheet that contains daily sales data. Very occasionally, we
have sales recorded against a non working day. What I want to do is to add
these sales to the previous working day as if they were actually taken on
that day.

Example:

This could be the data I start with:

Date Sales
15/09/03 $100
16/09/03 $150
17/09/03 $120
18/09/03 $130
19/09/03 $180
21/09/03 $110
22/09/03 $250

I want to translate this to:

Date Sales
15/09/03 $100
16/09/03 $150
17/09/03 $120
18/09/03 $130
19/09/03 $290
22/09/03 $250

(notice that sales for the Sunday 21st have been added to the 19th)

Any ideas how I can achieve this? I've started to use Vlookup against a
static range that only contains working dates, and this will return the
previous value in the range if the exact value doesn't exist, (so the Sales
on the 21st will return the value 18/09/03) but after that I got stuck.

Thanks in advance

Alex


 
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
Calculate working days but change working week SamB Excel Discussion (Misc queries) 1 September 1st 08 09:17 PM
Working with dates previous 1900 MaR Excel Discussion (Misc queries) 2 January 31st 07 05:56 PM
adding only working days to dates bazooka Excel Discussion (Misc queries) 2 May 4th 06 06:15 PM
Adding Working Days to a Formula jpw1972 Excel Discussion (Misc queries) 1 April 4th 06 09:46 AM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 08:00 PM


All times are GMT +1. The time now is 05:32 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"