Match calender week and return last date value

Nanogirl21

Active Member
Joined
Nov 19, 2013
Messages
330
Office Version
  1. 365
Platform
  1. Windows
Can someone please help me adjust my formula to pull the data from the last date in the matching calendar week.

My current formula pulls the max value from the matching calendar week.
=MAX(IF($E$3:$NE$3=E$13,$E8:$NE8)

$E$3:$NE$3 = Calendar week range to match
$E$4:$NE$4 = Date (mm/dd/yyyy)
E8:$NE8 = Data to pull
E$13 = Calendar week

I would like to adjust the formula to match calendar weeks (row 3 & row 13) and pull the value from the last date (row 4) of that corresponding calendar week. The calendar weeks and dates are not always in order.

Thank you
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Nevermind. I was able to figure it out. :)

Just in case someone comes across this. =LOOKUP(2,1/($E$3:$NE$3=E$13), $E8:$NE8) was able to solve my problem.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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