Please see attached excel where I am trying to calculate the Minimum number in Column A, where the rows match multiple conditions.
I am getting a zero as a result whereas the expected result should be from Cell A15
Appreciate any Help.
Please see attached excel where I am trying to calculate the Minimum number in Column A, where the rows match multiple conditions.
I am getting a zero as a result whereas the expected result should be from Cell A15
Appreciate any Help.
Last edited by ibuhary; 04-19-2018 at 02:13 AM. Reason: SOLVED
Give this try
Formula:
=MIN(IF(($B$2:$B$25=B16)*($C$2:$C$25="Arrive")*(A2:A25>0),$A$2:$A$25))
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
I dont have any Zero data in Column A, in that case I hope I can avoid *(A2:A25>0) this part from the function.
Please correct me if I am wrong.
AND could you please tell me why it was not working with the AND condition, as I was under the impression "AND" & * refer to the same logic in Excel.
Last edited by ibuhary; 04-19-2018 at 02:01 AM.
Absolutely correct you can, I just added to avoid if there is any cell having 0 value.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks