# Help with IF Formula

#### cmccambridge

##### New Member
Hi,

I have a formula that calculates wages based off either choosing rate 1 or 2 in a drop down menu in cell H114. Do you know how to add to the formula if I add a rate 3 un the drop down menu??

Thanks

<colgroup><col></colgroup><tbody>
</tbody>
=IF(G114="","",IF(H114=1,G114*B109,B110*G114))

### Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
cmccambridge,

Assuming that your third rate is in cell B111 then try......

=IF(G114="","",IF(H114=1,G114*B109,IF(H114=2,B110*G114,B111*G114)))

Hope that helps.

Hi,

I have a formula that calculates wages based off either choosing rate 1 or 2 in a drop down menu in cell H114. Do you know how to add to the formula if I add a rate 3 un the drop down menu??

Thanks

<tbody>
</tbody>
=IF(G114="","",IF(H114=1,G114*B109,B110*G114))

Hi,

=IF(H114=1,G114*B109,IF(H114=2,B110*G114,IF(H114=3,XX*XX,"")))

I' making some assumptions based on your code for how your workbook is set up, but one option that may be easier than having to go through nested if statements:

Code:
``=IF(G114="","",G114*CHOOSE(H114,B109,B110))``

To add a condition 3, just put a ,B111 after B110.

Hi,

I have a formula that calculates wages based off either choosing rate 1 or 2 in a drop down menu in cell H114. Do you know how to add to the formula if I add a rate 3 un the drop down menu??

Thanks

<tbody>
</tbody>
=IF(G114="","",IF(H114=1,G114*B109,B110*G114))

Looks like:

=IF(G114="","",G114*INDEX(B109:B111,H114))

Works!
What would I do without the excel masterminds

Replies
4
Views
179
Replies
0
Views
70
Replies
10
Views
306
Replies
9
Views
533
Replies
4
Views
391

1,207,171
Messages
6,076,916
Members
446,241
Latest member
Nhacai888b

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