#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DHM DHM is offline
external usenet poster
 
Posts: 13
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 11:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"