Gå til hovedindhold

Hvordan begrænser man formelresultatet til maksimum eller minimumsværdi i Excel?

Her er nogle celler, der skal indtastes, og nu vil jeg bruge en formel til at opsummere cellerne, men begrænse resultatet til en maksimumsværdi såsom 100. Med andre ord, hvis summeringen er mindre end 100, skal du vise summeringen, ellers vises 100.

Begræns resultatet af formlen til en maksimum- eller minimumsværdi


Begræns resultatet af formlen til en maksimum- eller minimumsværdi

For at håndtere denne opgave skal du kun anvende funktionen Max eller Min i Excel.

Begræns formelresultat til maksimumværdi (100)

Vælg en celle, som du vil placere formlen på, skriv denne formel = MIN (100, (SUM (A5: A10))), A5: A10 er det celleområde, du vil opsummere, og tryk på Indtast. Nu, hvis summeringen er større end 100, viser den 100, hvis ikke, viser summeringen.

Summation er større end 100, vis 100
doc limi maksimum minimum 1
Summation er mindre end 100, viser summation
doc limi maksimum minimum 2

Begræns formelresultat til minimumsværdi (20)

Vælg en celle, hvor du placerer formlen, skriv denne = MaX (20, (SUM (A5: A10))), A5: A10 er det celleområde, du vil opsummere, og tryk på Indtast. Nu, hvis summeringen er mindre end 20, viser den 20; hvis ikke, skal du vise summeringen.

Summation er mindre end 20, viser 20
doc limi maksimum minimum 3
Summation er større end 20, vis summering
doc limi maksimum minimum 4

Bedste kontorproduktivitetsværktøjer

🤖 Kutools AI Aide: Revolutionér dataanalyse baseret på: Intelligent udførelse   |  Generer kode  |  Opret brugerdefinerede formler  |  Analyser data og generer diagrammer  |  Aktiver Kutools funktioner...
Populære funktioner: Find, fremhæv eller identificer dubletter   |  Slet tomme rækker   |  Kombiner kolonner eller celler uden at miste data   |   Runde uden formel ...
Super opslag: VLookup med flere kriterier    Multiple Value VLookup  |   VOpslag på tværs af flere ark   |   Fuzzy Lookup ....
Avanceret rulleliste: Opret hurtigt rulleliste   |  Afhængig rulleliste   |  Multivælg rulleliste ....
Column Manager: Tilføj et bestemt antal kolonner  |  Flyt kolonner  |  Skift synlighedsstatus for skjulte kolonner  |  Sammenlign områder og kolonner ...
Fremhævede funktioner: Grid fokus   |  Designvisning   |   Stor Formel Bar    Arbejdsbog & Ark Manager   |  Ressourcebibliotek (Autotekst)   |  Datovælger   |  Kombiner regneark   |  Krypter/Dekrypter celler    Send e-mails efter liste   |  Superfilter   |   Specielt filter (filter fed/kursiv/gennemstreget...) ...
Top 15 værktøjssæt12 tekst Værktøjer (tilføje tekst, Fjern tegn, ...)   |   50 + Chart Typer (Gantt kort, ...)   |   40+ Praktisk formler (Beregn alder baseret på fødselsdag, ...)   |   19 Indsættelse Værktøjer (Indsæt QR-kode, Indsæt billede fra sti, ...)   |   12 Konvertering Værktøjer (Tal til ord, Valutaomregning, ...)   |   7 Flet og del Værktøjer (Avancerede kombinere rækker, Opdel celler, ...)   |   ... og mere

Overlad dine Excel-færdigheder med Kutools til Excel, og oplev effektivitet som aldrig før. Kutools til Excel tilbyder over 300 avancerede funktioner for at øge produktiviteten og spare tid.  Klik her for at få den funktion, du har mest brug for...

Beskrivelse


Fanen Office bringer en grænseflade til et kontor med Office, og gør dit arbejde meget lettere

  • Aktiver redigering og læsning af faner i Word, Excel, PowerPoint, Publisher, Access, Visio og Project.
  • Åbn og opret flere dokumenter i nye faner i det samme vindue snarere end i nye vinduer.
  • Øger din produktivitet med 50 % og reducerer hundredvis af museklik for dig hver dag!
Comments (24)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I would like the cell to return the value calculated, but is less than the minimum, it will only show the minimum but if greater than the maximum it will only show the maximum, but if in between the true value would appear. But the range may changed on the level chosen. D4 - insert current salary / D6 choose level / D7 would show minimum of that level and D8 would show the maximum of that level. D9 would be the percentage in increase and E9 would show the new calculcation. D11 titled new salary would display the calculation but if less than the minimum on show the minimum value, if greater the maximum only show the maximum value
This comment was minimized by the moderator on the site
If the summation is more than this sum up the tale invoices below the target amount

