In column A:A are a list of dates beginning Sunday, 1/3/10.
In column B:B are a list of the sales amounts associated with each date in column A:A.
I need a formula that I can drag and drop in columd E:E and F:F that will show the dates for Sunday ONLY in column E:E and the corresponding sales for those Sundays in column F:F.
Please see attached .pdf file for an example.
THANKS!
Last edited by dcm6276; 04-14-2010 at 03:18 PM.
I didn't look at file.. should be a .xls file.....
Adjust as necessary...
, In C2: =IF(WEEKDAY(A2)=1,COUNT($C$1:C1)+1,"") copied down
Then in D2: =MAX(C:C)
Then in E2: =IF(ROWS($A$1:$A1)>$D$2,"",INDEX(A:A,MATCH(ROWS($A$1:$A1),$C:$C,0))) copied to next column and down as far as you want..
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
I have attached an excel spreadsheet file
Have you tried the formulas?
I just copied and pasted them as I wrote them and presto!
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Works perfectly.
Thank you much.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks