# Need help to simplify my formula

#### qsdr

##### New Member
At the moment, I am working on a formula to look up "Duty Rates" based on a couple of things.

1. Customer - Certain customers have their stock re-exported upon entry, so their duty is always 0%
2. Style Number - Certain styles have less/more duty, despite their garment (name) type.
3. Garment type - Certain types of garments have different duty rates.
Maybe because I've been working on this sheet all morning I'm overcomplicating things, so I was hoping someone could help me simplify the formula so I can use it. Or at least explain ISNA to me.
I started with nested IF formulas, because we were content to just manually enter the duty rate if the style number/garment type caused it to be different. However, this means that anyone can forget to change it, and it's a hassle.
So, I made the different sheets for Customer, Style Number, Garment Type, and was doing VLOOKUP. But then I could only do one VLOOKUP (or so I thought at the time).
Now, I have thought of doing ISNA.. but I can't seem to type up the formula properly.
I presume it should look something like:

=IF(ISNA(VLOOKUP(CUSTOMER),IF(ISNA(VLOOKUP(STYLE NUMBER),VLOOKUP(GARMENT TYPE)..
then I finish off all the ISNA formulas?
But to finish them, I read somewhere that you have to enter the formulas all over again, leaving me with 9 formulas, which is too many.

Sorry, I'm pretty new to formulas, so I'm not really sure what to do.

### Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

#### Greg Truby

##### MrExcel MVP
What version of Excel are you using?

Oh sorry. 2003.
Thanks

#### konew1

##### Well-known Member
Hi. If I have understood then this should work.
I have the transaction customer, style and garment type in A17:C17.
I have named range for the customer list, style list and type list.

=IF(NOT(ISERROR(VLOOKUP(A17,customerlist,1,FALSE))),0,IF(ISERROR(VLOOKUP(B17,stylelist,2,FALSE)),VLOOKUP(C17,Garment_list,2,FALSE),VLOOKUP(B17,stylelist,2,FALSE)))

It will return #N/A if customer is not an exporter and the style is not on the list and the type does not exist

Last edited:

Replies
7
Views
297
Replies
1
Views
130
Replies
1
Views
146
Replies
4
Views
110
Replies
6
Views
407

1,191,274
Messages
5,985,692
Members
439,974
Latest member
sjoerdbosch

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