How do I create a table that then considers whether or not clients appear in other tables?

HelpPlease123

New Member
Joined
Apr 12, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

Pretty new to excel so hoping there's a simple answer to this that I'm not aware of.

I work in marketing insight and part of my role is selecting the best customers to send each of our direct mail campaigns to, and I want to create a workbook in where I can walk through our monthly 'Direct Mail Plan' with the relevant people using a 'selection dashboard' where I can select the clients we want using report filters/slicers, and then when I move onto the next Direct Mail selection I want to have a flag next to the clients that appeared in the previous selection.

I've used a COUNTIF function in the past to count the customer ID (1) if they appear in the table above, but this feels a little too manual/open to error when adjustments are made to the selections tables, so I'm wondering if there's a more efficient way of doing this so that it's a nice user friendly workbook? I'm not familiar with powerpivot/power query but I can learn if your suggested method requires it.

Below is a rough example of the dataset and underneath is an idea of what I'd like the finished product to look like...

Example of Dataset (the real thing will be around 500k records):

Book3
ABCDEFGHIJKLMNOPQRSTUVWXY
3ClientIDEUROPEAN_RANKLONGHAUL_RANKOCEAN_RANKRIVER_RANKSOLO_RANKCITY_RANKOTHER_RANKSegmentation_RANKEUROPEANLONGHAULOCEANRIVERSOLOCITYOTHERSegmentationAgeAverageSpend_per_paxLastBookingSpend_per_paxLastActivityDateLastEnquiryDateLastEnquiryTypeLastBookingDateLastBookingType
4111NULLNULLNULLNULLNULL11100000BE2 Dormant Medium - European80-851069£1000-£15006-12 months2022OTHER2017European
522NULLNULL1NULLNULLNULL21001001BE2 Dormant Medium - European80-851127100012-18 monthd2022EUROPEAN2017European
633NULLNULL2NULLNULLNULL11001000AB1 Active Best - River80-85148814006-12 months2023RIVER2022River
74NULL2NULL3NULLNULLNULL21101000AB1 Active Best - River70-75210120006-12 months2023RIVER2023River
Sheet1



Idea of Final Product:

Book3
ABCDEFGHIJKLMNOP
9
10THIS WOULD APPEAR IN SHEET 2 NOT FILTERED TO VISUALISE DATA, BUT HERE I WOULD FILTER TO ONLY SELECT CLIENTS: 3&4
11Direct Mail: 001 (RIVER)CATEGORYCUSTOMERS
12CustomerIDEUROPEANLONGHAULOCEANRIVEROTHERAgeAverageSpend_per_paxLastActivityDateEUROPEAN4
1311100080-85£1,069.006-12 monthsLONGHAUL2
1421001180-85£1,127.0012-18 monthdOCEAN0
1531001080-85£1,488.006-12 monthsRIVER3
1641101070-75£2,101.006-12 monthsOTHER1
17
18
19THIS WOULD APPEAR IN SHEET 3NOT FILTERED TO VISUALISE DATA, BUT HERE I WOULD FILTER TO ONLY SELECT CLIENTS: 2, 3 AND 4
20Direct Mail: 002 (EUROPEAN)CATEGORYCUSTOMERS
21CustomerIDEUROPEANLONGHAULOCEANRIVEROTHERAgeAverageSpend_per_paxLastActivityDateDM 001EUROPEAN4
2211100080-85£1,069.006-12 months0LONGHAUL2
2321001180-85£1,127.0012-18 monthd1OCEAN0
2431001080-85£1,488.006-12 months1RIVER3
2541101070-75£2,101.006-12 months1OTHER1
26
27
28THIS WOULD APPEAR IN SHEET 4NOT FILTERED TO VISUALISE DATA, BUT HERE I WOULD FILTER TO ONLY SELECT CLIENTS: 3 AND 4
29Direct Mail: 003 (OCEAN)CATEGORYCUSTOMERS
30CustomerIDEUROPEANLONGHAULOCEANRIVEROTHERAgeAverageSpend_per_paxLastActivityDateDM 001DM 002EUROPEAN4
3111100080-85£1,069.006-12 months01LONGHAUL2
3221001180-85£1,127.0012-18 monthd11OCEAN0
3331001080-85£1,488.006-12 months10RIVER3
3441101070-75£2,101.006-12 months10OTHER1
35
36
37THIS WOULD APPEAR IN SHEET 5NOT FILTERED TO VISUALISE DATA, BUT HERE I WOULD FILTER TO ONLY SELECT CLIENTS: 3 AND 4
38Direct Mail: 004 (ALL)CATEGORYCUSTOMERS
39CustomerIDEUROPEANLONGHAULOCEANRIVEROTHERAgeAverageSpend_per_paxLastActivityDateDM 001DM 002DM 003EUROPEAN4
4011100080-85£1,069.006-12 months010LONGHAUL2
4121001180-85£1,127.0012-18 monthd110OCEAN0
4231001080-85£1,488.006-12 months101RIVER3
4341101070-75£2,101.006-12 months101OTHER1
44
45
46EXAMPLE OF FILTER USE: IF CUSTOMERS RECEIVED 'DM003' THEN THEY CANNOT BE SELECTED. APPLY DM003 FLAG = 0 AND WE CAN THEN SELECT FROM THE REMAINING CUSTOMERS. COUNT TABLE AT THE SIDE UPDATES TO SHOW HOW MANY CUSTOMERS THERE ARE LEFT FOR US TO SELECT FROM.CATEGORYCUSTOMERS
47EUROPEAN2
48CustomerIDEUROPEANLONGHAULOCEANRIVEROTHERAgeAverageSpend_per_paxLastActivityDateDM 001DM 002DM 003LONGHAUL1
4911100080-85£1,069.006-12 months010OCEAN0
5021001180-85£1,127.0012-18 monthd110RIVER1
53OTHER1
54
Sheet1
Cell Formulas
RangeFormula
L12L12=SUM(B13:B16)
L13L13=SUM(C13:C16)
L14L14=SUM(D13:D16)
L15L15=SUM(E13:E16)
L16L16=SUM(F13:F16)
O47O47=SUM(B49:B50)
O48O48=SUM(C49:C50)
O49O49=SUM(D49:D50)
O50O50=SUM(E49:E50)
O53O53=SUM(F49:F50)
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,223,881
Messages
6,175,161
Members
452,615
Latest member
bogeys2birdies

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