Excel - find last day of that week

Eisasuarez

Well-known Member
Joined
Mar 23, 2012
Messages
653
Hi

I have dates in column A and Values in Column B

Now say i input a date in D1 = 04/01/2016

In E1, how can i return the last date found for that week looking into column A?

so say the last date for that week was 08/01/2016 - i would want it to return that date..

thank you
 
I would love to see a single formula solution. So I was doing some testing, and it looks promising. However I ran into an issue.

Let's say that among all our dates in column A, we have 1/9/2016 (which is a Saturday) and 1/10/2016 (which is a Sunday).
Then, if we have 1/4/2016 in cell D1, it should return 1/9/2016, but it is returning 1/10/2016.

Hi

I am struggling to incorporate the max if formula into my existing formula

I am returning the data from a table...This is my formula...I need to include the maxif formula into the false part of the If condition

so basically if R1 = 1 then I don't need to run the maxif formula however if it shows 2, then use the maxif formula to return the last day found and then retrieve the data for that date found

Code:
=IFERROR(IF($R$1=1,SUMIFS(Table13[WIP],Table13[Date],'WEEK DASHBOARD'!C$8,Table13[Teams],'WEEK DASHBOARD'!$B9),SUMIFS(Table13[WIP],Table13[Date],[COLOR=#FF0000]???????,[/COLOR]Ta[COLOR=#FF0000][/COLOR]ble13[Teams],'WEEK DASHBOARD'!$B9),Table13[Teams],'WEEK DASHBOARD'!$B9)),0)
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,225,149
Messages
6,183,178
Members
453,151
Latest member
Lizamaison

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