# More IF's

#### Silvermini63

##### Active Member
I have this current formula but I need to add another if to it. I have a cell reference which is E4 this cell is our Tier Price and what I want to do is if the person wants a tier price in stead of a contract price the put a 0 in G4.

So this order goes if the code is blank report nothing if the code is there and G4 is 0 the return E4, if G4 is blank return \$i\$2 base % Calculation and if G4 has a % calculate that and finally if L4 is lower than the end calculation return .01 below.

\$I\$2 = Base % Mark Up
D4 = Cost
B4 = Product Code
G4 = Tier (1)
L4 = Tier Ref (2)

=IF(ISBLANK(B4),"",IF(IF(G4=0,D4/(100%-\$I\$2),D4/(100%-G4))>L4,L4-0.01,IF(G4=0,D4/(100%-\$I\$2),D4/(100%-G4))))

Hope this makes sense

### Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

#### acw

##### MrExcel MVP
Hi

Not sure but perhaps

Code:
``=IF(ISBLANK(B4),"",IF(AND(LEN(G4)>0,G4 = 0),E4,IF(LEN(G4)=0,D4/(100%-\$I\$2),IF(D4/(100%-G4)>L4,L4-0.01,D4/(100%-G4)))))``

Tony

#### Silvermini63

##### Active Member
yes it worked seems all good thank you evry much

Replies
14
Views
905
Replies
5
Views
222
Replies
8
Views
202
Replies
1
Views
120
Replies
6
Views
414

1,141,630
Messages
5,707,511
Members
421,511
Latest member
mgroah1

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

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