Merchant Name Recoveries from Merchant
Baxter Plc ₦1,001,000.00 ₦4,634,642.50
Baxter Plc ₦59,197.50
Baxter Plc ₦641,000.00
Baxter Plc ₦1,751,000.00
Baxter Plc ₦101,000.00
Baxter Plc ₦1,021,000.00
Baxter Plc ₦101,000.00
Baxter Plc ₦746,000.00
This comment was minimized by the moderator on the site
=IF(SUMIFS('FR-4---Recoveries from Merchant'!$K:$K,'FR-4---Recoveries from Merchant'!$E:$E,$A15)>$C15,SUMPRODUCT(SMALL(INDEX(('FR-4---Recoveries from Merchant'!$K$8:$K$27)+('FR-4---Recoveries from Merchant'!$E$8:$E$27<>$A15)*1E+99,,),ROW($1:$7))),(SUMIFS('FR-4---Recoveries from Merchant'!$K:$K,'FR-4---Recoveries from Merchant'!$E:$E,$A15)))

That's final solution I was able to provide
This comment was minimized by the moderator on the site
My question is, if the summation exceeds the maximum, I would like to return value less than the maximum, say for instance, the total is #5,000,000 and I could only pay #4,634,642.50 as the available amount. then I would like to return value like Sum(₦1,001,000.00, ₦59,197.50,₦641,000.00,₦1,751,000.00,₦101,000.00,₦1,021,000.00), which is lower than the available amount. Also, for easy reconciliation, we could refer to the specific invoice numbers.
This comment was minimized by the moderator on the site
Hi! This instruction is awesome. Thank you! I have a further question: if the summation exceeds the maximum, I would like to return the value 0 instead of the maximum. Is there a way to do that?
Thank you!
This comment was minimized by the moderator on the site
Hi, regarding this issue, please refer to this post Go to now
This comment was minimized by the moderator on the site
Thank you!
This comment was minimized by the moderator on the site
Q stresse.....ESSAS FÓRMULAS, não funionam aqui.
This comment was minimized by the moderator on the site
Hi, the formula provided above is work in English Excel version, if you are in Portugues version, try formula:
=MÍNIMO(100;(SOMA(A5:A10)))
This comment was minimized by the moderator on the site
I am trying to limit the amount in a cell to a max of 24. I am calculating the number of hours worked divided by 30 with this formula, for example
=F5/K1

F5 is the specific employees hours worked,
and K1 is a hidden cell with a value of 30
(because for every 30 hours they work, they earn 1 hour of sick time) but the max limit is 24 hours in a year and i don't know how to limit the total to a max of 24 hours earnable.
Any help?
This comment was minimized by the moderator on the site
Hi, V Rogers, try this formula: =MIN(1,SUM(E:E)/K1)
in the formula, E:E is the column that contains employees' work hours, you can change it as you need., the result cell (F5) needed to be formatted as 37:30:55 in the Format Cells dialog. See screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-max-hours-1.png
This comment was minimized by the moderator on the site
Alguém me ajuda
Qual fórmula uso na celula onde meu resultado limite é de 1000 após esse resultado ele voltar a 0 e continuar somando e sempre q atingir 1000 ele voltar a 0
This comment was minimized by the moderator on the site
Hi, try this formula: =IF(SUM(D1:D2)>1000,0,SUM(D1:D2))
D1 and D2 is the first two data that used to add.
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-formula-01.png
This comment was minimized by the moderator on the site
Good day,

does anyone have an idea how this works on multiplication formulas?

A1*A20= 100, but min value shall be 120

Is there a formula that always shows at least 120?
This comment was minimized by the moderator on the site
Hi, use formula like this: =MAX(120,(A1*A20))
This comment was minimized by the moderator on the site
For anyone looking to have a min AND a max, use the following formula:

=MIN(+20,MAX(-20,SUM(A5:A10)))

This will limit the calculated sum to between -20 and +20, or any number of your choosing.
This comment was minimized by the moderator on the site
Fera, como vc conseguiu isso? Aqui não funciona de jeito nenhum, no excel BR.
This comment was minimized by the moderator on the site
Hola, estoy intentando aplicar la fórmula pero no me funciona. En mi caso el valor min es en horas, no se si es por eso que me da error.

Lo que quiero hacer es una celda que repita el valor de la celda adyacente limitando a un máximo de 8 horas. A ver si me pueden ayudar, gracias.
This comment was minimized by the moderator on the site
Thank you, worked perfectly :)
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