Przejdź do głównej zawartości

Jak znaleźć minimalną wartość w zakresie z wyłączeniem wartości zerowej w programie Excel?

Zwykle przyjmuje się, że wartość zero jest wartością minimalną wśród liczb dodatnich. Ale w niektórych przypadkach musisz znaleźć minimalną wartość w zakresie z wyłączeniem wartości zerowej. W tym artykule pokażemy metodę znajdowania wartości minimalnej z wyłączeniem zera w programie Excel.

Znajdź minimalną wartość bez zera za pomocą formuły


strzałka niebieski prawy bąbelek Znajdź minimalną wartość bez zera za pomocą formuły

Przypuśćmy, że wartości liczbowe znajdują się w zakresie A1: E7, jak pokazano poniżej. Zastosuj następującą formułę, aby uzyskać minimalną wartość w tym zakresie z wyłączeniem zera w programie Excel.

1. Wybierz pustą komórkę (H1) do umieszczenia wartości minimalnej, wprowadź formułę =SMALL(A1:E7,COUNTIF($A$1:$E$7,0)+1) do paska formuły, a następnie naciśnij Wchodzę klawisz.

Następnie minimalna wartość określonego zakresu z wyłączeniem zera jest wypełniana w wybranej komórce, jak pokazano na powyższym zrzucie ekranu.

Note: Możesz również użyć formuły tablicowej =MIN(IF($A$1:$E$7 <>0,$A$1:$E$7)) + Ctrl + Shift + Wchodzę klucze, aby uzyskać minimalną wartość zakresu z wyłączeniem zera w programie Excel.

Najlepsze narzędzia biurowe

🤖 Pomocnik AI Kutools: Zrewolucjonizuj analizę danych w oparciu o: Inteligentne wykonanie   |  Wygeneruj kod  |  Twórz niestandardowe formuły  |  Analizuj dane i generuj wykresy  |  Wywołaj funkcje Kutools...
Popularne funkcje: Znajdź, wyróżnij lub zidentyfikuj duplikaty   |  Usuń puste wiersze   |  Łącz kolumny lub komórki bez utraty danych   |   Okrągły bez wzoru ...
Super wyszukiwanie: Wiele kryteriów VLookup    Wiele wartości VLookup  |   Przeglądanie pionowe na wielu arkuszach   |   Wyszukiwanie rozmyte ....
Zaawansowana lista rozwijana: Szybko twórz listę rozwijaną   |  Zależna lista rozwijana   |  Lista rozwijana wielokrotnego wyboru ....
Menedżer kolumn: Dodaj określoną liczbę kolumn  |  Przesuń kolumny  |  Przełącz stan widoczności ukrytych kolumn  |  Porównaj zakresy i kolumny ...
Polecane funkcje: Fokus siatki   |  Widok projektu   |   Duży pasek formuły    Menedżer skoroszytów i arkuszy   |  Biblioteka zasobów (Automatyczny tekst)   |  Selektor dat   |  Połącz arkusze   |  Szyfruj/odszyfruj komórki    Wysyłaj e-maile według listy   |  Super filtr   |   Specjalny filtr (filtruj pogrubienie/kursywa/przekreślenie...) ...
15 najlepszych zestawów narzędzi12 Tekst Tools (Dodaj tekst, Usuń znaki, ...)   |   50 + Wykres rodzaje (Wykres Gantta, ...)   |   40+ Praktyczne Wzory (Oblicz wiek na podstawie urodzin, ...)   |   19 Wprowadzenie Tools (Wstaw kod QR, Wstaw obraz ze ścieżki, ...)   |   12 Konwersja Tools (Liczby na słowa, Przeliczanie walut, ...)   |   7 Połącz i podziel Tools (Zaawansowane wiersze łączenia, Podział komórki, ...)   |   ... i więcej

Zwiększ swoje umiejętności Excela dzięki Kutools for Excel i doświadcz wydajności jak nigdy dotąd. Kutools dla programu Excel oferuje ponad 300 zaawansowanych funkcji zwiększających produktywność i oszczędzających czas.  Kliknij tutaj, aby uzyskać funkcję, której najbardziej potrzebujesz...

Opis


Karta Office wprowadza interfejs z zakładkami do pakietu Office i znacznie ułatwia pracę

  • Włącz edycję i czytanie na kartach w programach Word, Excel, PowerPoint, Publisher, Access, Visio i Project.
  • Otwieraj i twórz wiele dokumentów w nowych kartach tego samego okna, a nie w nowych oknach.
  • Zwiększa produktywność o 50% i redukuje setki kliknięć myszką każdego dnia!
