Need help with nested if search formula

mmctighe

New Member
Joined
Aug 11, 2014
Messages
2
Looking for some help with a formula that figures use tax based on type of job and state.
Excel version 2016, windows 10

D4 can be install or product
I currently have a working formula =IF(ISERROR(SEARCH("inst",$D4)),0,((L4+Q4)*0.06))
If D4 contains inst it will multiply cost of job by .06 to figure out my use tax, if D4 is anything else (example: product) it will return a zero.
L4+Q4=cost of job

I now need the following:
D4 can equal install, product, or phantom
F4 can equal va, md or dc

Logic need to be:
If D4 = Install then multiply (L4+Q4)*.06 current formula works for this
If D4 = Product then it needs to equal 0 current formula works for this
If D4 = Phantom then look at F4, if F4 = VA then solution is zero.
If D4 = Phantom then look at F4, if F4 = MD then I need D4 to equal (L4+Q4)*.06
If D4 = Phantom then look at F4, if F4 = DC then I need DV to equal (L4+Q4)*.0575

Thanks for taking the time to help.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi,

Maybe something like this:


Book1
DEFGHIJKLMNOPQ
4phantomdc0.8625105
Sheet20
Cell Formulas
RangeFormula
H4=IF(OR(D4="Install",AND(D4="Phantom",F4="MD")),(L4+Q4)*0.06,IF(D4="Phantom",IF(F4="DC",(L4+Q4)*0.0575,0),0))
 
Upvote 0
You're welcome, welcome to your first post, glad to have saved you money on aspirin.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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