+ Reply to Thread
Results 1 to 17 of 17

Converting numbers to negative...

  1. #1
    Registered User
    Join Date
    03-06-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    9

    Converting numbers to negative...

    Hello everyone!!
    Can anyone help me here?? Am tryin to make column U convert its value to negative if column S states "S" or if its in red.

    Ive tried to add at the end of exsisting formula =IF(S3:S10001="S",*-1 but it didnt seem to work.
    4lvis_bondarenko_0-1614981488644.png

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Converting numbers to negative...

    Which number are you trying to convert to negative when column S = "S"?

    The picture you've attached is tiny so it's not easy to work out what you're trying to do.

    A sample workbook, rather than a pic, would be much more helpful.

    BSB

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Converting numbers to negative...

    Just from your description I would say at the end of the existing formula you should add

    =[existing formula]*IF(S3="S",-1,1)

    and copy down
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    03-06-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    9

    Re: Converting numbers to negative...

    Any number in column U has to be converted to negative if colums S="S"

  5. #5
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Converting numbers to negative...

    What is in Column U... formulas or numerical constants?

    Did you want the negative values to appear in the same column (Column U) or in a different column (if so, which one)?

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Converting numbers to negative...

    Quote Originally Posted by Clyman View Post
    Any number in column U has to be converted to negative if colums S="S"
    My formula is intended to work on that row. Take that formula and copy it down the
    entire column. I don't know why your initial attempt includes the entire range of column S instead of just that row.

  7. #7
    Registered User
    Join Date
    03-06-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    9

    Re: Converting numbers to negative...

    Its formulas in column U, and yes I want a negative values appear in column U if column S states "S".

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Converting numbers to negative...

    Follow what Jeff said in post #3.

    Add *IF(S3="S",-1,1) to the end of the formula you already have in U3 and copy it down to the other cells in that column.

    BSB

  9. #9
    Registered User
    Join Date
    03-06-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    9

    Re: Converting numbers to negative...

    Doesnt do anything Attachment 722153

  10. #10
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Converting numbers to negative...

    To attach a file, you must follow the directions in the yellow banner at the top of this window.

  11. #11
    Registered User
    Join Date
    03-06-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    9

    Re: Converting numbers to negative...

    Here is the sample.
    Attached Files Attached Files

  12. #12
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Converting numbers to negative...

    You cannot reference multi row ranges in formulas like you have. Well not in an IF and not like you have here anyway..

    Try this in U3 and copy down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB
    Last edited by BadlySpelledBuoy; 03-07-2021 at 05:23 AM. Reason: Slight correction to formula

  13. #13
    Registered User
    Join Date
    03-06-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    9

    Re: Converting numbers to negative...

    Quote Originally Posted by BadlySpelledBuoy View Post
    You cannot reference multi row ranges in formulas like you have. Well not in an IF and not like you have here anyway..

    Try this in U3 and copy down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB
    Thanks mate..working fine now. Only thing is the blank cells fills with "FALSE". Is there any way to keep them blank??

  14. #14
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Converting numbers to negative...

    This in U3 will leave the cell blank if neither T1, T1&T2 nor S are selected in S3.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Worth noting that you'll also need to tidy up some of your other formulas.
    You need this in L3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This in N3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And this in P3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then all copied down as appropriate.

    BSB

  15. #15
    Registered User
    Join Date
    03-06-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    9

    Re: Converting numbers to negative...

    Thanks mate, really apricate your effort.

  16. #16
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Converting numbers to negative...

    No problem at all mate. Happy to help

    Could have had the solution this time yesterday had you posted a sample workbook in the first place

    BSB

  17. #17
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Converting numbers to negative...

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon addreputationiconsmall.jpg below their name.

+ 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. Replies: 9
    Last Post: 04-20-2016, 02:42 AM
  2. Converting Negative Numbers Into Dates
    By artoni in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2009, 09:17 PM
  3. Converting Negative Numbers to 0's
    By DangerMouse in forum Excel General
    Replies: 3
    Last Post: 01-12-2007, 06:19 AM
  4. Converting positive numbers to negative numbers
    By Treg67 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2006, 11:00 AM
  5. converting text to negative numbers!
    By via135 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-05-2006, 02:29 AM
  6. Replies: 0
    Last Post: 08-23-2005, 03:59 AM
  7. Converting negative numbers
    By crparedes in forum Excel General
    Replies: 2
    Last Post: 01-10-2005, 04:46 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