0

I have a tax table in one sheet that has a list of tax values. For example:

Sheet1:  Tax Tables
    A      B      C
1  Min    Max    Taxed
   -------------------
2  50     100    10
3  100    200    20
4  200    300    30

In another sheet I have a gross income value of say 120 in cell A1. What I want to do is have a vlookup (I'm assuming that's what I should use) that checks cell A1 to see if it's between the Min and Max and then outputs the taxed amount in B1.

Sheet2:  Income
    A      B
1  Gross FedTax
   -----------
2  120   Value from Column C goes here

I already have the sheet in Tax Tables set up with named spaces A:C=Min and B:C=Max I tried doing this:

=AND(VLOOKUP(<A1,Min,3,False),VLOOKUP(>A1,Max,2,FALSE))

But not even close... I just want to check column A in the first sheet to see if it's less than the the value in the second sheet, and check column B in the first sheet against the value in the second for if its more, then put the value in column C in the first sheet into the cell next to the value in the second sheet.

4

2 に答える 2

1

VLOOKUP を使用するには、最大値と最小値を同じ列に入れます。

ここに画像の説明を入力

次に、TRUE 引数を使用します。これは、一致する次の値を探すことを意味します。D2 で調べている値を想定すると、E2 に次のような数式を入れます。

=VLOOKUP(D2,$A$2:$B$5,2,TRUE)

ここに画像の説明を入力

于 2013-04-17T13:32:07.480 に答える
0

まず第一に、金額が正確に 50/100/200/300/ の場合に何を適用するかが不明です。そのため、間隔に下限を含め、上限を除外することにしました。

この問題では、次のような sumifs を使用します (どちら側に等号を付けるかを決定する必要があります: =SUMIFS(Sheet1!C:C;Sheet1!A:A;"<="&A1;Sheet1!B:B;">"&A1)

これは、列 A の値が 120 以下で、列 B の値が 120 より大きい列 C の要素のみを取得します。

于 2013-04-17T13:27:59.963 に答える