What a retargeting audience really is
Most visitors leave an online shop without buying. Some were only looking, some were comparing prices, some filled a cart and were interrupted by a phone call. Retargeting, which many platforms call remarketing, shows ads to exactly these people after they have left: on social feeds, on other websites, in video and next to search results. It is usually the best-looking line in an advertising report, and it is also the easiest one to run badly.
Everything in retargeting starts with a list. A tag on the site, or the shop system itself, records that a visitor did something: opened a product page, put an item in the cart, reached the checkout. Each of these actions feeds an audience, and the people currently on it form the audience pool. The pool is the raw material of every campaign that follows. If you do not know how big it is, who is in it and how long people stay in it, every later number (frequency, CPA, return on ad spend) rests on sand.
This free lesson builds the foundation in a spreadsheet. You will calculate how long ago each visitor was last on the site, give every audience its own membership window, decide who is still in the pool and count the size of each pool. The example company is Quillmere Outdoor, a fictional online shop for hiking and camping gear. All visitors, dates, windows and numbers are invented for learning, and the window lengths are illustrative, not rules of any advertising platform.
The membership window: how long a visitor stays on the list
A visitor does not stay on a retargeting list for ever. Every audience has a membership window, also called membership duration or lookback window: the number of days a person remains a member after the visit that qualified them. A 14-day cart audience contains everybody who added something to the cart within the last 14 days. On day 15 the visitor drops off automatically, unless a new visit has restarted the clock.
The window is the most important setting of an audience, and it pulls in two directions. A long window makes the pool large, which gives the campaign reach and lets the list pass the minimum size that ad platforms require before they serve it. But the people a long window adds are the ones who have been away longest, and interest fades quickly. A short window keeps only fresh, motivated visitors, but on a quiet site it may leave too few people to advertise to at all.
There is a second reason to care. The window decides how long somebody is followed by your ads. A tent that keeps appearing for three months after a single glance is the kind of advertising people remember for the wrong reasons. A sensible window is therefore both an economic decision and a matter of respect for the visitor.
One window for everybody is the classic mistake
Many accounts run a single list called something like All visitors, 30 days. It is simple, and it ignores the most useful thing you know about each person: how far they got. Compare three visitors of an outdoor shop:
- Started checkout. This person entered an address and stopped at the payment step. The decision is days away, not weeks. A short window of about a week matches the urgency; after that the purchase has usually happened somewhere, or the plan was dropped.
- Added to cart. A clear signal of interest, but people also use carts as wish lists while they compare. Two weeks is a reasonable window to stay present during the comparison.
- Viewed product. The earliest and weakest signal. The visitor may be planning a trip that is months away. A longer window, here 30 days, keeps the shop in mind without pretending that a purchase is imminent.
The pattern is general: the deeper the step, the shorter and more valuable the window. Quillmere Outdoor uses 7 days for checkout starters, 14 days for cart abandoners and 30 days for product viewers. Each visitor is placed in the audience of the deepest step reached, so that nobody sits in two lists and gets two sets of ads. The diagram shows the three windows on one time axis.
Days since the last visit: one subtraction
Whether a visitor is still inside a window depends on one number: the days since the last visit. Excel stores dates as serial numbers that count days, so two dates can simply be subtracted. 31 October 2026, the analysis date of this example, is stored as 46326. A last visit on 22 October 2026 is stored as 46317. The difference, 9, is the number of days in between.
The DAYS function does the same thing and says what it means: =DAYS(end_date, start_date). Note the order of the arguments. The later date, here the analysis date, comes first. Swap them and every result is negative, which is one of the most common errors in the lab.
The analysis date sits in a single cell, C2, and is locked with dollar signs in the formula: $C$2. When the formula is copied down fourteen rows, the reference to the visitor's own last visit moves with each row, while the analysis date stays put. Tomorrow you change one cell and the whole sheet moves a day forward. This habit, one input cell and absolute references to it, runs through all twenty labs.
A fully worked example: Quillmere Outdoor on 31 October 2026
Here are the fourteen visitors of the lab with their deepest step, last visit, pages viewed and cart value, followed by the three calculated columns: days since the last visit, the membership window of the visitor's audience and the resulting status.
| Visitor | Deepest step | Last visit | Pages | Cart value | Days since | Window | Status |
|---|---|---|---|---|---|---|---|
| V-201 | Added to cart | 28 Oct 2026 | 9 | €148 | 3 | 14 | In pool |
| V-202 | Viewed product | 19 Oct 2026 | 4 | €0 | 12 | 30 | In pool |
| V-203 | Started checkout | 22 Oct 2026 | 11 | €236 | 9 | 7 | Expired |
| V-204 | Viewed product | 27 Sep 2026 | 3 | €0 | 34 | 30 | Expired |
| V-205 | Added to cart | 15 Oct 2026 | 7 | €89 | 16 | 14 | Expired |
| V-206 | Started checkout | 29 Oct 2026 | 14 | €312 | 2 | 7 | In pool |
| V-207 | Viewed product | 4 Oct 2026 | 6 | €0 | 27 | 30 | In pool |
| V-208 | Added to cart | 17 Oct 2026 | 8 | €174 | 14 | 14 | In pool |
| V-209 | Viewed product | 16 Sep 2026 | 2 | €0 | 45 | 30 | Expired |
| V-210 | Started checkout | 25 Oct 2026 | 12 | €205 | 6 | 7 | In pool |
| V-211 | Added to cart | 10 Oct 2026 | 5 | €64 | 21 | 14 | Expired |
| V-212 | Viewed product | 26 Oct 2026 | 10 | €0 | 5 | 30 | In pool |
| V-213 | Added to cart | 23 Oct 2026 | 9 | €129 | 8 | 14 | In pool |
| V-214 | Started checkout | 20 Oct 2026 | 13 | €268 | 11 | 7 | Expired |
Three formulas fill the calculated columns. Each is entered in row 4 and then copied down as far as row 17:
- Days since the last visit (F4):
=DAYS($C$2,C4)or=$C$2-C4. The analysis date is locked so every row uses the same date. - Membership window (G4):
=XLOOKUP(B4,$J$4:$J$6,$K$4:$K$6). It finds the deepest step in the small table J4:J6 and returns the window from K4:K6. - Status (H4):
=IF(F4<=G4,"In pool","Expired"). Without helper columns the same test is=IF($C$2-C4<=XLOOKUP(B4,$J$4:$J$6,$K$4:$K$6),"In pool","Expired").
Walk through a few rows. V-203 started a checkout nine days ago. That sounds recent, but the checkout window is 7 days, so V-203 has expired: the moment has passed. V-207 looked at a product 27 days ago, three times as long, and is still in the pool, because product viewers stay for 30 days. Recency alone does not decide membership; recency measured against the window of the audience does.
V-205 is the row the lab checks. A cart from 16 days ago is two days past the 14-day window and therefore expired. With a single 30-day rule for everybody, V-205 would still be served cart ads, and so would V-211 with a 21-day-old cart. V-208 is the boundary case: exactly 14 days. The rule is at most the window, written <=, so V-208 is in the pool for one last day.
Why XLOOKUP and not a nested IF
You could write the window straight into the formula: IF the step is checkout, 7; if it is cart, 14; otherwise 30. It works, and it buries three business decisions inside fourteen copies of a formula. When the team decides to try a 10-day cart window, somebody has to find and edit every copy.
A lookup table keeps the decisions visible. The windows live in K4:K6 next to their audience names, XLOOKUP(B4,$J$4:$J$6,$K$4:$K$6) fetches the right one for each row, and a change to one cell updates every visitor and every pool count at once. If your Excel version has no XLOOKUP, =INDEX($K$4:$K$6,MATCH(B4,$J$4:$J$6,0)) returns the same value. The lab accepts either.
Counting the pools with COUNTIFS
The status column is useful for reading single rows. For the pool size you do not need it. COUNTIFS can count directly from the raw data with two conditions: the deepest step equals the audience, and the last visit is on or after the first day of the window.
=COUNTIFS($B$4:$B$17,J4,$C$4:$C$17,">="&$C$2-K4)
Read the second condition from the inside. $C$2-K4 is the analysis date minus the window, the earliest date that still counts. The text ">=" is joined to that date with & to form a criterion such as on or after 17 October 2026. Copied down three rows, the formula returns the size of each pool:
| Audience | Membership window | Visitors in the data | Pool size | Expired |
|---|---|---|---|---|
| Viewed product | 30 days | 5 | 3 | 2 |
| Added to cart | 14 days | 5 | 3 | 2 |
| Started checkout | 7 days | 4 | 2 | 2 |
| All audiences | 14 | 8 | 6 |
Of fourteen visitors, 8 are in a pool on 31 October and 6 have expired. Every audience has lost members: two of five product viewers, two of five carts and two of four checkouts. A report that simply counts cart visitors would say five; the list that an ad platform can actually serve contains three.
How to read the result
Pool size is the ceiling of a retargeting campaign. You cannot reach more people than the pool holds, and you should not show each of them more than a handful of ads a week. Pool size times a sensible weekly frequency times the price of impressions gives the budget the audience can absorb. Money beyond that either goes to the same people again and again or is not spent at all. Lesson 16 of the course makes exactly this calculation.
The example also shows what expiry costs and saves. The eight visitors in a pool have carts worth €968 between them; the expired visitors left carts worth €657. With longer windows those carts would still be advertised to. Whether that would pay is not a matter of opinion. It depends on how well old carts still convert, which is the subject of lesson 2: there you compare the conversion rate of the visitors a longer window adds with the cost of serving them.
Finally, remember that these are fourteen rows for learning. A real shop has thousands of visitors a day, and platforms need a minimum number of active members before a list serves, as an illustration from around a hundred to a thousand or more; the requirement differs by platform and placement and changes over time. Short windows on a small site can fall below that line. The arithmetic of this lesson tells you in advance whether a planned audience will be large enough.
Common mistakes
- Reversed dates.
=C4-$C$2or=DAYS(C4,$C$2)gives negative days. The later date comes first. - No dollar signs on the analysis date.
=C2-C4works in the first row and then slides to C3, C4 and so on when copied. Lock it:$C$2. - One window for all audiences. A fixed 30 keeps old carts and stale checkouts in pools where they no longer belong, and it hides the difference between the audiences.
- Strictly less than instead of at most.
<drops the visitor on the last day of the window. Decide which definition you use and apply it everywhere; this course uses<=. - Counting everybody who ever qualified.
COUNTIFon the step alone returns five cart visitors. The pool is smaller, because membership expires. Add the date condition. - The wrong comparison sign in COUNTIFS. Members visited on or after the start of the window, so the criterion is
">=". With"<"you count the expired visitors instead. - Looking up the wrong column. XLOOKUP must search for the deepest step in column B, not for the visitor ID in column A.
Choosing windows in practice
Where do sensible window lengths come from? Start from the time customers need to decide. In your order data, look at the days between the first visit and the purchase. If most buyers of sleeping bags order within ten days of their first product view, a 90-day product-view window mostly follows people who are no longer in the market. For expensive, considered purchases such as tents or bikes the decision takes longer and the window can too.
Then let each audience earn its window. Split a long list into recency bands, measure how the conversion rate falls from band to band and stop where the added visitors no longer cover the cost of the ads shown to them. This is the marginal view of lesson 2 and the recency bands of lesson 3. A window chosen this way is a number you can defend, and one you can revisit when prices or products change.
A window restarts with every visit
One detail explains many surprises in pool sizes: the clock starts again with each qualifying visit. A visitor who looks at a product on the 1st and returns on the 20th is 11 days old on the 31st, not 30. That is why the lab works with the last visit. It also means that regular visitors never leave a long list, so a 30-day viewer pool is partly made of loyal customers who browse every week. They are among the people most likely to buy without any ad, a thought that returns later in the course under the name incremental share.
It is also the reason why exclusions matter as much as windows. Somebody who bought yesterday has a very recent visit and qualifies for every list. Without a rule that removes recent buyers, the freshest and most expensive impressions go to people who have just paid. Lesson 7 builds that exclusion and measures the spend it saves.
Build it yourself, step by step
- Put the analysis date in C2 and the visitor data in rows 4 to 17: ID, deepest step, last visit, pages and cart value.
- Create the window table in J4:K6 with one row per audience and its membership window in days.
- In F4 enter
=DAYS($C$2,C4)and copy it down to F17. - In G4 enter
=XLOOKUP(B4,$J$4:$J$6,$K$4:$K$6)and copy it down. - In H4 enter
=IF(F4<=G4,"In pool","Expired")and copy it down. - In L4 enter
=COUNTIFS($B$4:$B$17,J4,$C$4:$C$17,">="&$C$2-K4)and copy it down to L6. - Change a window in K4:K6 or the date in C2 and watch statuses and pool sizes update. Try a 21-day cart window: V-205 and V-211 return to the pool.
In the interactive lab above, the Coach checks one cell per column the moment you enter it and tells you what went wrong if a typical mistake is behind the result. Typing the number instead of the formula does not pass: the grader recalculates your formula with changed input data.
What the rest of the course covers
Audience pools and windows are the first of twenty labs. The course follows the order in which a retargeting programme is built and then questioned:
- Lessons 2 to 4: the window length where added users stop paying, recency bands with conversion rate, CPA and index, and bid adjustments per band with limits.
- Lessons 5 to 7: frequency distributions and caps, the cost of the last ad in a frequency response curve, and exclusion lists for recent buyers and missing consent.
- Lessons 8 and 9: view-through against click-through conversions, three versions of the CPA, conversion lag and attribution windows.
- Lessons 10 to 13: holdout tests, incremental conversions and incremental share, incremental ROAS, a significance test for the lift and the sample size a holdout needs.
- Lessons 14 to 17: combined frequency across platforms, sequential messaging by stage, pool forecasts with the budget a pool can absorb, and a rank-order budget allocation.
- Lessons 18 to 20: a what-if grid of CPM against incremental share, a weekly audit with quality flags and a quarterly scorecard as the final project.
The thread through all of them is one question: what would have happened without the ad? Retargeting addresses people who already wanted something from the shop, so its reports are always flattering. The labs give you the tools to separate the part the ads caused from the part they merely watched. No lesson promises a particular result for your own campaigns; the aim is that you can calculate and question yours.
Frequently asked questions
What is a membership window in retargeting?
It is the number of days a visitor stays on a retargeting list after the visit that qualified them, also called membership duration or lookback window. A 14-day cart audience contains everybody who added to the cart within the last 14 days; after that the visitor drops off unless a new visit restarts the clock.
Is there a difference between retargeting and remarketing?
In everyday use the two words mean the same: showing ads to people who have already visited your site or app. Some platforms prefer one term, and some people reserve remarketing for email or customer lists. The arithmetic in this course applies to both.
How long should a retargeting window be?
It depends on how far the visitor got and how long your customers take to decide. Deeper steps such as a started checkout justify short windows of about a week, product views can stay longer. The values 7, 14 and 30 days in this lesson are illustrative. The reliable method is to extend a window only while the added visitors still convert well enough to pay for their ads.
How do I calculate the days since the last visit in Excel?
Subtract the last visit date from the analysis date, or use =DAYS(analysis date, last visit). Keep the analysis date in one cell and lock it with dollar signs, for example =DAYS($C$2,C4), so the formula can be copied down.
How do I count the size of an audience pool with COUNTIFS?
Use two conditions: the step equals the audience and the last visit is on or after the analysis date minus the window. With the audience in J4 and its window in K4: =COUNTIFS($B$4:$B$17,J4,$C$4:$C$17,">="&$C$2-K4).
Why does pool size matter?
The pool is the ceiling of the campaign: it limits how many people you can reach and, together with a sensible frequency, how much budget the audience can absorb. Ad platforms also require a minimum list size before a list serves, so a very short window on a small site may not run at all.
Keep going: Retargeting & Remarketing Audiences: Membership Windows, Recency Bids, Frequency Caps, Exclusions, View-Through & Incremental Share
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.
- Choosing the Window Length: Pool Size, Average vs Marginal Conversion Rate and the Break-Even Point
- Recency Bands: Conversion Rate, CPA and Rate Index by Days Since the Last Visit
- Recency Bids: Maximum CPC per Band, Bid Adjustments and Limits with MIN and MAX
- Frequency Distribution and Caps: Average Frequency, Impressions a Cap Removes and Spend Saved
- Finding the Right Cap: Frequency Response, Diminishing Returns and the Cost of the Last Ad
- Exclusions: Recent Buyers, Consent and the Spend Wasted Without an Exclusion List
- View-Through vs Click-Through: View-Through Share and Three Ways to Calculate the CPA
- Attribution Windows: Conversion Lag, Click and View Windows and How Settings Change the CPA
- Holdout Tests: Lift, Incremental Conversions, Incremental Share and Cost per Incremental Conversion
- Incremental Share in Practice: From Reported ROAS to Incremental ROAS and a Keep-or-Rework Decision
- Is the Lift Real? Pooled Rate, Standard Error, z Value and p Value for a Holdout Test
- Planning a Holdout: Sample Size per Group, Weeks to Fill It and the Margin It Costs
- Audience Overlap Across Platforms: Combined Frequency, Shared Users and Excess Ads
- Sequential Retargeting: Stages by Days Since the Cart, Stage Sizes and the Cost of the Offer Stage
- Forecasting the Pool: Pool Rate, Trend with SLOPE and FORECAST.LINEAR, and the Budget a Pool Can Absorb
- Allocating a Retargeting Budget: Pool Capacity, Cost per Incremental Conversion and a Rank-Order Fill
- What-If Grid: Cost per Incremental Conversion for Every CPM and Incremental Share, with a Heat Map
- Quality Checks: A Weekly Retargeting Audit with Flags for Windows, Caps, Exclusions, Frequency and View-Through Share
- Final Project: A Quarterly Retargeting Scorecard with Spend, Incremental Conversions, Incremental Share and Cost per Incremental Conversion