Problem with formula

Dmrs92

New Member
Joined
Jun 1, 2018
Messages
31
[TABLE="class: forumline, width: 100%"]
<tbody>[TR]
[TD="class: row1, width: 150, align: left"]
Posty: 3
online.gif

[/TD]
[TD="class: {.ROW_CLASS}, width: 100%"][TABLE="width: 100%"]
<tbody>[TR]
[TD]Wysłany: Dzisiaj 18:12 Pomysł na formułe[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD="colspan: 2"]
[/TD]
[/TR]
[TR]
[TD="colspan: 2"]Hi,
I need your help with this formula:
If.error( If(t2>=0;Z2=t2 but if t2 is bigger than y2 show y2 and the second part is iF(Y2+T2<0;-Y2;T2);""). But how to merge it ?

Something like that =If.error(IF(t2+y2>=0;z2=t2<=y2);IF(Y2+T2<0;-Y2;T2);"")

But it is not working, please help.

Thank you in advance,[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
drop the if.error first of all, it dose.nt have a dot and will stop you from debugging initally
 
Upvote 0
Sorry, i know normally i'm using diffrent laguage. Of course in english it should be without dot. But still, it's not working.The problem is the part after first If.
 
Upvote 0
This is not a valid formula in VBA:
Code:
[COLOR=#333333]z2=t2<=y2[/COLOR]
It would need to be:
Code:
=AND(z2=t2;t2<=y2)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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