+ Reply to Thread
Results 1 to 6 of 6

using IF function for negative numbers

  1. #1
    Registered User
    Join Date
    02-01-2019
    Location
    Nice
    MS-Off Ver
    2018
    Posts
    3

    using IF function for negative numbers

    Hey guys,
    My relatively simple problem is the following; I have 3 columns of data, and in each row I would like to identify the MIN number but only if all 3 values are negative.

    So for example, -2, -3, 5 would not give me anything, but -2, -3, -4 would give me -4.

    Thank you in advance!

    - Johan

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: using IF function for negative numbers

    Try:

    =MIN(IF( A2:C2<0, A2:C2)) array entered Ctrl+Shift+Enter pressed at the same time instead of regular Enter
    Click the * to say thanks.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: using IF function for negative numbers

    try

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

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: using IF function for negative numbers

    =iferror(aggregate(15,6,b1:d1/(countif(b1:d1,"<0")=columns(b1:d1)),1),"")

  5. #5
    Registered User
    Join Date
    02-01-2019
    Location
    Nice
    MS-Off Ver
    2018
    Posts
    3

    Re: using IF function for negative numbers

    Thanks for the help!!

  6. #6
    Registered User
    Join Date
    02-01-2019
    Location
    Nice
    MS-Off Ver
    2018
    Posts
    3

    Re: using IF function for negative numbers

    Appreciate it! It works well.

+ 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] MROUND function with negative numbers
    By DPKologie in forum Excel General
    Replies: 9
    Last Post: 03-03-2019, 03:44 PM
  2. Convert negative numbers to positive numbers using Excel "Find and Replace" Function
    By FoodieJoan In LA in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-05-2015, 09:40 PM
  3. If function negative numbers
    By Roman222 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-14-2014, 02:32 PM
  4. [SOLVED] Function for set of numbers being all positive or negative
    By Brennen81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2014, 08:56 AM
  5. how to use IF function with negative numbers
    By loopiloo in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-13-2013, 05:50 AM
  6. [SOLVED] I get some negative numbers when I use the RAND() function--Why?
    By CaliDave in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2006, 08:25 PM
  7. [SOLVED] how do i use excel's natural log function with negative numbers?
    By Craig in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-18-2006, 03:45 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