Forum Discussion

CA_PUNIT_AGARWAL's avatar
CA_PUNIT_AGARWAL
Copper Contributor
Dec 01, 2019

Unable to derive value for DMIN Function

Hey there,

 

I have the following dataset

CityTimes (h)
Seattle5
Tacoma8
Oakland9
Seattle4
Tacoma10
Oakland6

 

and require min for following

CityTimes (h)
Oakland 
Seattle 
Tacoma 

 

But when i use DMIN function the result shown for oakland is 4 instead of 6. 

I am using office 365.

6 Replies

  • ChrisMendoza's avatar
    ChrisMendoza
    Iron Contributor

    CA_PUNIT_AGARWAL 

    According to https://support.office.com/en-us/article/dmin-function-4ae6f1d9-1f26-40f1-a783-6dc3680192a3, 4 is the correct answer as it Returns the smallest number in a field (column) of records in a list or database that matches conditions that you specify. In the example found at the bottom, it is shown to be an OR conditional. Meaning return me the smallest number in Times(h) where the record is Oakland OR Seattle OR Tacoma.

     

    I think you would be better off MINIFS:

    =MINIFS($C$3:$C$8,$B$3:$B$8,E3)

    • CA_PUNIT_AGARWAL's avatar
      CA_PUNIT_AGARWAL
      Copper Contributor

      ChrisMendoza 

       

      Yes Sir,

       

      I was working with DMIN function.

      I found out that DMIN function doesn't handle two results simultaneously.

      I have selected 3 results simultaneously so, the result was the min of all cell.

       

      Thanks for the MINIFS function.

  • hansleroy's avatar
    hansleroy
    Iron Contributor
    Hi, I'd starting looking for trailing spaces... I guess there is a space after Oakland in the row with the 4... Kind regards Hans

Resources