+ Reply to Thread
Results 1 to 3 of 3

values

Hybrid View

  1. #1
    Registered User
    Join Date
    06-29-2022
    Location
    Canada
    MS-Off Ver
    2021
    Posts
    38

    values

    Hi,


    I have values in Column B
    Last edited by aslam5420; 07-10-2022 at 09:58 AM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,357

    Re: Want to change signs of values in a formula with respect to condition in the adjacent

    Why is the value in F9 positive? Based on your description and the other examples, I would have expected F9 to be -2.

    Assuming F9 is in error, it looks to me that something like =SIGN(E4)*(B4-B3) should work for this. If you are unfamiliar with the SIGN() function, it returns -1 when the value is less than 0, 0 when the value is 0, and +1 when the value is above 0 (https://support.microsoft.com/en-us/...1-2dd0e916a1d8 ).

    If F9 is not in error, then I do not understand the desired logic.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    06-29-2022
    Location
    Canada
    MS-Off Ver
    2021
    Posts
    38

    Re: Want to change signs of values in a formula with respect to condition in the adjacent

    Hi Sir MrShorty,

    Thank you so much for this formula. It worked perfectly. Sorry F9 was a mistake from my side.

    I am really very thankful to you sir

+ 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: 2
    Last Post: 02-19-2022, 09:30 AM
  2. Replies: 5
    Last Post: 02-03-2022, 02:44 AM
  3. [SOLVED] If Formula (IF this condition is met, then adjacent cell equals above cell)
    By BryanHCR in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2019, 10:31 PM
  4. Macro - Get adjacent cell values based on a condition & save as a different workbook
    By ManInRed in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-14-2013, 10:25 AM
  5. Data List to change in respect to cell value
    By faisal.ta in forum Excel General
    Replies: 1
    Last Post: 04-08-2013, 06:54 AM
  6. Replies: 2
    Last Post: 06-07-2011, 07:00 AM
  7. Average / SD values based on condition in adjacent cell
    By gypsyeyes in forum Excel General
    Replies: 3
    Last Post: 07-30-2009, 09:23 PM

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