+ Reply to Thread
Results 1 to 1 of 1

Highlight and Message Box When Same Value Used in Two Accounts

  1. #1
    Registered User
    Join Date
    08-25-2019
    Location
    New York
    MS-Off Ver
    Office 13
    Posts
    9

    Highlight and Message Box When Same Value Used in Two Accounts

    Hi,

    I have a spreadsheet for printing a single page report that mostly relies on Index/Match, sumifs, and a few simple macros to run through a variable list of values and print every unique value in a list.

    The unique value is the item number, which is populated in a cell, other cells use Index/Match and sumifs based on the item number to pull the relevant data from a data dump on another worksheet, then print report sheet. Repeat for each value.

    I can have repeat item numbers in the same account (hence the sumif) which is correct, but I am running into issues when the same item number is used in two separate accounts.

    For the most part, item numbers won't overlap between accounts, but there are times where the same item number will appear in two different accounts at the same time. Because the sheets are all being driven my Index/Match, it is pulling the first data point (and correctly printing it) and then bypassing the rest.

    How can I write a macro that will identify the duplicate item numbers when they are being used in a 2nd account, highlight the rows, and then put a message box with their location?

    There shouldn't be too many overlaps when a report is run so I am more concerned about just identifying which line items are being "skipped over".

    I have attached a sample worksheet.
    Last edited by CptTightPants; 10-02-2019 at 10:19 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Show File name in Message Box & highlight File Name in Col A
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2018, 10:42 AM
  2. [SOLVED] Highlight and popup message Between employee dates are overlap
    By Anisusa in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-20-2017, 12:02 AM
  3. [SOLVED] Vlook-up & Highlight Help for Accounts Payable - Debits & Credits
    By sweetlakia in forum Excel General
    Replies: 12
    Last Post: 05-10-2016, 02:49 PM
  4. Replies: 6
    Last Post: 04-16-2015, 01:45 PM
  5. Please help, intricate subtotal for main accounts with many sub accounts!!
    By mitch_bossard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 05:17 PM
  6. VBA with PivotTable Count of Accounts - Want to show Sum of Accounts
    By snake10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2008, 07:27 AM
  7. Adding accounts
    By Jakob42 in forum Excel General
    Replies: 4
    Last Post: 09-25-2007, 06:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1