ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I get data automatically entered into a cell? (https://www.excelbanter.com/excel-worksheet-functions/126556-how-do-i-get-data-automatically-entered-into-cell.html)

rldjda

How do I get data automatically entered into a cell?
 
How do I get data automatically entered into a cell when I enter data into an
adjoining cell? I'm doing a payroll project, and I basically want to enter a
name in one cell and have that person's hourly wage data automatically
entered in the next cell without having to type in the dollar amount every
time.

Martin Fishlock

How do I get data automatically entered into a cell?
 
Hi:

Two possible methods:

Use vlookup in the cell with an if as in

if(a1="","",vlookup(a1,data,2,false))


or use the on change event for the worksheet check changes in the cell and
then put the rate in the adjoining cell.

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"rldjda" wrote:

How do I get data automatically entered into a cell when I enter data into an
adjoining cell? I'm doing a payroll project, and I basically want to enter a
name in one cell and have that person's hourly wage data automatically
entered in the next cell without having to type in the dollar amount every
time.



All times are GMT +1. The time now is 04:21 AM.

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