Multiple nested IF statements

BLuse

New Member
Joined
Apr 15, 2016
Messages
13
Hi,
I have a nested formula that I'd like to know if it's the best formula to use to get the results I need. It's working now, but I want to add some additional IF statements and I'm thinking I'm doing it wrong, there must be a better way.

So here's what I got. I have thousand's of SKU's listed on Amazon and I want to get the Amazon fulfillment fee for each. FBA fee's are tiered, so I would need to check each SKU for a range of conditions to see which tier it falls under and populate the fee based on that. Right now my formula only checks the size, it doesn't check what the weigh is. What would be the best way to get that.

*Note: G3 and G4 in my formula is where the fee value is stored.

Amazon fee guidlines
ABCDE
LongestMedianShortestFee
Small <1 LB1512.75$2.41
Large <1 LB18148$3.19
Large 1-2 LB181484.71
SM Oversize <2 LB6030Longest+Girth<130"8.13

<tbody>
</tbody>

Example Worksheet
A (Item)B (L)C (W)D (H)E (LB)F (FEE)
Formula
Pen6.5.5.2$2.41=IF(MIN(B2:D2)<=0.75,IF(SMALL(B2:D2,2)<=12,IF(MAX(B2:D2)<=15,G3,IF(MIN(B2:D2)<=8,IF(SMALL(B2:D2,2)<=14,IF(MAX(B2:D2)<=18,G4,),),)),),IF(MIN(B2:D2)<=8,IF(SMALL(B2:D2,2)<=14,IF(MAX(B2:D2)<=18,G4))))
Camera10561.2$4.71
Hanger12.58.9$3.19
60 gl Tote3012181.6$8.13

<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
It's generally best to build a table with your parameters, and let the formulas read the table. Much easier to read and modify. For example:

ABCDEFGHIJKLM
1A (Item)B (L)C (W)D (H)E (LB)F (FEE)LongestMedianShortestFee
2Pen60.50.50.22.41Small <1 LB15120.75$2.41
3Camera10561.23.19Large <1 LB18148$3.19
4Hanger120.580.92.41Large 1-2 LB181484.71
560 gl Tote3012181.60SM Oversize <2 LB6030Longest+Girth<130"8.13

<tbody>
</tbody>
Sheet4

Array Formulas
CellFormula
F2{=MIN(IF((MIN(B2:D2)<=$K$2:$K$4)*(MEDIAN(B2:D2)<=$J$2:$J$4)*(MAX(B2:D2)<=$I$2:$I$4),$L$2:$L$4))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



You'd probably want to put your table on another sheet. I couldn't make your sample data match my formula, so if I'm calculating it wrong, let me know.

As far as adding the weight to the formula, it shouldn't be too hard, but it depends on what the actual rules are.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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