# can these two formulas be combined??

#### Dylan driscoll

##### New Member
Formula1: =G3/(A3-0.58)
formula2: =IF(AND(M3=0),0,IF(AND((M3-S3)*(A3-0.58)<0),0,(M3-S3)*(A3-0.58)))

In formula 2 the result of formula 1 is the M3

### Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use \$ signs: \$V\$2:\$Z\$99 will always point to V2:Z99, even after copying
Try this

=IF((G3/(A3-0.58))=0,0,IF((G3/(A3-0.58)-S3)*(A3-0.58)<0,0,((G3/(A3-0.58))-S3)*(A3-0.58)))

HTH

It worked...thank you

Replies
2
Views
209
Replies
1
Views
157
Replies
6
Views
190
Replies
6
Views
185
Replies
8
Views
370

1,202,983
Messages
6,052,907
Members
444,611
Latest member
ggwpnore

### 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.

### Which adblocker are you using?

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

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