calculation that, at times, should result in zero

mario antonio

New Member
Joined
Jul 8, 2020
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
Folks,

I need to solve a question, I think it's easy, but I've been racking my brain for hours, I need the result of K to appear only when E * F and H * I have informed values, obtaining the result of K = G + J, otherwise , the value of K = 0 E * F = G H * I = J with result K = G + J EXPECTED SITUATIONS: if E * F> 0 and H * I> 0, then K => 0 if E * F = 0 and H * I> 0, then K = 0 if E * F> 0 and H * I = 0, then K = 0 if E * F = 0 and H * I = 0, then K = 0
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
G'day Mario,

That's a very confusing presentation, but I think this is what you are trying to say. Ignoring E, F H & I as they only feed G & J which is all we need to work with, is this what you want?
G>0 AND J>0 then K=G+J
If G<=0 OR J<=0 (or both G and J <=0) then K=0

If that is what you men then this formula in K should work (Replacing the G & J with whatever actual Cell references used).
=IF(AND(G>0,J>0),G+J,0)
 
Upvote 0
Olá pessoal,
Vou tentar enviar esta imagem para que seja mais fácil entender o que eu quero.
Espero que minha necessidade esteja clara agora.
Abraços,

Mario

FORUM EXCEL.jpg
 
Upvote 0
Did you try the formula in post #3?

You can put your examples using the XL2BB tool just as I did, for that you must install the XL2BB tool.
 
Upvote 0
[QUOTE = "DanteAmor, post: 5519571, membro: 439277"]
Você usa a fórmula no post # 3?

Você pode colocar seus exemplos usando a ferramenta XL2BB da mesma forma que fiz, para isso você deve instalar a ferramenta XL2BB.
[URL unfurl = "true"] XL2BB - Excel Range to BBCode [/ URL]
[/ CITAR]

Não deu certo, e quanto ao XL2BB deu erro, até travou o windows
 
Upvote 0
[QUOTE = "mario antonio, post: 5519591, membro: 463574"]
[QUOTE = "DanteAmor, post: 5519571, membro: 439277"]
Você usa a fórmula no post # 3?

Você pode colocar seus exemplos usando a ferramenta XL2BB da mesma forma que fez, para isso você deve instalar uma ferramenta XL2BB.
[URL unfurl = "true"] XL2BB - intervalo do Excel para BBCode [/ URL]
[/ CITAR]

Não deu certo, e quanto ao XL2BB deu erro, até travou o pc.
[/CITAR]
 
Upvote 0
Parece-me que você não está aplicando minha fórmula corretamente.
Aqui você pode ver minha fórmula com seus dados e os resultados desejados.
(It seems to me that you are not applying my formula correctly.
Here you can see my formula with your data and the results you want.
)

Dante Amor
DEFGHIJK
1TIME ATIME B
2DATEParts 1VLR UNITSUB-TOTALPARTS 2VLR UNITSUB-TOTALTOTAL
303-jul101010051260160
404-jul351500
505-jul078560
606-jul000
Hoja4
Cell Formulas
RangeFormula
G3:G6,J3:J6J3=H3*I3
K3:K6K3=IF(G3*J3,G3+J3,0)
 
Upvote 0

Forum statistics

Threads
1,215,565
Messages
6,125,583
Members
449,237
Latest member
Chase S

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top