+ Reply to Thread
Results 1 to 3 of 3

Criteria Matched Convert Signs for Values

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Hyderbad
    MS-Off Ver
    Excel 2003
    Posts
    122

    Criteria Matched Convert Signs for Values

    Please Login or Register  to view this content.
    'Range("d" & x & ":h" & x).Value range to convert values
    'default positive values i need to convert into negative values if equal to xyz
    'on running the code the values should change to positive values vice versa
    Signs should be changed vice versa

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Criteria Matched Convert Signs for Values

    Not quite sure what you're looking for but to reverse the sign of any number multiply by -1. So perhaps

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Hyderbad
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: Criteria Matched Convert Signs for Values

    testimg.PNG

    Yes....if criteria is matched to xyz then
    range of values should be converted into negative values

    xyz 25 65 89

    result :
    xyz -25 -65 -89

+ 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] how to sum values based on matched values as criteria
    By MyStix01 in forum Excel General
    Replies: 6
    Last Post: 01-18-2019, 10:52 AM
  2. [SOLVED] Extract subarray from table column based on criteria matched - text values
    By jaryszek in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-31-2018, 03:35 AM
  3. [SOLVED] sum values within a cell, data has plus signs
    By unreal_event_horizon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-15-2016, 07:41 AM
  4. Not summing values with pound signs
    By tonypbx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-31-2015, 08:47 AM
  5. How to convert with + and - signs?
    By indra in forum Excel General
    Replies: 2
    Last Post: 09-10-2010, 07:06 AM
  6. Code which deletes all signs behind a number of signs
    By Mula in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2009, 05:53 AM
  7. Convert values acc to criteria in another closed wbk, output to new wkb
    By rinser in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-13-2009, 03:24 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