+ Reply to Thread
Results 1 to 6 of 6

Find Negative Values

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    toronto
    MS-Off Ver
    2010
    Posts
    42

    Find Negative Values

    Hi

    I have a set of data, in column D i have values both negative and positive, I am looking for a Macro that can change all the negative values in Col D to 1. So for example -20 would become 1.

    Also i would like the macro to also highlight the whole row based on duplicate data in Col B

    Please see screenshot for sample data
    Untitled picture.png

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Find Negative Values

    Are the values in column D calculated or just values? if calculated max(calculation, 1) would do the first part

    2nd question, do you want both rows highlighted or just the 2nd row when it is a duplicate? eg 2 and 3 or just 3?

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Find Negative Values

    Try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-23-2019
    Location
    toronto
    MS-Off Ver
    2010
    Posts
    42

    Re: Find Negative Values

    They are just Values.

    2nd Question: I would like both rows to be highlighted

    Thank you

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Find Negative Values

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-23-2019
    Location
    toronto
    MS-Off Ver
    2010
    Posts
    42

    Re: Find Negative Values

    Thank you this worked perfectly

+ 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] Find Top5 Positive and Negative values fromtwo columns
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2016, 01:37 AM
  2. Find all the negative values in a spreadsheet
    By RandWald in forum Excel General
    Replies: 1
    Last Post: 11-25-2014, 02:23 AM
  3. Replies: 13
    Last Post: 10-08-2014, 08:35 AM
  4. Find Largest consecutive occurrence of negative values
    By Rubber in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-28-2013, 11:36 AM
  5. Replies: 4
    Last Post: 06-14-2012, 06:53 AM
  6. Find corresponding negative values
    By Dezzi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2011, 01:36 AM
  7. Find where values change from positive to negative
    By jevans30253 in forum Excel General
    Replies: 2
    Last Post: 09-28-2010, 10:06 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