ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to set default column function (https://www.excelbanter.com/excel-worksheet-functions/126582-how-set-default-column-function.html)

hui

how to set default column function
 
I put salary in Column A, I hope when I input someone's salary in column A,
in column B the corresponding tax would be computed automatically. And I am
not sure I need how many Rows there are in my worksheet. It means I can
input salary in any row in column A and the tax would be computed in column
B.

JE McGimpsey

how to set default column function
 
Take a look he

http://www.mcgimpsey.com/excel/variablerate.html

In article ,
"hui" wrote:

I put salary in Column A, I hope when I input someone's salary in column A,
in column B the corresponding tax would be computed automatically. And I am
not sure I need how many Rows there are in my worksheet. It means I can
input salary in any row in column A and the tax would be computed in column
B.

May I do it in Excel worksheet?

thank u in advance

hui


hui

how to set default column function
 
I means I can put any function in some Column so that when the corresponding
column data changes, the column would automaticall exceute column function.
not only about tax.

such as
I put function "=year(now)-left(a1,4)" in Col B, it would work in whole
Column
Col:A Col:B
1 1980-9-1 27
2 1983-11-2 24
.........................
X Row (I am not sure where it is)
X 1979-8-2 28
........................

hui



Teethless mama

how to set default column function
 
Assuming your A1 is a real date

B1 =IF(A1="","",YEAR(TODAY())-YEAR(A1))

Format cell as General
Copy all the way down as far as needed


"hui" wrote:

I put salary in Column A, I hope when I input someone's salary in column A,
in column B the corresponding tax would be computed automatically. And I am
not sure I need how many Rows there are in my worksheet. It means I can
input salary in any row in column A and the tax would be computed in column
B.

May I do it in Excel worksheet?

thank u in advance

hui





All times are GMT +1. The time now is 08:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com