Looking up by range of dates, returning sorted data

sactyr

New Member
Joined
Mar 26, 2013
Messages
1
Hi all, my first post here, hope someone can help me.

I have names of suppliers in column A, names of clients in column B, and dates of which the contracts are coming to end/expiring in column C. There are also other columns in this data but for they won't be needed for what I am about to do.

ABC
Supplier AClient A1 May 2013
Supplier BClient B1 April 2014
Supplier CClient C1 Sept 2013

<tbody>
</tbody>


In another worksheet I need to sort the data (just need to return names of suppliers and clients - from column A and B), for which the contracts are expiring, separated by months. This however depends on today's date, up to two months. So if open the document on 27 March 2013 then I would like the data returned to be from the months of April (1 April 2013 - 30 April 2013) and May (1 May 2013 - 31 May 2013).

Is this possible? Cheers
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi sactyr,

Welcome to the forum.

With todays date in D1 and your example data in A1:C3

Enter this in E1 and pull down. =IF(C1-D1<60,A1&" "&B1,"")

With your example and this formula it Returns "Supplier A Client A"

I may have C1-D1 backwards, if so the do D1-C1 in the formula and pull down.

Regards,
Howard
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,957
Latest member
Hat4Life

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