+ Reply to Thread
Results 1 to 10 of 10

formula greater or less

  1. #1
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    481

    formula greater or less

    Hi to all
    Now in formula in H10

    = IF(H10 = "", "", H9-H10)

    is it possible to change like this:

    if H10 < than H9 do H9-H10
    IF H10 > than H9 do H10-H9

    thanks you
    xam

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,816

    Re: formula greater or less

    = IF(H10 = "", "", IF( H10 < H9, H9-H10, IF(H10 > H9, H10-H9, " H10 is equal to H9")) )

    I maybe mis-reading but you cant have a formula in H10 that refers to itself, circular reference
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: formula greater or less

    =if (H10 < than H9, H9-H10, H10-H9)

    What if H9 = H10 ? 0

    =if (H10 < =than H9, H9-H10, H10-H9)

    or easier still

    =ABS(H10-H9)
    Last edited by mehmetcik; 11-12-2021 at 02:41 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: formula greater or less

    = if(h10 = "", "", abs(h9-h10))

  5. #5
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    481

    Re: formula greater or less

    Thank you
    you can insert the sign
    + / -
    to the left of the value colum G
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    481

    Re: formula greater or less

    IF H10 < than H9 do H9-H10 = sign - in value column G
    IF H10 > than H9 do H10-H9 = sign + in value column G

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: formula greater or less

    I10
    =IF(H10,IF(H10>H9,"+","-"),"")

    or K10
    =G10-G9

    Custom format +;-
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    481

    Re: formula greater or less

    the result in column G must be as a column J
    Attached Files Attached Files

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: formula greater or less

    Last try G10

    = IF(H10,H10-H9,"")

    Custom format
    [Blue] + 0.0000;[Red] - 0.0000
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    08-27-2019
    Location
    europa
    MS-Off Ver
    excel 2007
    Posts
    481

    Re: formula greater or less

    Thank you, bo_ry
    A greeting
    xam

+ 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: 07-26-2020, 06:37 AM
  2. [SOLVED] Macro for If Formula is Greater than Formula AND other conditionals
    By Elieson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2015, 02:19 AM
  3. [SOLVED] find value which is greater than in a range of cells and return the greater value
    By green369 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2015, 02:46 AM
  4. [SOLVED] count values greater 2 or greater in a column.
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 09-16-2014, 07:05 PM
  5. Replies: 4
    Last Post: 08-25-2009, 06:39 AM
  6. Replies: 6
    Last Post: 07-01-2005, 07:05 PM
  7. Less than, Greater than Formula
    By Debbie in forum Excel General
    Replies: 1
    Last Post: 04-13-2005, 03: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