Use newest date in a range for formula

liiiiiiiiza

New Member
Joined
Jun 20, 2020
Messages
2
Office Version
  1. 2011
Platform
  1. Windows
I am a Field Sales rep and I have an excel report of what hospitals I went to on what days.

I'm trying to make a heat map using conditional formatting to visualize time passage regarding who I haven't visited recently. I'm using the below formula to pull up the visit date minus today's date which works well for the heat map:

=(Sheet3!$A$4-TODAY())

This works with business that show up a single time in my report (one visit, like "Happy Tails Hospital" below). However, here is where I'm hitting a snag: If I visited a business multiple times recently, it will show up as multiple entries (like "Claws and Paws" below). When there are multiple entries, I need a way to have the formula use the newest date for that business to calculate the time passage. So for Claws and Paws, I would need it to apply the 3/5/2020 date to the "heat map" formula from the Raw data sheet.

Raw data sheet:
1592684151906.png


Heat map sheet:
1592684194701.png
 

Attachments

  • 1592683839872.png
    1592683839872.png
    23.9 KB · Views: 14

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try -
Change the sheet name to match yours

=MAX(IF(Raw data sheet$B$2:$B$9=A2,Raw data sheet$A$2:$A$9))-TODAY()

Enter as an array with Ctrl, Shift & Enter
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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