ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If function (https://www.excelbanter.com/excel-worksheet-functions/124496-if-function.html)

DHM

If function
 
I have 6 employees with different pay rate. If I enter a name in a cell I
want the next cell to show the pay rate associated with that person. How do
I do that

Don Guillett

If function
 
The best way, especially since there may be future changes, would be to use
a vlookup table. Look in the help index for VLOOKUP

--
Don Guillett
SalesAid Software

"DHM" wrote in message
...
I have 6 employees with different pay rate. If I enter a name in a cell I
want the next cell to show the pay rate associated with that person. How
do
I do that




CLR

If function
 
=IF(A1="Emp1",1.01,IF(A1="Emp2",2.02,IF(A1="Emp3", 3.03,IF(A1="Emp4",4.04,IF(A1="Emp5",5.05,IF(A1="Em p6",6.06,""))))))

all on one line, watch out for word-wrap......

Vaya con Dios,
Chuck, CABGx3




"DHM" wrote:

I have 6 employees with different pay rate. If I enter a name in a cell I
want the next cell to show the pay rate associated with that person. How do
I do that


Teethless mama

If function
 
=VLOOKUP(A1,{"Jack",0.1;"Tim",0.2;"John",0.3},2,0)

Adjust to suit


"DHM" wrote:

I have 6 employees with different pay rate. If I enter a name in a cell I
want the next cell to show the pay rate associated with that person. How do
I do that



All times are GMT +1. The time now is 10:41 PM.

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