# IF Statement

#### BeardenS

##### New Member
I am not sure which way to do this. I was using the IF function for this particular problem, which has not worked. This is my problem:

weekly
bi-weekly
monthly

Last 3 Mo.

I need to tell Excel to look at cell B1 and if it is greater than 0 multiply by 13. But, if B1 is empty look at cell B2 and multiply by 2 then by 3 then add half of the value in cell B2. But, if B2 is empty look at cell B3 and multiply by 3.

### Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try this.

The 6 in the formula refers to your taking B2 and multiplying by 2 and then by 3

=IF(B1>0,B1*13,IF(AND(B1="",B2<>""),B2*6+B2/2,B3*3))

IF

Thank You for that. It worked like a charm!!!! One question, however, where did you get the 6 from and why did you put it where you did?

As I mentioned in my previous post. I got the 6 from simplifying 2 * 3.

But, if B1 is empty look at cell B2 and multiply by 2 then by 3 then add half of the value in cell B2.

My understanding is that you are multiplying B2 by 2 and then again by 3 before adding 1/2 of B2 to that result.

Correct?

Thank You again for your help!!!

Replies
5
Views
259
Replies
3
Views
84
Replies
1
Views
400
Replies
2
Views
208
Replies
11
Views
343

1,211,680
Messages
6,103,247
Members
447,850
Latest member
thebuzzman15

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