Excel Formula Difficulties

aja2150

New Member
Joined
Apr 3, 2011
Messages
9
Can someone spot the error in this formula?

=IF(F14="Yes",(E14<=4)(30)(E14>4,(E14-4)*(5)+(30),IF(F14="no",0,""))

The formula is supposed to look at F14 and look up "yes" or "no". If the answer is yes then it looks at E14 and if the number is <=4, then it returns the value "30". If the number is >4 then it adds $5 per number over 4 and adds that to "30".

Any help is greatly appreciated!!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try:

=IF(F14="No",0,IF(F14="Yes",IF(E14<=4,30,((E14-4)*5)+30),"")
 
Upvote 0
Could I get your expertise on the following formula?

=VLOOKUP(K2,'Federal Tax Table'!B5:I13,MATCH(E2,'Federal Tax Table'!C4:I4,0),TRUE)

K2=Gross Earnings
E2= Number of dependents

What I am trying to do is have the formula find the correct tax percentage based on gross earnings and number of dependents. The formula listed above keeps returning a value from the earnings column of the tax table instead of the tax rate.

I really appreciate the help!
 
Upvote 0
It seems to me that you are needing an INDEX/MATCH formula, what you have there could have issues.

Can you please describe your data layout, and what logic/expected return is?
 
Upvote 0
Could I get your expertise on the following formula?

=VLOOKUP(K2,'Federal Tax Table'!B5:I13,MATCH(E2,'Federal Tax Table'!C4:I4,0),TRUE)

K2=Gross Earnings
E2= Number of dependents

What I am trying to do is have the formula find the correct tax percentage based on gross earnings and number of dependents. The formula listed above keeps returning a value from the earnings column of the tax table instead of the tax rate.

I really appreciate the help!
Your column_index_number is always going to be off by 1.

Increase the range of the lookup_array argument in the MATCH function.

MATCH(E2,'Federal Tax Table'!C4:I4,0)

To:

MATCH(E2,'Federal Tax Table'!B4:I4,0)
 
Upvote 0
Sorry I didn't really explain the issue real well. I have two worksheets that are involved in the formula. One worksheet contains employee data such as marital status, and number of dependents. The other worksheet has the tax table. On the tax worksheet, the column B5:B13 has the different levels of income,(0,1000,1500...)The row C4:I4 contains the number of dependents,(0,1,2,....) the table then contains different percentages. For example, someone with 0 dependents and makes $750
would pay 7%.

What I am trying to do on the first worksheet is use a formula that looks up the percentage amount based on number of dependents and gross earnings.

Hope this helps clear up what I am trying to do.
 
Upvote 0
Try using:

=INDEX('Federal Tax Table'!C5:I13,MATCH(K2,'Federal Tax Table'!B5:B13),MATCH(E2,'Federal Tax Table'!C4:I4,0))
 
Upvote 0
Sorry I didn't really explain the issue real well. I have two worksheets that are involved in the formula. One worksheet contains employee data such as marital status, and number of dependents. The other worksheet has the tax table. On the tax worksheet, the column B5:B13 has the different levels of income,(0,1000,1500...)The row C4:I4 contains the number of dependents,(0,1,2,....) the table then contains different percentages. For example, someone with 0 dependents and makes $750
would pay 7%.

What I am trying to do on the first worksheet is use a formula that looks up the percentage amount based on number of dependents and gross earnings.

Hope this helps clear up what I am trying to do.
Let's assume this is your table:

Book1
BCDEFGHI
40123456
5031924152724124
6100058782067176055
7150012289526462685
8250056492357351210
9500010387582549432
101000016186482329575
111500037439722476069
122500042943820973838
135000034958376779473
Federal Tax Table

Lookup values:
  • K2 = some income amount like 22129
  • E2 = number of dependents like 3
Then:

=VLOOKUP(K2,'Federal Tax Table'!B5:I13,MATCH(E2,'Federal Tax Table'!B4:I4,0))

Based on the sample table the result is 22.
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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