Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
How can I return a minimum value in excel work sheet if the cells containing the values I am comparing , the values were created by a function

Am trying to return the minimum value of cells excluding zero but when ever I do it using this function, it returns a zero not the minimum Function:{=MIN(IF(DW2:EE2 = 0,"",DW2:EE2))}

The values in the cells are created by a function which is:

=IF(BJ2="",0,IF(BJ2="D1","1",IF(BJ2="D2","2",IF(BJ2="C3","3",IF(BJ2="C4","4",IF(BJ2="C5","5",IF(BJ2="C6","6",IF(BJ2="P7","7",IF(BJ2="P8","8",IF(BJ2>="F9","9"))))))))))

enter image description here

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This answer is wrong, but it might give you an idea.

=IF(MIN(A1:A5)=0,SMALL(A1:A5,2),MIN(A1:A5))

This means the following (I'm always working from a list of values in the cells "A1" till "A5"):

  1. Verify the minimum of the list.
    2.1. If the minimum equals zero, then take the second smallest value.
    2.2. If the minimum does not equal zero, then take that minimum.

However, there is one problem with the implementation of that approach: I expected =Small(range,2) to give the second smallest number of a list, which it does, but it does not, let me show you:

Range : 0, 1, 2, 3, 4, 5 => Small(Range,2) = 1 => OK
Range : 0, 1, 2, 3, 4, 0 => Small(Range,2) = 0 => NOK

Apparently, Small(,2) just orders the range, and takes the second element, regardless of the fact that it might be equal to Small(,1).

Does anybody know a solution or workaround for this issue?

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!