Results 1 to 4 of 4

Help with a macro producing incorrect results if data in rngC - please

Threaded View

  1. #1
    Registered User
    Join Date
    11-07-2016
    Location
    UK
    MS-Off Ver
    2010
    Posts
    11

    Help with a macro producing incorrect results if data in rngC - please

    Hi

    In this macro I have
    rngA (Column A excluding Title)
    rngC (Column C excluding Title)
    rngOtherColumns (All columns to the right of C)

    What should happen when run
    Delete all values in rngC that = "Used", keep all other values
    Loop through rngA
    Where an exact match is found in rngOtherColumns on the same write "Used" rngC on the same row as the value searched for.

    2 error scenarios
    If rngC contains no values, the macro correctly writes "Used" to the correct cell - BUT, it deletes "used" Title
    If rngC contains values anywhere in the column it writes "Used" to the cell below where it should be written - it does not delete the "used" title

    Clearly some offset is occurring if data exists in Column C, I assume the same offset is protecting the title.

    Any help would be appreciated. ColinK
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VLookup producing incorrect table
    By Marvo in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 02-16-2021, 12:02 PM
  2. [SOLVED] sum formula not working, producing incorrect answers Excel 2003
    By crzyg8r in forum Excel General
    Replies: 6
    Last Post: 09-28-2016, 12:14 PM
  3. Incorrect excel data table results
    By pisco in forum Excel General
    Replies: 0
    Last Post: 08-21-2015, 04:38 AM
  4. [SOLVED] Create Table Style Macro Not Producing Expected Results
    By mcclanat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2015, 10:47 AM
  5. [SOLVED] Sort macro conflicting with formula to produce incorrect results
    By turtlesrun in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-12-2015, 08:56 AM
  6. [SOLVED] Forumula Results Incorrect when data missing. Wanting to hide the incorrect formula.
    By firemedic6265 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-05-2014, 05:01 PM
  7. [SOLVED] Conditional format formula producing incorrect results?
    By Dougie12. in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-20-2014, 03:02 PM

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