match customer and date of service to another spreadsheet that has customer and check-in / check-out date range

donh

Board Regular
Joined
May 7, 2002
Messages
151
I have a file that has customer # and date a complaint was made and another log spreadsheet that has customer # and check-in and check-out date.

Not all customers will have filed a complaint in the date of service file.

Is there a way to flag the log file when the customer numbers match and when the complaint date is between the check-in / check-out dates?

I am not having any luck at all

the complaint spreadsheet has:
Code:
A	B       C       	D
	cust#	service date	complaint
3	6358535	04/09/2016	COMPLAINT

The customer log file has:
Code:
A	B	C       	D               E
	cust#	check in	check out	
3	6358535	02/24/2018	02/27/2018	
4	6358535	04/05/2016	04/20/2016	complaint
5	6358535	05/24/2016	06/03/2016	
6	6358535	06/27/2016	07/17/2016

any help would be much appreciated.
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Can the same customer number appear multiple times in the complaint spreadsheet? Can there be multiple complaints within a check-in and check-out period for the same customer?
 
Upvote 0
=+COUNTIFS('Complaint Spreadhseet'!B:B, 'Customer Log'!B2, 'Complaint Spreadhseet'!C:C, ">="&'Customer Log'!C2, 'Complaint Spreadhseet'!C:C, "<="&'Customer Log'!D2)

this would count the number of complaints within the range on the Customer Log tab, if you dont want the count it can be substituted to a simple binary "Complaint" or blank . . .
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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