Comments (29)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Saya mencari nilai alpa predikat dan tentunya nilai 0 sangat dibutuhkan, kenapa fungsi min tidak mendeteksi nilai 0 di excel saya?
This comment was minimized by the moderator on the site
Hi Denysptwn,
The formula in this post helps to find the smallest value excluding zero.
If you want to include zero in the result, just use this formula: =MIN($A$1:$C$7)
This comment was minimized by the moderator on the site
Hi Dear Srystal
Many thanks for you kindness and the time you spend for my problem and for solving it,
I didn't knew this way and this is very useful for future working.
As i have more than 700 rows in my sheet and needed to sort my data too and because of some merged cells it was very hard to do it, therefore i askd fir help to have some VBA code and some kind friends kindly sent me a code and soled my problem.
I am Sorry, I forgot to let you know that the problem has been resolved.
Thank you again and hope to be able to repay the love of all of you friends.
Good luck dear
Sincerely yours, Javid
This comment was minimized by the moderator on the site
Hi Javid,
You may receive an error message when you sort a range that contains merged cells in Excel. There is no directly way to handle this issue. You need to manually unmerge the merged cells first to sort all cells. You can following the methods in the following article. Hope I can help. Thank you for your comment.
How To Sort Data With Merged Cells In Excel?
This comment was minimized by the moderator on the site
Hi dear Crystal,
Good to see your comment again :)
Many Thanks for your useful information and suggestion.
After facing many problems, I decided to change my strategy and the first step was to remove the merged cells and replace them with new cells and new numbers.
I'm making some changes, including the one I mentioned.
I hope I will face less problems from now on.
Thanks again with love,
Have a nice times.
Rated 5 out of 5
This comment was minimized by the moderator on the site
Hi
Can anyone help me to use formula to find small value except zero and highlight it with conditional format?
This comment was minimized by the moderator on the site
Hi,
Please follow the steps below to get it done.
1. Click Home > Conditional Formatting > New Rule.
2. In the Edit Formatting Rule dialog box, select Format only cells that contain in the Select a Rule Type list box; Select equal to in the second drop-down list, and then enter the formula below (don't forget to change the cell references):
=SMALL($F$5:$O$21, COUNTIF($F$5:$O$21, "<=0")+1)
3. Click the Format button to specify a fill color to highlight the cells.
4. Click OK.
See the uploaded screenshot below.
This comment was minimized by the moderator on the site
Hi, how to search for the minimum of values present in multiple matrices, always excluding 0 if the matrices are on different sheets?
This comment was minimized by the moderator on the site
Hi Zingo,Sorry I can't help to solve this problem. Here suggest you post the problem to the forum below to get help from other Excel enthusiasts. https://www.extendoffice.com/forum/kutools-for-excel.html 
This comment was minimized by the moderator on the site
I have a formula that looks the the lest number in a seperate workbook, but if the data is not fully entered or collected yet, the return value is 0, rather than the smallest number. is there a way to solve this via the formula or a feature in exceel?
=MIN(IF('Input Data 54 mm'!$D:$D='Index Values 54 mm'!$A7,('Input Data 54 mm'!J:J)*95%))
This comment was minimized by the moderator on the site
Hi,
Sorry I can't solve this problem. You can post the problem to the forum below to get help from other Excel enthusiasts.
https://www.extendoffice.com/forum/kutools-for-excel.html 
This comment was minimized by the moderator on the site
How do I find the small/lowest number that is not 0 based on certain conditions, e.g.: find the minimum number in a row, based on the columns with "covid"?
I typed this =MIN(IF($C$8:$AF$8=$AK$3,C10:AF10<>0,C10:AF10)) but it doesn't evaluate this $C$8:$AF$8=$AK$3, it only returns C10:AF10<>0,C10:AF10. where AK3 = covid.
This comment was minimized by the moderator on the site
what to do if you have zeros in a row. for example comparative statement with not quoted items?
This comment was minimized by the moderator on the site
update on the formula from Crystal: the formula works but the it counts the blank cells as the lowest in the range. how do we fix the formula not to count for zero value or empty cells?
This comment was minimized by the moderator on the site
Crystal, you are amazing! thank you thank you so much for the help :-) made my life/work easier
This comment was minimized by the moderator on the site
This was very useful. how do we revise the formula that instead of giving me the lowest value, it would identify under which heading is the lowest value on. Scenario is i have 3 suppliers, providing 3 different prices. i would like the formula to tell me which supplier has the lowest price (i.e. supplier 1, supplier 2, etc) and gives me that supplier's name so i could sort it later. Thank you
This comment was minimized by the moderator on the site
Hi francis,
Please apply this formula: =INDEX($A$1:$C$1,0,MATCH(MIN($A2:$C2),$A2:$C2,0)) as the below screenshot shown.
This comment was minimized by the moderator on the site
Hi Crystal, how to excludie zero value in this formula
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations