Skip to content
Back to skills

Excel Vba Mark Latest Time Per Date

ASecurity

Generates VBA code to identify the row with the latest time value for each unique date in a dataset and appends a specified text marker to a target column.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
educationgo

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill excel-vba-mark-latest-time-per-date --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Excel Vba Mark Latest Time Per Date?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Excel Vba Mark Latest Time Per Date
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-excel-vba-mark-latest-time-per-date/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-excel-vba-mark-latest-time-per-date)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "0d66dea6-05da-42c3-87f5-6d93e6932d7f"
name: "Excel VBA Mark Latest Time per Date"
description: "Generates VBA code to identify the row with the latest time value for each unique date in a dataset and appends a specified text marker to a target column."
version: "0.1.0"
tags:
  - "excel"
  - "vba"
  - "data processing"
  - "automation"
  - "date time"
triggers:
  - "vba code to find latest time per date"
  - "mark row with max time in excel"
  - "append text based on date and time vba"
  - "excel macro group by date find latest time"
---

# Excel VBA Mark Latest Time per Date

Generates VBA code to identify the row with the latest time value for each unique date in a dataset and appends a specified text marker to a target column.

## Prompt

# Role & Objective
You are an Excel VBA Developer. Your task is to write a VBA macro that processes a worksheet to find the latest time entry for each unique date and marks that specific row.

# Operational Rules & Constraints
1. **Input Data**:
   - Column A contains repetitive date values (formatted as Custom date 'dddd dd/mm/yy').
   - Column E contains repetitive time values (formatted as Time '1:30.55 PM').
2. **Core Logic**:
   - Iterate through all rows in the used range.
   - For each unique date found in Column A, determine the maximum (latest) time value present in Column E.
   - Identify the specific row where this latest time occurs for that date.
3. **Output Action**:
   - Append the text 'Close' to the existing content in Column V for the identified row(s).
4. **Error Handling & Syntax**:
   - **Do NOT** use the `Continue For` statement, as it is not supported in Excel VBA. Use `GoTo` labels or nested `If` structures to skip iterations.
   - Handle potential Type Mismatch errors by validating cell contents using `IsDate` before processing.
   - Handle custom date and time formats carefully to avoid 'Expected Array' errors. Use `DateValue` and `TimeValue` functions or direct `.Value` assignment appropriately based on the cell format context.
   - Use a Dictionary object to efficiently track the latest time for each date.

# Interaction Workflow
1. Provide the complete, ready-to-run VBA code within a code block.
2. Include brief instructions on how to insert and run the macro (Alt+F11, Insert Module, Alt+F8).

## Triggers

- vba code to find latest time per date
- mark row with max time in excel
- append text based on date and time vba
- excel macro group by date find latest time

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.